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)
-   -   Subscribe / unsubscribe to forums on forumhome (https://vborg.vbsupport.ru/showthread.php?t=53279)

Odysseus 05-22-2003 10:00 PM

Subscribe / unsubscribe to forums on forumhome
 
My second hack dealing with subscriptions. :)

What does it do?
This hack will add one litte quick-link for each forum shown on the main index. By clicking this link, the user adds this forum to his subscriptions.
It the user already has a subscritions for this forum, the text will change to "unsubscribe" and a click will - guess what - unsubscribe the user from this forum. :-)

Other than the hack which adds tree little images next to each forum description, this hack enables the user to actuelly unsubscribe from forms directly on the index page, which is not possible with the "three little images" hack.

THIS HACK WILL ADD EXACTLY ONE QUERY TO THE FORUMHOME-PAGE (index.php)



FILES TO EDIT: 1 (4 changes total)
TEMPLATES TO EDIT: 1 (1 change total)
TEMPLATES TO ADD: 2
TIME NEEDED: ~5 Minutes


Credit goes to BOOFO who originally had this hack idea.

Odysseus 05-23-2003 11:44 AM

Screenshot:

Boofo 05-23-2003 12:20 PM

Thank you, sir. ;)

Lethal 06-30-2003 03:10 AM

I noticed that if I would click subscribe on forumhome and then go to that forum, the "Subscribe to this forum" Link is still there under "Mark this forum read". This should change to Unsubscribe also. How would you make this work for forumdisplay too? If you click subscribe on forumhome, shouldn't it change the link in forumdisplay.php also and vice versa.

Smoothie 06-30-2003 04:15 AM

not sure if the 2 are compatible, but here ya go:
https://vborg.vbsupport.ru/showthrea...subscribe+link

Odysseus 07-03-2003 01:14 PM

Quote:

06-30-03 at 06:10 AM Lethal said this in Post #4

If you click subscribe on forumhome, shouldn't it change the link in forumdisplay.php also and vice versa. [/B]
This is done wrong (ok, not really wrong - it's simply missing) on forumdisplay.php ... I think the hack that smoothie linked can solve this.


All times are GMT. The time now is 01:34 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.01140 seconds
  • Memory Usage 1,720KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete