![]() |
Add "S" icon next to Subscribed Threads w/link to view all subscriptions
This is my first "released" hack so I can give something back for all the cool hacks I found here.
This one is fairly simple. What it does is put a small icon next to the title in any thread that the user has subscribed to. The small icon is a clickable link which will take the user to a page where they can view all of their subscriptions. This requires modifying forumdisplay.php and one template file "forumdisplaybit". Also you must upload the image icon file to your images directory. First let's modify the forumdisplay.php file: Find: PHP Code:
PHP Code:
Now go into the admin cp and change the template forumdisplaybit as follows: Find: PHP Code:
PHP Code:
I'll try to upload a demo page in a minute or so. |
Here is a Screenshot:
|
Hey
that idea is really good!! Thank you for working it out to a full hack :) very nice! I am not sure if I am going to implement it to my forum, but sure will give it a try on my beta version :) |
Didn't seem to work for me. Followed the instructions and installed ok, no technical problems or errors showing, just the small icon and link don't show next to the thread.
|
AndyTSJ - Are the threads you are looking at ones you are sure you have yourself subscribed to? It will only show on those threads so if a page has threads but none are subscribed it will not show.
|
Yea, and I deliberately suscribed to a thread to test it and no luck :( The code is all in as you posted it in your instructions so I can't figure out why it won't work.
|
Did you put the code above the line?
PHP Code:
Also is the variable in the "forumdisplaybit" template and the icon in your image directory? I tested this on 2.2.1 but it should work in 2.2.2 and even earlier versions without problems. |
PHP Code:
Maybe there is a conflict with another hack already installed. |
when you pull up the source code for the html on one of the pages which has a thread you susbscribed to does any of the code appear after the thread title on the one you subscribed to?
Your code above looks ok. Try this just to troubleshoot. Change the if statement from if (subscribed_id>0) to: if (0==0) This will guarantee a true condition. All threads should show up with an S then. Do this quickly to test it if it's on a live board and then undo it fast so all your members don't wonder what all those S's are! If they show up then we've narrowed the problem down or if something is in the html source next to your thread. Let me know as it should be working. |
I am having the same problem as well. I subscribed to some threads but the S icon does not display. I did a quick test with the if 0==0 statement and all threads displayed the S icon.
|
All times are GMT. The time now is 12:35 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|