- - All
Thread titleFromLast replied
Now searching...
Neoseeker Forums » » Web Coding » [PHP & MySQL] Who's Online in a Specific Area » Post Reply

Note to Guests: For the enjoyment of other visitors, and to help keep this forum tidy and working smoothly, please make sure you search the forum before posting your question.
REPLY TO A THREAD
Name:* Members, please LOGIN before posting
Email: We use this to display your Gravatar

Sign in with
Subject:*
Message:*


HTML is not allowed
markup is allowed

Help with markup tags

Enabling Buttons in IE7




Smilies:
  ·all smilies here
:) :P ;) :( :| ;( :D :confused: :cool: :# :o ^_^ :colored: :thick:

Thread Recap (last 10 posts from newest to oldest)

Mar 18, 10 at 4:52pm
tekmosis


If you don't have a proper cleanup routine to clear out that table, it can get pretty big depending on how many forums+users you have.



Mar 16, 10 at 2:35pm
Tom


I suppose that could work. It's just that if I have hundreds of forums and thousands of users it's a lot of activity to monitor and I wasn't sure if that was the most efficient way of going about it. But thanks, I'll do it like that.



Mar 15, 10 at 11:55pm
Artificer


Well since what you want to store is "User is last active in Forum at Time," then a simple approach would be to have a table ForumActivity that has three columns—UserId, ForumId, and LastActiveTime. The primary key would be UserId and ForumId.

Not sure if this is what you're asking for though, or if you're looking for something else.



Mar 10, 10 at 6:09pm
Tom


Ok, so in my software, if a user is permitted to see the online status of another, then they will be shown as online if their account has been active in the last 15 minutes, and offline if it has not, and to make a list of people active on the site is easy enough... Just run a query to get every account which has had activity in the last 15 minutes.

But, when I want to go about saying who is active in a given forum, how would I go about that efficiently, bearing in mind that they can be active in multiple forums at any one time?




Powered by neoforums v1.6.5b (aperture)
Copyright Neo Era Media, Inc. 1999-2013

Neoseeker.com   |   Forum Rules   |   Forum FAQ   |   Neoseeker Terms of Use   |   Supermods On Duty [ server id: web6 ··· elapsed: 0.2227458954]
Chat and Lounges
Game Platforms
Mobile Platforms