Resource icon

User Paid Sticky [Paid] 1.2.1

No permission to buy ($49.99)
Slavik updated User Paid Sticky with a new update entry:

Added support for custom CSS (Sticky colors)

  • Support added for custom CSS on sticky threads.
  • Set class on a per-node basis (use different CSS markup for differing nodes)
  • CSS added via EXTRA.css
View attachment 33267

View attachment 33268
Demo at: http://p8ntballer-forums.com/forums/for-sale.55/

How we did it here: Under the for sale node we set the CSS Class to "stickyColor".

Then, added the following code to the EXTRA.css template to turn the text for Paid Sticky threads red....

Read the rest of this update entry...
 
Small issue with styling cropped up, have issued a micro update to all customers to fix the problem.

If you were using 1.1.2 or lower, simply update using the updated file with the _microupdate tag included as normal.

If already using 1.2.0, simply re-upload the contents of the "upload" folder from the _microupdate file to fix the issue.

//Slav
 
Slav, can we have two options for prices/styles?

For example, if I wanted to offer a $5 for 7 days option with "blue text" and a $10 for 7 days option with "bold" AND "red text" ... how would I do that?
 
Really happy to see duration and styling. :D

Any chane still for a box in the node paid sticky option for "max allowed" stickies and once the supplied number has been fulfilled, it will not allow further purchases until a slot opens up?
 
@intradox, good idea (about the limitation on spots) ... maybe down the road there could be a way to price out the first % of the 'open slots' at a lower price versus the final spots. This way, the first slots will sell quickly.

For example, the 'max/limit' on spots is 10. The first three spots (30% of the available spots) is at $5, the next three spots are $10 and the final four spots are $20 for each post.

Makes for a real incentive to sign up/purchase early! :)

@Slavik, thanks for the answer. I'll keep an eye out for future enhancements ;)
 
HTML:
/* Paid Sticky Colours */
 
.stickyColor
{
margin: 5px 0;
padding: 5px 0;
border: 1px solid #cd87ff !important;
border-radius: 7px;
background: @flexileTabTwo !important;
background: @flexileTabTwo -moz-linear-gradient(top,  rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.73) 8%, rgba(255,255,255,0.66) 21%, rgba(255,255,255,0.57) 33%, rgba(255,255,255,0.18) 75%, rgba(255,255,255,0.02) 100%) !important; /* FF3.6+ */
background: @flexileTabTwo -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.75)), color-stop(8%,rgba(255,255,255,0.73)), color-stop(21%,rgba(255,255,255,0.66)), color-stop(33%,rgba(255,255,255,0.57)), color-stop(75%,rgba(255,255,255,0.18)), color-stop(100%,rgba(255,255,255,0.02))) !important; /* Chrome,Safari4+ */
background: @flexileTabTwo -webkit-linear-gradient(top,  rgba(255,255,255,0.75) 0%,rgba(255,255,255,0.73) 8%,rgba(255,255,255,0.66) 21%,rgba(255,255,255,0.57) 33%,rgba(255,255,255,0.18) 75%,rgba(255,255,255,0.02) 100%) !important; /* Chrome10+,Safari5.1+ */
background: @flexileTabTwo -o-linear-gradient(top,  rgba(255,255,255,0.75) 0%,rgba(255,255,255,0.73) 8%,rgba(255,255,255,0.66) 21%,rgba(255,255,255,0.57) 33%,rgba(255,255,255,0.18) 75%,rgba(255,255,255,0.02) 100%) !important; /* Opera 11.10+ */
background: @flexileTabTwo -ms-linear-gradient(top,  rgba(255,255,255,0.75) 0%,rgba(255,255,255,0.73) 8%,rgba(255,255,255,0.66) 21%,rgba(255,255,255,0.57) 33%,rgba(255,255,255,0.18) 75%,rgba(255,255,255,0.02) 100%) !important; /* IE10+ */
background: @flexileTabTwo linear-gradient(top,  rgba(255,255,255,0.75) 0%,rgba(255,255,255,0.73) 8%,rgba(255,255,255,0.66) 21%,rgba(255,255,255,0.57) 33%,rgba(255,255,255,0.18) 75%,rgba(255,255,255,0.02) 100%) !important; /* W3C */
color: #fff;
}
 
.stickyColor .posterAvatar, .stickyColor .stats
{
background: transparent !important;
}
 
.stickyColor a
{
color: #fff !important;
}
 
.stickyColor .stats dl dt, .stickyColor h3 a
{
color: #000 !important;
}
 
You should probably add something like the below to the above, to cover the page navigation, to match the above that is:

HTML:
.stickyColor .itemPageNav a, .stickyColor .itemPageNav span
{
border-color: #fff !important;
color: #fff !important;
background: transparent !important;
}
 
Why am I getting a lot of this error in my log?

Error Info
ErrorException: Undefined index: stickyThreads - library/PaidSticky/ControllerPublic/Forum.php:15
Generated By: Unknown Account, 53 minutes ago
Stack Trace
#0 /home/ptsdforu/public_html/c/library/PaidSticky/ControllerPublic/Forum.php(15): XenForo_Application::handlePhpError()
#1 /home/ptsdforu/public_html/c/library/XenForo/FrontController.php(310): PaidSticky_ControllerPublic_Forum->actionIndex(Object(XenForo_RouteMatch))
#2 /home/ptsdforu/public_html/c/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch()
#3 /home/ptsdforu/public_html/c/index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
["url"] => string(46) "https://www.ptsdforum.org/c/forums/-/index.rss"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
Why am I getting a lot of this error in my log?

Error Info
ErrorException: Undefined index: stickyThreads - library/PaidSticky/ControllerPublic/Forum.php:15
Generated By: Unknown Account, 53 minutes ago
Stack Trace
#0 /home/ptsdforu/public_html/c/library/PaidSticky/ControllerPublic/Forum.php(15): XenForo_Application::handlePhpError()
#1 /home/ptsdforu/public_html/c/library/XenForo/FrontController.php(310): PaidSticky_ControllerPublic_Forum->actionIndex(Object(XenForo_RouteMatch))
#2 /home/ptsdforu/public_html/c/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch()
#3 /home/ptsdforu/public_html/c/index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
["url"] => string(46) "https://www.ptsdforum.org/c/forums/-/index.rss"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

What version ID is your addon showing in the ACP? (hover over the addon name form the acp homepage)
 
I'm getting errors too, on 1.2

Error Info
XenForo_Exception: A discussion insert was attempted without the required first message. - library/XenForo/DataWriter/Discussion.php:277
Generated By: Unknown Account, Today at 1:55 AM
Stack Trace
#0 /home/domain/public_html/library/XenForo/DataWriter.php(1422): XenForo_DataWriter_Discussion->_preSave()
#1 /home/domain/public_html/library/XenForo/DataWriter.php(1361): XenForo_DataWriter->preSave()
#2 /home/domain/public_html/library/PaidSticky/Model/PaidSticky.php(224): XenForo_DataWriter->save()
#3 /home/domain/public_html/library/PaidSticky/CronEntry/ExpiredSticky.php(7): PaidSticky_Model_PaidSticky->unstickyExpiredStickies()
#4 [internal function]: PaidSticky_CronEntry_ExpiredSticky::unstickyExpired(Array)
#5 /home/domain/public_html/library/XenForo/Model/Cron.php(356): call_user_func(Array, Array)
#6 /home/domain/public_html/library/XenForo/Cron.php(29): XenForo_Model_Cron->runEntry(Array)
#7 /home/domain/public_html/library/XenForo/Cron.php(64): XenForo_Cron->run()
#8 /home/domain/public_html/cron.php(12): XenForo_Cron::runAndOutput()
#9 {main}
Request State
array(3) {
["url"] => string(44) "http://www.domain.com/cron.php?1346547329"
["_GET"] => array(1) {
[1346547329] => string(0) ""
}
["_POST"] => array(0) {
}
}
 
Top Bottom