View Single Post
  #4  
Old 17th September 2008, 10:26
mhmd_1983 mhmd_1983 is offline
Senior Member
 
Join Date: Jul 2008
Posts: 49
Default
Well, sorry for the messing information. i'm using TS 5.1 by mrdecoder

Krypto, isn't guest group has an id in code !! , i think it should be special group because the users will be connecting from many ips at the same time , and no ratio

i found that line in whatsgoingon.php plugin
Code:
$_dt = TIMENOW - TS_TIMEOUT;
$_qsquery = @sql_query("SELECT COUNT(*) as totalguests FROM ts_sessions WHERE lastactivity > $_dt");
$_guests = ts_nf(@mysql_result($_qsquery, 0, 'totalguests'));
$_wgo_query = sql_query('SELECT u.id, u.username, u.enabled, u.invisible, u.warned, u.leechwarn, u.donor, g.namestyle FROM users u LEFT JOIN usergroups g ON (u.usergroup=g.gid) WHERE UNIX_TIMESTAMP(u.last_access) > '.$_dt);
$_most_ever = mysql_num_rows($_wgo_query)+$_guests;
if i understand it right he just calculate the guests on fly and no usergroup for it :o

found it
tracker setting > MAIN Settings > Registered Members Only? (no)

Ok what about this group in forums !! , i still need to know how to define Guests group permission
Reply With Quote