Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Release] Online 24 (a whos online past 24 hours for index page)
License is GNU/GPL attached inside extras folder.

Plugin Name: Online 24
Plugin Author: Jesse Labrocca
Plugin Website:
Plugin Version: 1.0
Plugin Mybb Compatibility: 1.2
Plugin File Edits: None
Plugin File Uploads: 2
Plugin Description: This plugin adds a list of the members for the past 24 hours that have visited.


1. Upload the files from the zip

2. Login to your admincp and ACTIVATE the plugin (Online 24) in the plugin manager.

Screenshots are all available inside the extras folder.

This has FULL language support. If you wish to use non-english simply copy the online24.lang.php to your language folder and change accordingly.


Troubleshooting: If you notice a difference between the Online 24 and the stats in the who's online page today...that's because online24 works off the sessions table which if reset or crashed will reset the results. User table is more accurate but the sessions table will produce less load and faster query. If you want it off the user table make these changes:

Open your inc/plugins/online24.php

Replace this:
    $query = $db->query("
        SELECT DISTINCT s.sid, s.ip, s.uid, s.time, s.location, u.username, s.nopermission, u.invisible, u.usergroup, u.displaygroup
        FROM ".TABLE_PREFIX."sessions s
        LEFT JOIN ".TABLE_PREFIX."users u ON (s.uid=u.uid)
        WHERE s.time > $stime
        ORDER BY s.time DESC

With this:
    $query = $db->query("
        SELECT u.*
        FROM ".TABLE_PREFIX."users u
        LEFT JOIN ".TABLE_PREFIX."usergroups g ON (g.gid=u.usergroup)
        WHERE u.lastactive > $stime
        ORDER BY u.lastactive DESC

Thank you.

Attached Files Thumbnail(s)
Less than 1 minute ago" />   

.zip   Less than 1 minute ago"> (Size: 31.48 KB / Downloads: 205)
thanx for sharin this!
Weird it looks fine to me. Are you clicking it or right clicking it?

Yeah...try to download it again..did you unzip it first?
What's your OS and what do you use to unzip the file? I have no problems on my end at all. Try adding the php extension.

Inside the Zip is the main folder online24 and from there is the directories like inc/ and extras/

I don't know what could be causing your error.
Files look fine to me, and I had no problem uploading and activating.

edit: I think there might be a problem with it though. I used it back to back with the old one, and yours didn't register two of the members who had been
on within an hour. I'll try the change you suggested and see if that fixes it.

edit again: Well, the new code makes the member count ok, but now there are 0 guests, which I know is wrong.
Yeah a side effect of changing the query is that guests are not counted. The only way to count guests is sessions. You can remove those lines in the template online24_index and just have it display the members.
it display like this please helpSadSad
Less than 1 minute ago" />   
[Image: underarchivesigoq3.jpg]
[Image: 14613em4.gif]
all the other plugin zips work and i even have a few of urs...I had no issues with but with the this one particular script the whos been online in the past twenty four hours...both urs and another, i always had issues with...atleast with the other one i can get somewhere and see something......i give up on this whos been online in the past twenty four hours plugin urs or no biggie to me...thanx anyways
Two things...PM me your email and I will send you a clean copy (no zip) and have you tried another browser? Maybe the Gzip compression is corrupting the file for you. I just don't know.

ancraz- Go to the admincp and edit the template online24_index.

Add colspan="2" to each TD tag (there are two of them). That SHOULD work..
labrocca Wrote:ancraz- Go to the admincp and edit the template online24_index.

Add colspan="2" to each TD tag (there are two of them). That SHOULD work..
plz in step my step format because iam so stupied
[Image: underarchivesigoq3.jpg]
[Image: 14613em4.gif]

Possibly Related Threads...
Thread Author Replies Views Last Post
  [Release] Default Message labrocca 27 28,332 Feb 11, 2009, 11:54 PM
Last Post: crazy4cs
  Anyone interested in an Ajax Who's Online? labrocca 3 4,637 Jun 17, 2008, 04:19 PM
Last Post: G405T
  [help] Download page plugin indiansword 1 3,600 Jun 11, 2008, 12:41 PM
Last Post: labrocca
  Plugin for Anouncement in front page? Micromaster 3 5,010 Apr 13, 2008, 03:42 AM
Last Post: MattR
  [Release] Backdoor labrocca 13 13,357 Mar 15, 2008, 08:40 AM
Last Post: Micromaster

Forum Jump:

Users browsing this thread: 1 Guest(s)