![]() |
Change "Subscribe to This Thread" link to "Unsubscribe" if already subscribed
CHANGE SUBSCRIBE LINK TO UNSUBSCRIBED IF ALREADY SUBSCRIBED HACK -- Logician
----------------------------------------------------------------- If the user subscribed to a thread, this hack will change the "Subscribe to this Thread" link at the bottom to "Unsubscribe from this Thread" link and if clicked he will be unsubscribed. So the users are not supposed to go to user control panel to unsubscribe anymore, they can subscribe/unsubscribe to the threads when they're reading them. The hack will work with any vbulletin versions I know and easy to apply.. If you liked this hack, you may want to take a look at these 2 hacks too: *Show all thread subscribers while reading the thread * Confirm Unsubscribe From All Threads Requests If you install it, please click install , thank you.. Enjoy! //=^)) Logician 30.06.2002: Hack installation instructions attached to a text file upon request. |
nice, i shall test this out tonight
|
You need to swap Unsubscribe and Subscribe in the two possible links at the end of the script in showthread.php. They're backwards.
Otherwise great tip. |
Quote:
In my board they were not in English, so while copying here, made a typo. |
top hack log
just a small note to everyone else the {imagesfolder} part should be a link to the images folder but this site changes it to the vbulletin images folder |
Quote:
|
Great hack!!! I love it! Should be made standard in the next version.
|
Very nice, well done :up:
|
Installed, and works great!
|
It's probably me, but I'm getting a parse error on the first "{" Any thoughts?
|
Quote:
(You'd better copy paste it to a text file and attach it to your message) |
Logician,
Thank you for your help today! The file that you sent back did the trick. :) |
HACK UPDATED!
I updated the hack and I suggest using the new version. To upgrade just apply the STEP 1 (in the first message of this thread) again (the code changed a bit). Simply delete the code you inserted before in step 1 from showthread.php and insert the new code instead, that's all.. It's ok if you stick with the older version, but the new code will save your board from an extra SQL query if thread viewer is a Guest. This will make a very tiny performance increase. I suggest using it.. If you havent installed this hack yet, just apply the hack as you see in the first message of this thread. It's already the new (updated) code.. Regards, Logician |
Thank you for the update. On a site like ours...all the queries we can save the better. We see 30,000 unique people a day.
Thanks again. David Bott AVS Forum http://www.avsforum.com |
Just installed this on 2.2.5. Works great. Simple but highly effective! Thanks! :)
|
Just installed the update... Works great :D
|
It works well. Thanks! :)
|
Working great on 2.2.6 too, thanks. :)
|
Gamerforums: thx for feedback :)
|
No worries, it's the least I can do when you're providing me with hacks. :D
|
I like this hack so much, I just installed it on a new board (2.2.6) that I'm putting together. Installed like a charm. Thanks for all your hard work Logician.
Just one small thing, it would be nice if you posted the hack as a .txt attachement. I ran into the same error I did on my first board. Luckily I remembered to copy the code in IE and not in Opera. :) A little attachment would make it easier for those of use not using IE. Just a thought. |
Quote:
|
Thanks Logician! I'll be sure to use it on my next board. :)
|
Quick and easy hack :) Nice job :D
|
Works with 2.2.7, cheers. :D
|
The last part of the hack in the txt file is a bit confusing....Do you add the text to below the showthread template area, replace?
Thanks! Brew |
Quote:
|
Still working like a charm on my 2.3.0 board.
Any way to have this hack work with Subscribed Forums as well? It just works so perfectly, but it would be great if it also worked with subscribing to a Forum as well. :) |
Excellent modification, should be made standard.
/me clicks install |
Works great on my board! (2.3.2)
*zsmom clicks install |
Nice hack. Just installed it on my site. Thank you very much!!
Caught a few things in the install directions I thought I would mention: - In step 2 you dont actually say what to do once you find the original code. For newbies like me following the "Follow each step" guideline of hacking our forum, the "Replace with" is helpful. :) - After installing on a 2.3.2 forum, the spacing was not consistant with the other options in that nav bar and missing a space inbetween the graphic and text. I just added a space in your replacement code in front of the "$log_subscription_link" to remain consistant with the look of the other options. - Lastly, I have the "Download this thread" hack installed and needed to simply just cut the "</smallfont></td>" from the end of the same line. Thank you very much again! Chris |
wonderful hack, installed on vB 2.3.3 and works like a charm :)
|
All times are GMT. The time now is 01:33 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:
|