>>
Site Map
>>
Forums
>>
Blocks 7x
Forum module - topics in forum:
Blocks 7x - Discussions regarding PHP-Nuke Blocks. 7x
People online counter problem
Can any one tell me why my People Online counter is not shower the correct amount of people online the site. When I go to forum administration. It show only 3 people online, but the counter say that there are 9.
Because the forum online section and nukes online section count visitors in different ways and for different periods of time.
The forum generally shows people who've been online over the last 5 mins whereas the nuke side holds info for 1 hour.
I remember having that problem, you can change how long nuke holds the sessions for, not sure if there is a setting in the admin for it I seem to have a memory of changing the code for that one, Dar?
Wasn't it mainfile.php??
| Dirk Wrote: : |
| Wasn't it mainfile.php?? |
Yep
Dependant on version it's either 3600 or 1800
| Quote: : |
function online() {
global $user, $cookie, $prefix, $db;
cookiedecode($user);
$ip = $_SERVER["REMOTE_ADDR"];
$uname = $cookie[1];
if (!isset($uname)) {
$uname = "$ip";
$guest = 1;
}
$past = time()-1800;
|
Woudnt it make so much sence to put that variable in the admin or config file even