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

Home » FUDforum Development » Plugins and Code Hacks » Users Online hack
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Users Online hack [message #5836 is a reply to message #5835] Tue, 24 September 2002 19:37 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
Certainly it can be done, however it is not quite as simple as you make it out to be.
During the session initialization code, you would need to see if this user was previously logged in today and based on that increment the counts table.
The counts table would need to look something like this:

date (timestamp) reg_users (integer) anon_users (integer)

So, for each date you'd have a value inside that table, so to get the maximum number of registered users you'd simply run SELECT MAX(reg_users) FROM visitor_counts_table;

Something to this effect.


FUDforum Core Developer
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: More Information for registration
Next Topic: Fortune Cookies.
Goto Forum:
  

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

Current Time: Sat Nov 23 20:07:49 GMT 2024

Total time taken to generate the page: 0.04095 seconds