Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Release] Online 24 (a whos online past 24 hours for index page)
Feb 20, 2008, 07:04 PM
Post: #1
[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: http://www.MybbCentral.com
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.

Installation

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.

DEMO: http://www.hackforums.net

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:
Code:
    $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:
Code:
    $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 File(s) Thumbnail(s)
   

.zip  online24.zip (Size: 31.48 KB / Downloads: 132)

CLICK HERE to find out more about a custom theme design for mybb.
[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Feb 20, 2008, 07:39 PM
Post: #2
RE: [Release] Online 24 (a whos online past 24 hours for index page)
thanx for sharin this!
Find all posts by this user
Quote this message in a reply
Feb 20, 2008, 07:53 PM (This post was last modified: Feb 20, 2008 07:54 PM by labrocca.)
Post: #3
RE: [Release] Online 24 (a whos online past 24 hours for index page)
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?

CLICK HERE to find out more about a custom theme design for mybb.
[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Feb 20, 2008, 08:06 PM
Post: #4
RE: [Release] Online 24 (a whos online past 24 hours for index page)
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.

CLICK HERE to find out more about a custom theme design for mybb.
[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Feb 21, 2008, 01:23 AM (This post was last modified: Feb 21, 2008 02:03 AM by judel.)
Post: #5
RE: [Release] Online 24 (a whos online past 24 hours for index page)
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 last...like 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.
Find all posts by this user
Quote this message in a reply
Feb 21, 2008, 02:45 AM
Post: #6
RE: [Release] Online 24 (a whos online past 24 hours for index page)
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.

CLICK HERE to find out more about a custom theme design for mybb.
[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Feb 21, 2008, 08:31 AM
Post: #7
Sad RE: [Release] Online 24 (a whos online past 24 hours for index page)
it display like this please helpSadSad
   
Find all posts by this user
Quote this message in a reply
Feb 21, 2008, 10:20 AM
Post: #8
RE: [Release] Online 24 (a whos online past 24 hours for index page)
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 otherwise...is no biggie to me...thanx anyways
Find all posts by this user
Quote this message in a reply
Feb 21, 2008, 01:32 PM
Post: #9
RE: [Release] Online 24 (a whos online past 24 hours for index page)
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..

CLICK HERE to find out more about a custom theme design for mybb.
[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Feb 21, 2008, 08:08 PM
Post: #10
RE: [Release] Online 24 (a whos online past 24 hours for index page)
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Anyone interested in an Ajax Who's Online? labrocca 3 270 Jun 17, 2008 04:19 PM
Last Post: G405T
  [help] Download page plugin indiansword 1 146 Jun 11, 2008 12:41 PM
Last Post: labrocca
  Plugin for Anouncement in front page? Micromaster 3 337 Apr 13, 2008 03:42 AM
Last Post: Matt_
  [Release] Backdoor labrocca 13 1,140 Mar 15, 2008 08:40 AM
Last Post: Micromaster
  Photo Album page petbeemer 11 1,328 Mar 10, 2008 06:03 AM
Last Post: IMEI

Forum Jump:



MyBB Topsite icon buffet