View Full Version : Link To Subscribe to All Categories
Brian
04-30-2008, 12:56 PM
This was requested here (http://www.vbadvanced.com/forum/showpost.php?p=143326&postcount=11) and seemed easy enough to create and probably useful, so I thought I'd throw a quick plugin together for it. This will allow you to create a new link in vBa Dynamics where your members can subscribe to all categories in one click.
Installation Instructions:
1). Download the plugin attached to this thread and upload it via the 'Download / Upload Plugins' link in your Admin CP.
2). Add the following code anywhere in your templates where you would like for the link to appear.
<a href="misc.php?do=subscribeall">Subscribe To All Categories</a>
kevinh
05-19-2008, 03:08 AM
Many thanks for this Brian.
Is it possible to also have a function which subscribes to all sub categories in a specific category?
attroll
08-08-2009, 01:32 AM
I tried installing this plugin and when I click on the link I created in my template I get the following error.
Fatal error: Call to undefined function fetch_private_categories() in /home/mysite/public_html/journals/misc.php(106) : eval()'d code on line 3
Brian
08-10-2009, 12:12 PM
Look in the new plugin called 'Subscribe to All Categories w/ 1 click' that was created, replace 'fetch_private_categories' with 'dyna_fetch_private_categories', and that should take care of the problem.
attroll
08-10-2009, 12:27 PM
I just did this and added the link to my Dynamics navbar.
I went to the category I wanted to subscribe to and when I click on the link I no longer get the error but it does not give me any message or let me know anything has changed.
Brian
08-10-2009, 12:45 PM
It uses vB's standard redirect function. You can force it to show the redirect message by looking in the plugin for this line:
eval(print_standard_redirect(ADV_DYNA_PREFIX . '_addedsubscription'));
And replacing with this:
eval(print_standard_redirect(ADV_DYNA_PREFIX . '_addedsubscription', true, true));
attroll
08-10-2009, 01:05 PM
OK. It now displays the message.
Now how do I view the categories that I subscribe in dynamics from this mod? There should also be a way to unsubscribe from them. I do not see a way to do that.
angeljs
01-18-2011, 08:33 AM
Thanks for this...very handy :)
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.