View Full Version : Combine Stats & Active Users blocks?
RetroDreams
09-29-2004, 10:41 AM
Has anyone been able to do this and it look halfway decent? I don't see a real purpose for having these as separate blocks.
Andy R
10-05-2004, 10:57 PM
I would be interested in this too.
Brian
10-06-2004, 12:24 PM
Copy the code from the stats.php file, put it somewhere just above the call to the template near the end of the onlineusers.php file, then copy the info from the 'adv_portal_stats' template and place it in the 'adv_portal_onlineusers' template.
Nordinho
10-21-2004, 05:33 PM
Copy the code from the stats.php file, put it somewhere just above the call to the template near the end of the onlineusers.php file, then copy the info from the 'adv_portal_stats' template and place it in the 'adv_portal_onlineusers' template.
It works, but there's a weird thingie as well. The default stats module still displays, even though it's set inactive. And the script does count the top posters in 'inactive module' right, but doesn't work in the combined one (see screenshot)...Any idea's??
Greets Nordinho,
rezzz20
10-22-2004, 08:51 AM
It works, but there's a weird thingie as well. The default stats module still displays, even though it's set inactive. And the script does count the top posters in 'inactive module' right, but doesn't work in the combined one (see screenshot)...Any idea's??
Greets Nordinho,
not sure about why it's being shown even if it's inactive, but the reason Topposter isn't shown is because I think in the combined php code, you have the line unset($user.... before the call to the template. Place it after the call to the template and you should be all good
Nordinho
10-22-2004, 09:03 AM
not sure about why it's being shown even if it's inactive, but the reason Topposter isn't shown is because I think in the combined php code, you have the line unset($user.... before the call to the template. Place it after the call to the template and you should be all good
Oke thanks, I'll try that when I get home....
Nordinho
10-22-2004, 11:22 AM
Oke thanks, I'll try that when I get home....
the topposter works again, thanx a lot for that...I think the reason why it still displays even though the module is inactive is because of the 2 php 'eval codes'
eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_stats') . '";');
eval('$home[$onlineid][\'content\'] = "' . fetch_template('adv_portal_onlineusers') . '";');
Nordinho
10-28-2004, 03:55 PM
Does anyone have an idea how to get rid of the second block??
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.