View Full Version : Need site stats in the header!
NexDog
05-28-2003, 04:01 AM
Making a beautiful sidebar that is causing all sorts of headaches. Due to the way the site is being structured, this sidebar needs to be in the header. But no stats like $totalthreads, $newpm[messages] will show up!
Is there a way around this?
http://www.nexusportal.net/index.php?s=
Xenon
05-28-2003, 10:11 AM
those stats have to be parsed before the header is parsed in global.php
so wherever your code is, it's wrong if it's not before the header parsing line :)
NexDog
05-29-2003, 03:39 AM
So how do I get around that? Can I change the place where the header is parsed in global.php or something?*
Xenon
05-29-2003, 09:57 AM
as i said just put th stats code before the header parsing.
NexDog
05-29-2003, 10:54 AM
I understand the concept but I can't figure out how that's possible if the variables are actually in the header.....
Throw me some breadcrumbs here....please. :)
NexDog
05-30-2003, 03:59 AM
Just a few crumbs...:D
Xenon
05-30-2003, 01:13 PM
put needed code over eval("\$header = .....");
no more crumbs are possible
NexDog
05-30-2003, 01:18 PM
ahhh, gotcha...:)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.