FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Total users online
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Total users online [message #12006 is a reply to message #12005] Thu, 24 July 2003 19:35 Go to previous messageGo to previous message
ctbk is currently offline  ctbk   Italy
Messages: 142
Registered: April 2002
Location: Milan, Italy
Karma:
Senior Member
I checked the logedin.inc and the code is in the right place.

here's a piece of logedin.inc:

        $obj->online_users_anon = q_singleval('SELECT count(*) FROM fud2_ses s WHERE time_sec>'.$tm_expire.' AND user_id>2000000000');
        $obj->online_users_hidden = q_singleval('SELECT count(*) FROM fud2_ses s INNER JOIN fud2_users u ON u.id=s.user_id WHERE s.time_sec>'.$tm_expire.' AND u.invisibl
        $obj->online_users_reg = q_singleval('SELECT count(*) FROM fud2_ses s INNER JOIN fud2_users u ON u.id=s.user_id WHERE s.time_sec>'.$tm_expire.' AND u.invisible_m
    $obj->online_users_tot = $obj->online_users_anon + $obj->online_users_hidden + $obj->online_users_reg;



And this is the status_line in msg:

status_line:                    <!-- totale: {VAR: obj->online_users_tot} -->Ci sono <b>{VAR: st_obj->online_users_reg}</b> utenti, <b> [...]


(it's the italian translation)


~
~
:wq
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CSS patch
Next Topic: Make Fudforum enforce good passwords using cracklib
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 11:41:21 GMT 2024

Total time taken to generate the page: 0.03820 seconds