PDA

View Full Version : Subscribe / unsubscribe to forums on forumhome


Odysseus
05-22-2003, 10:00 PM
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/showthread.php?s=&threadid=36936&highlight=subscribe+unsubscribe+link

Odysseus
07-03-2003, 01:14 PM
06-30-03 at 06:10 AM Lethal said this in Post #4 (https://vborg.vbsupport.ru/showthread.php?postid=414063#post414063)

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.