The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Add "S" icon next to Subscribed Threads w/link to view all subscriptions Details »» | |||||||||||||||||||||||||||
Add "S" icon next to Subscribed Threads w/link to view all subscriptions
Developer Last Online: Dec 2014
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. Show Your Support
|
Comments |
#22
|
|||
|
|||
GK-ng,
Good update. I'll test it out and then update to my original if ok w/you. I had tried the single database query similar to how you had it but missed a parameter I think on my "ON" clause which resulted in single threads showing up multiple times in a row on a page as my database query was not correct. Because of this I went the other route of a seperate query. If your board is not heavily loaded you are just as well off with either version but if your board is more heavily loaded it's wise to save the query as you point out. I fall into the heavy traffic board so I'll be testing out the query and see if I can remember exactly why I couldn't get it just right back then. Thanks for helping out |
#23
|
|||
|
|||
Quote:
And surely not a problem from my side. |
#24
|
|||
|
|||
Quote:
Do you plan to update the original instructions, so long ? Thanks |
#25
|
|||
|
|||
Quote:
Just something. Are you sure if inserting such a LEFT JOIN between thread and subscribethread tables, the later LEFT JOIN with the icon table would be run correctly ? I'm just thinking... what about you ? Thanks |
#26
|
|||
|
|||
Actually I think I tried the changes Gk-ng made and got an error so I had to change the query...I'll go back and see what I finally ended up with and repost the variation...my original is easiest for a lower volume board and if you really need to optimize by saving a query then the other version I'll post will work...have to go run through the changes I made now...
|
#27
|
|||
|
|||
Thanks.
Hwr. I made it worked simply by moving the LEFT JOIN subscribethread ON .... just before the WHERE clause. This way, the entire table BEFORE is left joint with the subscribethread.... Now it works fine... without adding any query to the page (verified by the Nakkid's Hack...) Thanks again |
#28
|
|||
|
|||
This is the alternate form of this hack which will save the query which can be used. Either one will work fine but for those concerned about queries you may certainly wish to use this variation.
In forumdisplay.php ADD THIS: PHP Code:
BEFORE THIS: PHP Code:
Next again in forumdisplay.php Find: PHP Code:
Change to: PHP Code:
Now change the template forumdisplaybit as follows: Find: PHP Code:
PHP Code:
That's all...the users can click the "S" icon (download icon from first post) and view all their subscribed threads as well. |
#29
|
||||
|
||||
Installed the original version and it works like a champ. Thank you!
Any chance of getting this to work on Subscribed Forums as well? |
#30
|
|||
|
|||
Mashby,
I'll check into it for you once I get a little time to code it and test..should not be hard to add though. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|