vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Change "Subscribe to This Thread" link to "Unsubscribe" if already subscribed (https://vborg.vbsupport.ru/showthread.php?t=35493)

Logician 02-26-2002 10:00 PM

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.

nafae 02-27-2002 09:39 AM

nice, i shall test this out tonight

AkiraLite 02-27-2002 01:13 PM

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.

Logician 02-27-2002 01:50 PM

Quote:

Originally posted by AkiraLite
You need to swap Unsubscribe and Subscribe in the two possible links at the end of the script in showthread.php. They're backwards.

Right.. Corrected..Thanks..

In my board they were not in English, so while copying here, made a typo.

fonzerelli_79 02-27-2002 02:21 PM

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

Logician 02-27-2002 02:52 PM

Quote:

Originally posted by fonzerelli_79
just a small note to everyone else
the https://vborg.vbsupport.ru/vbimages part should be a link to the images folder but this site changes it to the vbulletin images folder

Good catch pal.. I have edited my post, thx..

Erwin 02-28-2002 08:15 AM

Great hack!!! I love it! Should be made standard in the next version.

Lesane 02-28-2002 09:47 AM

Very nice, well done :up:

Smoothie 04-04-2002 07:38 AM

Installed, and works great!

mashby 05-05-2002 01:58 PM

It's probably me, but I'm getting a parse error on the first "{" Any thoughts?


All times are GMT. The time now is 08:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02238 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete