This is going to involve modifying global.php or functions.php, I am not sure which one. Basicly the header template is parsed before almost every other template, so basicly your going to have to move those functios/variables around. I am unfamiliar with doing this, but hopefully some of the smarter members here will be able to help
You have to put the code somewhere before line 278 in global.php (the one in your main forums directory). I'd recommend putting it right before
// parse PHP include ##################
Originally posted by tubedogg You have to put the code somewhere before line 278 in global.php (the one in your main forums directory). I'd recommend putting it right before
// parse PHP include ##################
Great, thanks Kevin! I've got one more question, though. Which lines of code must I copy (from index.php into global.php) for the total number of online users? It appears to be a bit more complicated than the other three...
// get online users
$datecut=time()-$cookietimeout;
$headerguests=$DB_site->query_first("SELECT COUNT(*) AS count FROM session WHERE userid=0 AND lastactivity>$datecut");
$headerusers=$DB_site->query_first("SELECT COUNT(DISTINCT(userid)) AS count FROM session WHERE session.userid>0 AND session.lastactivity>$datecut");
$headeronline=$headerguests[count]+$headerusers[count];