View Full Version : Personal Stickys
Mephisteus
12-07-2005, 10:00 PM
Hack name: Personal Stickys
Version: 1.0.3b
Author: Mephisteus (DarkSSJ3)
Special Thanks To: Floris (The images and being a guinea pig)!
Steps:
1 product import
1 file to edit - forumdisplay.php (2 edits)
3 template edits
2 image uploads
Info:
Let members on your forums have their own 'personal' sticky thread. People sticking a thread using this function will have the thread only appear 'stuck' to them (and if its a 'real' sticky thread). See screenshots for the obvious :)
Tested on:
3.5.0 - OK
3.5.1 - OK
3.5.2 - OK
3.5.3 - OK
3.5.4 - OK
Features
- Neat icons!
MAKE A BACKUP
I will not be held responsible for any damage this hack causes to your forum.
This hack is NOT supported. If you get support, consider yourself lucky.
I reserve the right to REMOVE the hack at any time without prior notice.
Please keep any bug reports in this thread.
History
1.0.3b (to upgrade reimport product xml IMPORTANT)
Bugfix
- Fixed a bug that would give SQL errors if someone didnt have personal stickys.
1.0.3 (to upgrade reimport product xml and apply file edits)
Bugfix
- Fixed "The stickied thread will be stickied to the top of its own page, not the first page per see.". It will now be stickied to the first page (I have NOT tested this on different settings due to lack of time).
1.0.2 (to upgrade reimport product xml)
Feature
- Redirect on stick/unstick selection
1.0.1 (to upgrade reimport product xml)
Bugfix
- Fixed an error that would appear in UserCP and in the subscriptions area if you had subscribed threads.
1.0.0
Initial release
Take me to the 3.7.x version (https://vborg.vbsupport.ru/showthread.php?t=189444)
Floris
12-08-2005, 09:01 PM
Yay great stuff, installed on www.vBulletin-Fans.com :)
theArchitect
12-08-2005, 09:10 PM
Yay great stuff, installed on www.vBulletin-Fans.com :)
Many thanks. A brilliant idea.
rb290
12-08-2005, 10:40 PM
can you choose which usergroups can sticky ?
michaelbenson
12-09-2005, 06:18 AM
Thanks for this, looks really great!
/me installs.
Developer
12-09-2005, 06:52 AM
wow great hack i liked it installed
Chris M
12-09-2005, 07:58 AM
Heh you got there first, sorta - Similar to my "Tagged Threads" but not :)
More similar to Tagged Threads v2 :p
Anywho, looks nice :)
Chris
Snake
12-09-2005, 08:06 AM
Interesting!
Elmer
12-09-2005, 09:07 AM
awesome! just what I was lookin :)
FleaBag
12-09-2005, 12:38 PM
Yeah nice little addition. Will install when I get home for upload access. :)
Oblivion Knight
12-09-2005, 04:33 PM
Consider this installed, fantastic idea.. :classic:
icemann
12-09-2005, 05:01 PM
I like it as well, thank you. :)
*clicks install*
Floris
12-09-2005, 05:40 PM
Heh you got there first, sorta - Similar to my "Tagged Threads" but not :)
More similar to Tagged Threads v2 :p
Anywho, looks nice :)
Chris
I was connected to VNC helping Meph, watching how he wrote it. Neither he or I even knew you had a similar resource already posted somewhere.
croportal
12-09-2005, 06:02 PM
Warning: in_array(): Wrong datatype for second argument in /usercp.php(441) : eval()'d code on line 7
Warning: in_array(): Wrong datatype for second argument in /usercp.php(441) : eval()'d code on line 7
Warning: in_array(): Wrong datatype for second argument in /usercp.php(441) : eval()'d code on line 7
Warning: in_array(): Wrong datatype for second argument in /usercp.php(441) : eval()'d code on line 7
Warning: in_array(): Wrong datatype for second argument in /usercp.php(441) : eval()'d code on line 7
Warning: in_array(): Wrong datatype for second argument in /usercp.php(441) : eval()'d code on line 7
Mephisteus
12-09-2005, 06:06 PM
UserCP? Thats odd, my product doesnt do anything related to usercp.php. Does the error disappear if you uninstall it my hack?
croportal
12-09-2005, 06:07 PM
i will now go to uninstal your product and tell you
croportal
12-09-2005, 06:08 PM
i have disable your product and now its okay, when i go disable again i have warning in usercp
croportal
12-09-2005, 06:09 PM
but now i have warning in showthread Warning: in_array(): Wrong datatype for second argument in /showthread.php(1907) : eval()'d code on line 357
croportal
12-09-2005, 06:14 PM
i have edit all templates in first condition and now works all okay, i have 3.5 version. i dont know whats wrong
croportal
12-09-2005, 06:16 PM
when i go to edit last template i have delete that in threadbit <if condition="$personalsticky"> <img class="inlineimg" src="$stylevar[imgdir_misc]/mystickypin.gif" alt="$vbphrase[sticky_thread]" /> </if>
and error appear The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected T_STRING in /home/hrportal/public_html/forum/includes/adminfunctions_template.php(3519) : eval()'d code on line 80
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Mephisteus
12-09-2005, 06:30 PM
I honestly dont understand what you are saying. However, it has been tested on other boards and it worked with success. My gues is its conflicting with another hack. On the info I have I cannot even begin figuring out any problems.
croportal
12-09-2005, 06:41 PM
I honestly dont understand what you are saying. However, it has been tested on other boards and it worked with success. My gues is its conflicting with another hack. On the info I have I cannot even begin figuring out any problems.
i have install your products and edit the templates, and in usercp i have erros.
when i go to uninstall your product i get error in showthread page.
and when i edit all templates how it been before all is okay. i think that is conflicting with print pdf version hack
Mephisteus
12-09-2005, 06:44 PM
The showthread error would have been caused by not removing a template edit. On the conflict Ill have to take a look at the print thread as pdf hack when I got the time. A conflict with that would be rather odd...
eNforce
12-09-2005, 07:33 PM
Tested and working fine on 3.5.2 :)
I think a good addition would be to have permissions for this, to make it an option for specific usergroups.
Mephisteus
12-09-2005, 07:36 PM
I considered that but tossed out the idea. Why restrict something like that to usergroups? The only point in it might be for paid subscriptions. Its a relativly easy addon to make since its only a single option for a single usergroup. Simply use an if condition"is_member_of and you'll be good :)
I dont see a reason to limit it in any way since it doesnt really give any control of the forum. Its like making subscriptions usergroup restricted.
Mephisteus
12-09-2005, 10:41 PM
croportal the usercp bug you were having is fixed in 1.0.1
croportal
12-09-2005, 10:47 PM
i have download which version. in my xml file says : "<?xml version="1.0" encoding="ISO-8859-1"?>"
when you have release 1.0.1
i have today download this https://vborg.vbsupport.ru/attachment.php?attachmentid=39110
Mephisteus
12-09-2005, 10:57 PM
thats the xml version, not the product version
<version>1.0.2</version>
Is the product version
Oblivion Knight
12-09-2005, 11:04 PM
Does this use AJAX to reload the page or something?
The "Personal Stick" and "Personal Unstick" phrase doesn't change until the page is manually refreshed after clicking the link.. Could be a browser bug, but I thought I'd mention it.
[EDIT]
Perhaps 1.0.2 fixes this.. Checking.
Mephisteus
12-09-2005, 11:09 PM
Yea, I noticed that aswell. Added the redirect (1.0.2) to fix that.
Mastar
12-10-2005, 12:02 AM
when i go to edit last template i have delete that in threadbit <if condition="$personalsticky"> <img class="inlineimg" src="$stylevar[imgdir_misc]/mystickypin.gif" alt="$vbphrase[sticky_thread]" /> </if>
and error appear The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected T_STRING in /home/hrportal/public_html/forum/includes/adminfunctions_template.php(3519) : eval()'d code on line 80
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
I also made a mistake where I place step #2
There was another instance of
<a href="subscription.php?$session[sessionurl]do=addsubscription&t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</td>
without the </tr> I didn't get any errors but it didn't work at first because I overlooked the instructions.
Upload the product first.
#1. Find in
FORUMDISPLAY:
$threadbits
Add above
<!-- Personal Stickys -->
$threadbits_personalsticky
<!-- Personal Stickys -->************************************************** *****
#2. Find in SHOWTHREAD:
<if condition="$show['member']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</td>
</tr>
Add below
<!-- Personal Stickys -->
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mysticky.gif" />
<if condition="in_array($thread['threadid'], $personalstickys)">
<a href="showthread.php?$session[sessionurl]do=unpersonalsticky&t=$threadid">$vbphrase[personal_unsticky]</a>
<else />
<a href="showthread.php?$session[sessionurl]do=personalsticky&t=$threadid">$vbphrase[personal_sticky]</a>
</if>
</td>
</tr>
<!-- Personal Stickys -->************************************************** *****
#3. Then:
Find in threadbit:
<if condition="$show['sticky']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" alt="$vbphrase[sticky_thread]" /> </if>
Add above
<!-- Personal Stickys -->
<if condition="$personalsticky"> <img class="inlineimg" src="$stylevar[imgdir_misc]/mystickypin.gif" alt="$vbphrase[sticky_thread]" /> </if>
<!-- Personal Stickys -->************************************************** *****
Instruction given were great and Installed and working.
Great work Mephisteus!
utw-Mephisto
12-10-2005, 01:57 AM
Works nice on ut2007world.com (3.5.2)
Floris
12-10-2005, 08:11 AM
* Waits for 1.0.3 before upgrading
Oblivion Knight
12-10-2005, 09:00 AM
* Waits for 1.0.3 before upgradingI doubt there'll be a 1.0.3 any time soon, both reported issues have now been fixed with 1.0.1 and 1.0.2 respectively, and there isn't much room for expanding this one.. :)
Unless he gets really bored and adds a usergroup permission.. ;)
Floris
12-10-2005, 09:50 AM
I know, but I really hope some day it will include a 'list my personal sticky threads' link in the usercp :)
Justdave
12-10-2005, 10:48 AM
Dave Clicks *Install*
Thanks Master.
Floris
12-10-2005, 08:07 PM
I could not wait ..upgraded to 1.0.2 :D
Code Monkey
12-11-2005, 03:02 AM
*clicks install*
Most excellent. It would be nice if it taged the thread like stickies do. Maybe instead of Sticky:, it could say MySticky:
icemann
12-11-2005, 04:06 AM
Just make your own buttons, here's what mine look like. :)
theArchitect
12-12-2005, 05:13 AM
I am having a bit of trouble.
I have made all of the template changes. Imported the product and uploaded the images, but if I log-in as a regular user and click on thread tools there is no option for personal stickies. :(
Mephisteus
12-12-2005, 07:49 AM
Is there an option for subscriptions (Its in the same if-statement)
twincamfxd
12-12-2005, 03:19 PM
I installed it and everything looks OK, but when I try to stick a thread it dissapears lol. Any idea what I did wrong? I am not sure where the threads are going, but they just vanish. Everything else looks awesome though.
FROGGYJ
12-12-2005, 11:47 PM
this mod cause these problems for me.
1. If you tried to access your usercp you get the following error
"Warning: in_array(): Wrong datatype for second argument in /usercp.php(439) : eval()'d code on line 32"
2. if you hit menu > subscribed threads you get the following erro
Warning: in_array(): Wrong datatype for second argument in /subscription.php(583) : eval()'d code on line 32
theArchitect
12-13-2005, 04:09 AM
Is there an option for subscriptions (Its in the same if-statement)Yep.
But the interesting thing is that in my SHOWTHREAD template div is used instead of tr.
So you code to find is
<if condition="$show['member']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</td>
</tr>
while mine is:
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</div>
I amended your code to work with div instead, but it should still show.
Mephisteus
12-13-2005, 02:01 PM
I installed it and everything looks OK, but when I try to stick a thread it dissapears lol. Any idea what I did wrong? I am not sure where the threads are going, but they just vanish. Everything else looks awesome though.
Did you do the first template edit (its the only reason I can think of why it would cause threads to disappear)
this mod cause these problems for me.
1. If you tried to access your usercp you get the following error
"Warning: in_array(): Wrong datatype for second argument in /usercp.php(439) : eval()'d code on line 32"
2. if you hit menu > subscribed threads you get the following erro
Warning: in_array(): Wrong datatype for second argument in /subscription.php(583) : eval()'d code on line 32
Are you using 1.0.2, this issue was adressed in 1.0.1
Yep.
But the interesting thing is that in my SHOWTHREAD template div is used instead of tr.
So you code to find is
<if condition="$show['member']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</td>
</tr>
while mine is:
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</div>
I amended your code to work with div instead, but it should still show.
Is that a costumized template? And what exactly do you mean with the last bit. If there isnt a <table> <tr><td> wont do much :P
twincamfxd
12-14-2005, 01:40 AM
Yep that was it lol. I missed one of the template edits. Works awesome now, Thanks!!
Smiry Kin's
12-17-2005, 01:56 PM
Very cool hack
ronoxQ
12-18-2005, 09:18 PM
Hmm... It works well, but the images aren't showing up? What can I do to fix this?
Mephisteus
12-18-2005, 09:22 PM
Upload the images to the proper image folder for the style you are using.
And click install :)
biggazillakilla
12-19-2005, 02:01 AM
Wow, just installed. That was pretty quick and easy. Great work!
Any way to add something to set it apart from the other threads (other than the stickypin)? For example, with a different background color or a prefix such as:
MySticky: Personal Stickys
(Like the default stickies do.)
Edit: I'm going to call this "starring" in my forum to see how that works.
So, something like this:
Starred: Personal Stickys
john1744
12-19-2005, 04:05 AM
Absolutely fantastic, my forum userbase is from a Lithium powered forum and this is a feature of Lithium and they greatly miss it. I thank you.
Mephisteus
12-19-2005, 07:28 AM
Wow, just installed. That was pretty quick and easy. Great work!
Any way to add something to set it apart from the other threads (other than the stickypin)? For example, with a different background color or a prefix such as:
MySticky: Personal Stickys
(Like the default stickies do.)
Edit: I'm going to call this "starring" in my forum to see how that works.
So, something like this:
Starred: Personal Stickys
Its not with this version and I have no plans to continue development at this time. Its pretty easy to do it yourself though :)
JohnBee
12-19-2005, 07:40 AM
Beautiful! installed... - thanks
john1744
12-19-2005, 10:12 AM
Hmm, I stickied a thread last night, and woke up this morning and the thread I had stickied wasn't showing up, but after I searched and found the thread it was saying it was still stuck.
Also I added a small seperator underneath the self-stickied threads and it was working fine last night but now when I woke up I have two seperators from the stickies and normal posts.
Mephisteus
12-19-2005, 08:27 PM
Hmm, I stickied a thread last night, and woke up this morning and the thread I had stickied wasn't showing up, but after I searched and found the thread it was saying it was still stuck.
Also I added a small seperator underneath the self-stickied threads and it was working fine last night but now when I woke up I have two seperators from the stickies and normal posts.
Sounds like it collides with another hack. Thats about all I can say about it. Havent got a clue as to how to fix that.
biggazillakilla
12-19-2005, 09:07 PM
Its not with this version and I have no plans to continue development at this time. Its pretty easy to do it yourself though :)Yeah, I know it should be easy for some, but for me, it's a challenge. I tried to do it a bit yesterday, but I messed up some stuff.
I'll give it another try, though.
Thanks again for this hack. It's just what I wanted ever since I read Wayne's post about it (http://www.vbulletin.com/forum/showthread.php?t=118860).
BrandiDup
12-19-2005, 09:49 PM
this may be a totally idiotic question, but does this hack increase database queries?
If not, I'm installing immediately. Brilliant Idea!
ronoxQ
12-20-2005, 01:08 AM
I can't find the images! Help me...
I uploaded them as-is to my directory, but they don't show up.
Besides that, it works. Thanks a lot.
biggazillakilla
12-20-2005, 03:02 AM
I can't find the images! Help me...
I uploaded them as-is to my directory, but they don't show up.
Besides that, it works. Thanks a lot.Which directory did you upload them to?
biggazillakilla
12-20-2005, 03:03 AM
this may be a totally idiotic question, but does this hack increase database queries?
If not, I'm installing immediately. Brilliant Idea!I couldn't say for sure, but since the stickies are different from each user, I would imagine that the only way to keep track of that would be to keep the information in the database. And the info page at the beginning indicates db changes, so I'd say it's a sure bet.
But I'm not a coder, so take it for what it's worth. :)
Mephisteus
12-20-2005, 03:58 AM
It doesnt add or modify any queries, it makes use of existing ones.
Although (obviously) it does execute a query when sticking or unsticking :p
BrandiDup
12-20-2005, 10:12 AM
Thank you!
Installed :D
biggazillakilla
12-20-2005, 07:58 PM
Can anybody point me in the right direction for where to look to change the background color of personal stickies and to add a prefix (or perhaps even move the graphic to the front of the threadtitle)?
To change the background color, I've tried playing around with the threadbit by adding this conditional:
<if condition="$thread['selfsticky'] == 1">
or
<if condition="$thread['personalsticky'] == 1">
but nothing's working.
Should I try something like this?
<if condition="$personalsticky"> <td style="background: #FFE9B9;" class="alt2" id="td_title_$thread[realthreadid]" title="$thread[preview]"><img class="inlineimg" src="$stylevar[imgdir_misc]/mystickypin.gif" alt="$vbphrase[personal_sticky_thread]" /> </if>
Thanks again in advance for any assistance.
Mr.Design
12-23-2005, 02:20 AM
Sounds like it collides with another hack. Thats about all I can say about it. Havent got a clue as to how to fix that.
I've got NO other hacks installed and I got the same thing... :ermm:
foxconn
12-23-2005, 02:47 AM
good work man
Mephisteus
12-23-2005, 06:37 AM
I've got NO other hacks installed and I got the same thing... :ermm:
Identified as a bug. I will look through the file and see where the problem is at tonight after school.
The thread will quite simply be stickied to the top of its own page, not the first page per see.
Mr.Design
12-23-2005, 10:37 PM
Identified as a bug. I will look through the file and see where the problem is at tonight after school.
The thread will quite simply be stickied to the top of its own page, not the first page per see.
Great :)
Thanks for the work on this! It's a great idea! :)
nirmah
12-24-2005, 06:28 AM
My SHOWTHREAD has:
<if condition="$show['member']">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</div>
</if>
This instead of the on on the readme:
<if condition="$show['member']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</td>
</tr>
What should I add then?
Thank you
redspider
12-26-2005, 07:24 AM
My SHOWTHREAD has:
<if condition="$show['member']">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</div>
</if>
This instead of the on on the readme:
<if condition="$show['member']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</td>
</tr>
What should I add then?
Thank you
same problem here I reverse the template but still look diferent from the code post here .
armagan
12-26-2005, 09:04 AM
My SHOWTHREAD has:
<if condition="$show['member']">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</div>
</if>
This instead of the on on the readme:
<if condition="$show['member']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</td>
</tr>
What should I add then?
Thank you
!!!!!!
drumsy
12-26-2005, 11:11 PM
A member is reporting that even though they have stickied a thread, once the most recent reply exceeds what is on page one, it then dissapears.
aranthorn
12-27-2005, 01:32 PM
A member is reporting that even though they have stickied a thread, once the most recent reply exceeds what is on page one, it then dissapears.
This and the other issues reported that are related should be able to be fixed by modifying this:
==== Find in FORUMDISPLAY:
$threadbits
==== Add above
$threadbits_personalsticky
to this and it wiil list Forum Stickies then Personal Stickies then normal threads:
==== Find in FORUMDISPLAY:
$threadbits_sticky
==== Add below
$threadbits_personalsticky
or to this and it wiil list Personal Stickies then Forum Stickies then normal thread
==== Find in FORUMDISPLAY:
$threadbits_sticky
==== Add above
$threadbits_personalsticky
The attached image is of the first option. Oh, I also have a slight modification running that shows the old seperator bar, if you want it I found it on here somewhere ;)
aranthorn
12-27-2005, 02:39 PM
Ah just for giggles, here's the part of my FORUMDISPLAY that is modified:
<!-- show threads -->
<if condition="$show['stickies']">
$threadbits_sticky
$threadbits_personalsticky
<tr>
<td class="thead" colspan="0"> </td>
</tr>
</if>
$threadbits
<!-- end show threads -->
JAYEMULE
12-27-2005, 11:10 PM
Installed it with no troubles and members are enjoying it. Thanks for nifty little tool for the members.
diettalk
12-28-2005, 10:38 PM
It's there.. do a search for subscribe_to_this_thread in the template.
same problem here I reverse the template but still look diferent from the code post here .
troux
12-29-2005, 04:30 PM
Installed-- works great thx.
-tristan
john1744
12-30-2005, 04:50 AM
Once you figure out how to get it stuck on all pages, consider in re-installed. :)
aranthorn
12-30-2005, 11:18 PM
Existing bugs
23/12/05
- The stickied thread will be stickied to the top of its own page, not the first page per see. I think I found a fix, but it requires a code edit. Looking for other options.
Really, 'cause mine didn't do it :p
DF-inside
01-01-2006, 08:06 PM
This and the other issues reported that are related should be able to be fixed by modifying this:
==== Find in FORUMDISPLAY:
$threadbits
==== Add above
$threadbits_personalsticky
to this and it wiil list Forum Stickies then Personal Stickies then normal threads:
==== Find in FORUMDISPLAY:
$threadbits_sticky
==== Add below
$threadbits_personalsticky
or to this and it wiil list Personal Stickies then Forum Stickies then normal thread
==== Find in FORUMDISPLAY:
$threadbits_sticky
==== Add above
$threadbits_personalsticky
The attached image is of the first option. Oh, I also have a slight modification running that shows the old seperator bar, if you want it I found it on here somewhere ;)
This solution you come with doesn't fix what drumsy said.
This will only change the order of appearance (forum-sticky / own-sticky / threads)
What Drumsy was telling:
Once I want to personal stick a thread located at page 2 it only will show up as a sticky at page 2, and not at page 1, which forum-sticky does.
Mr.Design
01-02-2006, 02:28 AM
So what's the fix to the bug with it not staying stickied?
fixer
01-02-2006, 01:02 PM
thanx for this hack
it works.
the only thing is when someone try to stick a thread which is found in page 5 for example, the thread sticked in same page (5 in this example) not in first page.
anyone has a fix for that?
ronoxQ
01-02-2006, 05:36 PM
Upload the images to the proper image folder for the style you are using.
And click install :)
Heh :) It worked! Thanks mucho.
TosaInu
01-03-2006, 10:47 AM
thanx for this hack
it works.
the only thing is when someone try to stick a thread which is found in page 5 for example, the thread sticked in same page (5 in this example) not in first page.
anyone has a fix for that?
That is only true, perhaps, when each page can display stickies. In case the board only lists stickies at page 1, the personal stickied topic at page 5 disappears.
Displaying $threadbits_personalsticky is wrapped into the condition <if condition="$show['stickies']">
It should be moved outside the condition, right above $threadbits.
That is not a real solution though, personal stickied threads should move to page 1. For some reason, the board hurls real stickies to page 1, no matter how old they are, while personal ones are confined within their own page.
Mephisteus
01-03-2006, 11:52 AM
1.0.3 released.
Code Monkey
01-03-2006, 03:25 PM
This has file edits now????
Mephisteus
01-03-2006, 03:35 PM
Yes it does, it cant be done without them. Requesting a plugin for the two query spots would be useless since it could only be used for my hack.
DF-inside
01-03-2006, 06:12 PM
Ah just for giggles, here's the part of my FORUMDISPLAY that is modified:
<!-- show threads -->
<if condition="$show['stickies']">
$threadbits_sticky
$threadbits_personalsticky
<tr>
<td class="thead" colspan="0"> </td>
</tr>
</if>
$threadbits
<!-- end show threads -->
The above post was found over here (https://vborg.vbsupport.ru/showpost.php?p=857812&postcount=73) and is not compatible with the 1.03b version of this MOD.
I had the above code aswell, but will cause that the threads I personal stick are lost at the forums and cant be found anymore.
This solves:
<!-- show threads -->
<if condition="$show['stickies']">
$threadbits_sticky
</if>
$threadbits_personalsticky
$threadbits
<!-- end show threads -->
dsotmoon
01-03-2006, 06:34 PM
is there anyway to make this work per usergroups?
TosaInu
01-03-2006, 07:41 PM
is there anyway to make this work per usergroups?
Nice update Mephisteus.
aranthorn
01-04-2006, 01:59 AM
The above post was found over here (https://vborg.vbsupport.ru/showpost.php?p=857812&postcount=73) and is not compatible with the 1.03b version of this MOD.
I had the above code aswell, but will cause that the threads I personal stick are lost at the forums and cant be found anymore.
This solves:
<!-- show threads -->
<if condition="$show['stickies']">
$threadbits_sticky
</if>
$threadbits_personalsticky
$threadbits
<!-- end show threads -->
While I said it did not solve the original issue here:
https://vborg.vbsupport.ru/showpost.php?p=860840&postcount=78
I don't see how it's incompatible with 1.03b. I have this exact template edit and it's finding a previously buried personal sticky. I'm not trying to argue, but I just can't replicate what you've stated.
Big thanks for the update, excellent MOD!
sip217
01-06-2006, 07:49 PM
Awesome! I just installed it. I think my users will love this one!
i installed this plugin and its wonderful
But when plugin/Hook system is disabled i get this error when i try to login each section of my forum
Database error in vBulletin 3.5.2:
Invalid SQL:
SELECT threadid, lastpost, open
FROM thread AS thread
WHERE forumid = 3
AND (sticky = 1
OR threadid IN ())
AND visible IN (0,1,2);
MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '))
AND visible IN (0,1,2)' at
can you fix this problem?
its really a big problem when you disbale a plugin your forum wont be working again
Mephisteus
01-13-2006, 05:59 AM
Thats because that is a file edit
kr580
01-16-2006, 02:04 AM
I installed this but the pin icon isn't showing up next to the threads. I uploaded the pics and then installed... the 'Stick this thread' icon shows fine, but not the pin.
Any ideas?
Totti
01-16-2006, 07:11 AM
the normal pin goes to images and the stick this pin to images\style i think
kr580
01-16-2006, 04:51 PM
the normal pin goes to images and the stick this pin to images\style i think
I uploaded them per instructions.
digitalSite
01-17-2006, 11:25 PM
Hi: This looks like a pretty cool addition to my vB :) I was wondering, how would one "market" this feature? In other words, what can it be used for? Do you create a special forum only with people's sticky's on them, like a sticky board? Anyone like to share how you use this on your board? Looking for suggestions. Thanks :)
Legende
01-18-2006, 07:26 PM
it's not working on my board :ermm: i've done everything what's in the readme but when i press "stick the thread" it's a short loading but nothing happens?
smdani
01-26-2006, 11:12 AM
I know, but I really hope some day it will include a 'list my personal sticky threads' link in the usercp :)
I hope too
And I was trying to call the list of forums what were marked as stiky and I had managed to show it with two SQL queries and some other code. Like this
SELECT threadsticky FROM user WHERE userid='$the_user_I_want' ORDER BY username ASC
And this
SELECT threadid,title,lastpost,lastposter FROM thread WHERE threadid = $fa ORDER BY lastpost DESC
Where $fa takes the list of threadids who had marked and $the_user_I_want is my problem because I don?t know how to take the $userid at the same time that I do the rest of it
The only step left is to put this into the userCP whit a plugin, template change, or editing the usercp.php but its out of my range, I do some tries without success
?Any one could help me with some clue?
Thanks for your help, and thanks for the hack, its really good
SilentNoise
02-08-2006, 01:52 AM
Love it. that's one heck of an idea
RGSMDNR
02-16-2006, 02:51 PM
i get this error...
Parse error: syntax error, unexpected T_STRING in /home/XXX/public_html/forums/forumdisplay.php on line 802
but it still works if i dont edit this file??
Webs007
02-20-2006, 09:13 AM
Can you make an option that a user has to pay to enable there post to become sticky for a certain number of days.
Breakdown:
Admin panel - to set price - and how many days it should be sticy for
User can post a thread - and then on the actual post - when it has edit - quote etc - there could be a option that says - "enhance" (or something similar) - they get taken to a paypal page - then once paid - they return to the forum and there thread is sticky at the top for 5 days (or whatever the admin has specified in the control panel).
What do you think?
Webs007
Smiry Kin's
02-20-2006, 12:32 PM
Theres already a payment sticky thing..
Webs007
02-20-2006, 12:46 PM
really? - Do you have a link to the plugin then?
antialiasis
04-24-2006, 06:01 PM
Installed, and works like a dream. Thanks.
Webs007
05-03-2006, 10:39 AM
Theres already a payment sticky thing..
Your silence says it all, for those of you interested there is a Plugin being made here.
https://vborg.vbsupport.ru/showthread.php?t=108228
Webs
brianmt
05-09-2006, 03:15 AM
Warning: in_array(): Wrong datatype for second argument in /showthread.php(1911) : eval()'d code on line 352
could you tell me how to fix it?
Mephisteus
05-09-2006, 07:59 AM
Yes, apply the code edit.
brianmt
05-09-2006, 02:20 PM
ummm i have applied it, the error is about .php but i only edited the one in the templates...
also when you said below you meant leave the original code and put the new one directly under the original (and the smae with above) right?
thanks
Mephisteus
05-09-2006, 05:26 PM
When I say add below or above I do mean leave the orignal bit.
The thing I can otherwise imagine is that you didn't upload the product.
And stupid question, you do have the latest version right?
brianmt
05-09-2006, 06:37 PM
I have version 3.5.2, which it has been tested on, and is the version its made for....
maybe i didnt upload the product right liek you pointed out. I don't think i know how.....
See what i did was i uploaded the product.xml file to vb/includes/xml/ the includes xml file part with FTP....how am i supposed to do it?
Mephisteus
05-09-2006, 08:46 PM
Did you also import it (http://www.vbulletin.com/docs/html/import_product)?
brianmt
05-10-2006, 01:49 AM
it worked thanks, mate.
Amiga-uk
05-24-2006, 08:39 PM
Im having problems with this working in connection to the vRewrite plugin.. Is there a way to get this working with the rewritten urls?
Derek
05-31-2006, 06:20 AM
I did everything per the instructions in the zip, but I don't see the link to sticky the threads. Any idea why it would not work?
Mephisteus
05-31-2006, 08:21 PM
@Amiga-uk
I don't know the vRewrite thing works. And have no intention of installing it. It should however be a simple modification so if anyone knows it. Feel free to post it up.
@Derek
Check to make sure you did the template edit. It's the only reason I can think of why it wouldn't display the option.
Oblivion Knight
06-09-2006, 08:00 PM
Any plans to update this for vBulletin 3.6.0?
I've worked around the file and template edits, but the option doesn't appear on a thread - so I'm guessing parts of the plugins need to be rewritten aswell..
Mephisteus
06-10-2006, 10:15 AM
I plan on fixing this when I start working on my own board which I hope will be very soon depending on how things go on with school.
[edit]
Obviously things are busy with school. Don't expect to see this mod converted before final comes out. I do intend on converting it but I just have more important things to deal with atm.
JenniferK
09-07-2006, 10:38 PM
any update on when this may be available?
Keyser S?ze
11-20-2006, 09:44 AM
this is a pretty cool hack any idea when u might be able to make it work in 3.6.3? thanks
Dennis B
12-01-2006, 05:38 PM
Yeah it's a pity he's not had time to convert it yet, this is such a cool hack.
VietPirates
12-07-2006, 03:47 PM
any update yet? ;)
deeoo
12-07-2006, 08:18 PM
Works great for 3.6.4 (https://vborg.vbsupport.ru/showthread.php?t=133439) if you alter 4 things in the readme.txt.
Use the attached readme.txt and replace the one in the mod if you use 3.6.4.
deeoo
12-08-2006, 12:14 AM
Update: it's not as flawless as I tought...
Update: it's not as flawless as I tought...
What Flaw ?
What Flaw ?
Ok i found
You must Edit SHOWTHREAD template
Find
<if condition="$show['moderated'] OR $show['deletedthread'] OR $show['paperclip'] OR $show['subscribed'] OR $show['sticky'] OR $show['rexpires']">
Replace with
<if condition="$show['moderated'] OR $show['deletedthread'] OR $show['paperclip'] OR $show['subscribed'] OR $show['sticky'] OR $show['rexpires'] OR $personalsticky">
Keyser S?ze
01-09-2007, 11:45 PM
going to give this a try tonght, if it has been updated can the updater contact the original maker, maybe it can be rereleased officially
Keyser S?ze
01-12-2007, 07:21 PM
Ok i found
You must Edit SHOWTHREAD template
Find
<if condition="$show['moderated'] OR $show['deletedthread'] OR $show['paperclip'] OR $show['subscribed'] OR $show['sticky'] OR $show['rexpires']">
Replace with
<if condition="$show['moderated'] OR $show['deletedthread'] OR $show['paperclip'] OR $show['subscribed'] OR $show['sticky'] OR $show['rexpires'] OR $personalsticky">
no where in show thread template is any of this, so im not sure where to put it did u name the wrong template?
Keyser S?ze
04-02-2007, 09:23 PM
can anyone help with this hack, trying to make it work in 3.6.5
vb_customer
04-28-2007, 09:35 PM
So this doesn't work in 3.6.5 yet?
Keyser S?ze
04-29-2007, 02:39 AM
nope sure dont, needs an update for sure
Lionel
05-08-2007, 05:32 AM
I've got this to work in 3.60
first in forumdisplay.php you must remove the last bracket in OR threadid IN ($personalstickysq))
and do like (no parenthesis after AND sticky =)
AND sticky = 1
OR threadid IN ($personalstickysq)
and then do the change in post 126 but the correct template is threadbit, not showthread
PJSkiboy
06-05-2007, 03:30 PM
Quick question, is this mod supposed to show your personal stickies in every forum/subforum you visit or is it simply supposed to sticky those threads in the forum they reside?
Currently the personal stickies are following me around everywhere i go on my forums, lol. Is there a way to make them simply be stickied in the forum they were created in???
I really hope i simply have some code wrong somewhere, lol.
gingery
06-20-2007, 02:24 PM
I would really like to have a working version of this hack for 3.6.7.
john1744
09-11-2007, 10:13 PM
Actually I just got it working perfectly for 3.6.7
gingery
09-12-2007, 12:29 AM
Actually I just got it working perfectly for 3.6.7
Can you share the details? :)
yoyoyoyo
09-12-2007, 12:33 AM
how many extra queries does this send to the server?
john1744
09-12-2007, 01:54 AM
vBulletin 3.6.7 PL1 Instructions
Try out these directions and report back. As far as I remember this is what I did to get it working. (Basically following others ideas and putting them together.)
fixer
09-16-2007, 10:11 PM
vBulletin 3.6.7 PL1 Instructions
Try out these directions and report back. As far as I remember this is what I did to get it working. (Basically following others ideas and putting them together.)
it gives error in vb3.6.8
zendiver
01-19-2008, 02:13 AM
it gives error in vb3.6.8
It works, but there is a slight problem within the document. It says:
==== Find in forumdisplay.php
$stickies = $db->query_read_slave("
SELECT thread.threadid, lastpost, open
FROM " . TABLE_PREFIX . "thread AS thread
WHERE forumid = $foruminfo[forumid]
AND sticky = 1
$visiblethreads
==== Replace with
$stickies = $db->query_read_slave("
SELECT thread.threadid, lastpost, open
FROM " . TABLE_PREFIX . "thread AS thread
WHERE forumid = $foruminfo[forumid]
AND (sticky = 1
OR threadid IN ($personalstickysq)
$visiblethreads
The replacement is missing a closing paranthesis - it needs a double )) after $personalstickysq
It should look like this for the replacement
==== Replace with
$stickies = $db->query_read_slave("
SELECT thread.threadid, lastpost, open
FROM " . TABLE_PREFIX . "thread AS thread
WHERE forumid = $foruminfo[forumid]
AND (sticky = 1
OR threadid IN ($personalstickysq))
$visiblethreads
AND there was a step left out that was part of the original installation.
Working on 3.6.8 PL2 - Complete Update Installation Revision is attached!
iRO Wiki
03-25-2008, 05:38 PM
After fiddling with it, I figured out a way to limit it to X usergroups:
<if condition="is_member_of($vbulletin->userinfo, 2)">
Just keep adding group ID's after the first, seperated by commas, like so:
<if condition="is_member_of($vbulletin->userinfo, 2, 6, 32, 14)">
If you put it around the code for sticking/unsticking a thread, only people in those groups will see that link!
<if condition="is_member_of($vbulletin->userinfo, 2, 6)">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mysticky.gif" />
<if condition="in_array($thread['threadid'], $personalstickys)">
<a href="showthread.php?$session[sessionurl]do=unpersonalsticky&t=$threadid">$vbphrase[personal_unsticky]</a>
<else />
<a href="showthread.php?$session[sessionurl]do=personalsticky&t=$threadid">$vbphrase[personal_sticky]</a>
</if>
</td>
</tr>
</if>
</if>
Need to add the first if statement then a </if> at the end.
Keep in mind that if a person you allow to have stickies gets removed from the group, they will still see the stickied threads, they just won't be able to unstick them without using the direct link.
Edit: co-admin brought up a good point, can you still stick from the URL if you knew it, the answer was yes, so I went back to fiddling. The URL's look like this:
showthread.php?do=personalsticky&t=1
showthread.php?do=unpersonalsticky&t=1
And can be called even if you hide the link.
Edit the following plugin: Stick/unstick check
Find:
if ($_REQUEST['do'] == 'personalsticky' )
replace with:
if ($_REQUEST['do'] == 'personalsticky' AND is_member_of($vbulletin->userinfo, 2))
Making sure to edit your usergroups.
If you aren't in the defined groups, and try to manually stick a thread, it just takes you to the thread and nothing happens. I'd love it to go to an error message but I have no idea how.
ThE LeAdEr
07-17-2008, 09:25 PM
Work in 3.7??
Kaelon
09-02-2008, 03:40 PM
Work in 3.7??
For those interested, with the original author's permission, I released an update to this hack for vBulletin 3.7.x:
https://vborg.vbsupport.ru/showthread.php?t=189444
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.