Jump to content
MakeWebGames

Upgrade Users Online


yuriorlov

Recommended Posts

historical tracking for your users online page

 

add this code somewhere on your users online page:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

here is the sql for it

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: Upgrade Users Online

thanks

If I don't get flamed I'll add more, I have used a bunch of stuff from this forum. (granted most of the stuff doesn't work out of the box 90% of the time) If you see a mod from me you can be sure its been tested thoroughly

Link to comment
Share on other sites

Guest Anonymous

Re: Upgrade Users Online

Waste of a table that -- Slap it into one query...

SELECT 5 AS minutes, COUNT(username) AS users FROM users WHERE laston >= UNIX_TIMESTAMP() - (5 * 60)

UNION SELECT 15 AS minutes, COUNT(username) AS users FROM users WHERE laston >= UNIX_TIMESTAMP() - (15 * 60)

UNION SELECT 30 AS minutes, COUNT(username) AS users FROM users WHERE laston >= UNIX_TIMESTAMP() - (30 * 60)

Add further UNION statements as appropriate

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...