It looks like you're new here. If you want to get involved, click one of these buttons!
The Royal Ram
Comments
[code:1:fb0d6d48c7]$q = mysql_query("SELECT COUNT(*) AS onlineusers FROM phpbb_sessions WHERE session_time >= " . time() - 900); // 900 = 15 minutes
$forumusers = mysql_fetch_row($q);
$forumusers = $forumusers[0];
// value from website added to get total
$totalonline = $websiteonline + $forumonline;[/code:1:fb0d6d48c7]
Webmaster-Talk.com
Chroder.com
The Royal Ram