Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Thread & Forum Subscribe/Unsubscribe Link Details »»
Thread & Forum Subscribe/Unsubscribe Link
Version: 1.00, by bigmattyh bigmattyh is offline
Developer Last Online: Mar 2014 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-14-2002 Last Update: Never Installs: 22
 
No support by the author.

Thread & Forum Subscribe/Unsubscribe Link
Confirmed working with vB 2.2.6.

This hack changes the standard "subscribe" link to "unsubscribe" if you're already subscribed to that forum or thread. It's template-based, so you can easily change the text of the links to whatever you want.

Demo: Here. If you'd like to see it in action, you can register and play around with subscribing and unsubscribing to threads and forums.

Comments and criticism are always welcome, and if you like this hack, please install it !

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-17-2002, 04:36 AM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks man. It seems very clear now!
Reply With Quote
  #13  
Old 04-05-2002, 04:44 AM
bigmattyh's Avatar
bigmattyh bigmattyh is offline
 
Join Date: Nov 2001
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks to Scott, this hack is now much more appropriately titled.

Enjoy!
Reply With Quote
  #14  
Old 06-03-2002, 11:53 AM
bigmattyh's Avatar
bigmattyh bigmattyh is offline
 
Join Date: Nov 2001
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

UPDATE: This hack is confirmed to be fully-functional with vB 2.2.6.

Also, just to clarify, this hack enables you to change the subscribe link to unsubscribe on forums and threads.
Reply With Quote
  #15  
Old 06-03-2002, 10:15 PM
bigmattyh's Avatar
bigmattyh bigmattyh is offline
 
Join Date: Nov 2001
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey everyone,

I've fixed a minor bug which displays the unsubscribe link for guests. The zip file has the updated hack instructions, but if you've already installed the hack, here's the quick fix:

In forumdisplay.php and showthread.php, you inserted this line:
Quote:
if ($subscribed[userid] == $bbuserinfo[userid])
Just change that to:
Quote:
if (($subscribed[userid] == $bbuserinfo[userid]) and ($bbuserinfo[userid] != 0))
That's it!
Reply With Quote
  #16  
Old 06-05-2002, 06:11 AM
XFLBret XFLBret is offline
 
Join Date: May 2002
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I posted this on my 2.2.6 lat night, and now the bottom of my threads now look like the attached screenshot.

If you need to get into my forums to look around and see what I mean (thought the screenshot should pretty much say it all), the URL is

http://www.pcfootball.net/forums/index.php

username: vbhelper
password: helpme
Reply With Quote
  #17  
Old 06-06-2002, 07:12 PM
Size Size is offline
 
Join Date: Jan 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

xflbret and bigmattyh,

There is an error in the instructions for editing the showthread template. When you follow the instructions and replace the portion of showthread with the code in the instructions, you get the result that XFL just posted. There is a missing </table> at the end of the replacement code. Just add that at the end of the inserted code and all will be well.

This might only be an issue with 2.2.6, that's what I'm running.

Size
Reply With Quote
  #18  
Old 06-07-2002, 07:07 PM
bigmattyh's Avatar
bigmattyh bigmattyh is offline
 
Join Date: Nov 2001
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the delay -- I was out of town for a couple of days.

The instructions are now fixed. Thanks for the heads-up!
Reply With Quote
  #19  
Old 06-14-2002, 03:14 AM
Paul Paul is offline
 
Join Date: Jan 2002
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Excellent hack and something I hope to see in future versions of vB! I always thought it was silly that the subscribe links weren't dynamic.

I did find a minor error in your instructions:
Quote:
Template name: forumdisplay_subscribelink_sub
Template set: Default
Template: <a href="member2.php?s=&action=removesubscription&for umid=$forumid">Unsubscribe from this forum</a>

Template name: forumdisplay_subscribelink_notsub
Template set: Default
Template: <a href="member2.php?s=&action=addsubscription&forumi d=$forumid">Subscribe to this forum</a>
Both of these templates are lacking the $session[sessionhash] variable. The corrected code should be ...member2.php?s=$session[sessionhash]&action=....

Thanks!

Paul
Reply With Quote
  #20  
Old 07-02-2003, 12:02 AM
Kriek's Avatar
Kriek Kriek is offline
 
Join Date: Jul 2002
Location: Florida
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
03-16-02 at 05:28 PM Logician said this in Post #5
Hack already exists: (by me lol)
Which is confirmed working on 2.3.0
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:29 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04369 seconds
  • Memory Usage 2,287KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete