![](https://templateshares.net/include/templates/default/images/logo.jpg)
Post: #1
|
||
XAKERA![]() ![]() Joined: 19-12-2006 Posts: 1 Country: ![]() ![]() ![]() |
![]() i edit total online in index.php but shot this and don't show number's how many people in site! Users Online ()
plz somebody post good user online! if somebody have good tracker statistic post it! |
|
|
||
Post: #2
|
|
fantinsh![]() ![]() Joined: 20-12-2006 Posts: 12 Country: ![]() ![]() ![]() |
![]() maybe you need to add this in index.php...
![]() CODE: $dt = gmtime() - 180; $dt = sqlesc(get_date_time($dt)); $result = mysql_query("SELECT SUM(last_access >= $dt) AS totalol FROM users") or sqlerr(__FILE__, __LINE__); while ($row = mysql_fetch_array ($result)) { $totalonline = $row["totalol"]; } add before this code: CODE: $dt = gmtime() - 180; $dt = sqlesc(get_date_time($dt)); .......... and... make style like you want... smthn like i have ![]() CODE: <h2>Online users: (<?=$totalonline?>)</h2> <table width="100%" border="1" cellspacing="0" cellpadding="10"><tr><td align="left"> <table class="main" border="1" cellspacing="0" cellpadding="5"> <br> <?=$activeusers?><br> Latest user: <b><?=$latestuser?></b>.<br> </table> </td></tr></table> |
|
|
Post: #3
|
|
lasha12345![]() ![]() Joined: 14-11-2006 Posts: 89 Country: ![]() ![]() ![]() |
![]() Total Online(
): i think you have $res=mysql query ![]() ![]() CODE: <h2> Total Online( <?=$totalactive?> ):</h2> <br /> <?=$activeusers?> <br /> i think you have $res=mysql query ![]() ![]() |
|
|
«
Previous Thread
|
Next Thread
»
|