View Full Version : $forum[browsers]
mindhunter77
09-12-2008, 03:03 AM
How can I get this $forum[browsers] to work in a custom template, I make a call for that and it does nothing =(
Opserty
09-12-2008, 08:13 AM
Its not a simple case of just throwing it in a template. You need to trace back the PHP that creates it and place it in a hook near the template. Unless you have a decent knowledge of PHP it will be very hard for you to do.
mindhunter77
09-12-2008, 02:19 PM
Well it's my mission for today lol,
Thanks for the advice, =)
Opserty
09-12-2008, 03:59 PM
$inforum holds which users are in a forum (if any) but I'm not sure if this is availiable on all pages, it may only be availiable on the index.php page & the forumdisplay.php page.
mindhunter77
09-12-2008, 04:01 PM
That's fine, those are the only places I want to use it lol, Thanks for advice, going to research this now.
--------------- Added 1221238951 at 1221238951 ---------------
By the way, is there a place where I can view all these types of things $inforum
Opserty
09-12-2008, 04:03 PM
Also functions_forumlist.php has this on line 367 or thereabouts:
$forum['browsers'] = 0;
$children = explode(',', $forum['childlist']);
foreach($children AS $childid)
{
$forum['browsers'] += (isset($inforum["$childid"]) ? $inforum["$childid"] : 0);
}
mindhunter77
09-12-2008, 04:22 PM
I see what your talking about here
{
$forum['browsers'] += (isset($inforum["$childid"]) ? $inforum["$childid"] : 0);
}
Now what would I need to do to call this in my new forumhome template?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.