View Full Version : Quick question about adding variables
Drakah
08-06-2005, 10:21 PM
I added in a plugin to show who was online today, and the string variable is $totaltoday. I tossed it in the adv_portal_onlineusers and it didnt show up. I tried adding in that module the FORUMHOME since that is where the plugin is being displayed currently, but that did not do any good either.
Is there some method to show variables?
Brian
08-07-2005, 01:45 PM
Which hook location did you add the plugin to?
Drakah
08-08-2005, 09:32 AM
the hook location for this plugin is forumhome_start, I added that as well into the module in the "templates used" area, and no go. :(
Brian
08-08-2005, 01:16 PM
Those variables are only going to work on your forum's homepage then. If you want it to work with the online users on the CMPS then you'll need to add the code for your plugin to your onlineusers.php file as well.
Drakah
08-08-2005, 03:05 PM
Ahh, I see. Thanks for the reply :) thought I was missing a "hook" option or something to work with CMPS. Edited the file and it works.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.