Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Who was online today [available in english & german] Details »
Who was online today [available in english & german]
Mod Version: 1.00, by Mystics (Member) Mystics is offline
Developer Last Online: Jun 2015 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (6 votes - 4.83 average) Installs: 339
Released: 11 Jan 2002 Last Update: Never Downloads: 26
Not Supported  

Hack Name: Who was online today
Hack Version: 1.0.2
For vB Version:: 2.x
Originally Created by: genial @ Skats Board (Contact)
Documentation, Translation, a few changes and posted by: Mystics

Description:
This Hack adds something like the "Currently Active Users:"-Feature of vBulletin.
The difference is, instead of showing the users, who are currently online, it shows
all Users, who were online on a day and it also displays "Most users ever online on a day".

Summary of the Features:
  • Shows "Number of Active Users Today"
  • Shows "Most users ever online on a day"
  • Shows last online time for each User while pointing the Mouse Cursor on it's name (=mouseover) in the list
Important: The Hack only works 100% correct, when each member is in the same time zone as the Server!

Files to edit: index.php
Templates to edit: forumhome
New Templates: forumhome_todayloggedinusers, forumhome_todayloggedinuser

I have attached the Install Instructions in a Text File.
The Instruction is in English and in German.

I will attach a Screenshot in a Reply to this Thread!

Post any Questions into this Thread!

Updates in 1.0.1: Inserted the two new templates into the template precaching (first step)

Updates in 1.0.2: Fixed a little Bug with the "Most users ever online on a day"-Count
(Replace '$maxusers[2] = $todayonline;' with '$maxusers[2] = $numbertodayonline;' in index.php)

Info: You can find an other version of this Hack here. In this other version the usernames of the members, who were already online today, are not shown on the Forum-Mainpage; the names are shown in an extra File (like online.php), onlinetoday.php (Screenshot).

So, depending on which version of the Hack you prefer, you have to download this:
Version with usernames on the main Site of the Forum

or this:
Version with usernames on extra site (onlinetoday.php)

Regards,
Mystics

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
List of all Moderators in your Admin CP [ModList Hack available in english & german] Mystics vBulletin 2.x Full Releases 28 14 Sep 2004 22:48
Show user with posts in popup for each forum on forumhome [english/german] KarateKid vBulletin 2.x Full Releases 12 11 Aug 2003 03:10
Stars for vB2.2.1 (english/german) Wolf42 vBulletin 2.x Full Releases 122 28 Apr 2003 04:33

  #421  
Old 26 Sep 2003, 00:47
patriciafrankie patriciafrankie is offline
 
Join Date: Sep 2003
Real name: Patricia
Dumb question. Where do I find the forumhome template?
Reply With Quote
  #422  
Old 26 Sep 2003, 01:15
Trigger351's Avatar
Trigger351 Trigger351 is offline
 
Join Date: Aug 2003
Its in Control panel > templates > modify
Reply With Quote
  #423  
Old 26 Sep 2003, 01:34
patriciafrankie patriciafrankie is offline
 
Join Date: Sep 2003
Real name: Patricia
Will I need to do that with every theme I have?
Reply With Quote
  #424  
Old 26 Sep 2003, 07:05
Trigger351's Avatar
Trigger351 Trigger351 is offline
 
Join Date: Aug 2003
Yep if you are using multiple themes otherwise just modify the default theme
Reply With Quote
  #425  
Old 27 Sep 2003, 03:44
patriciafrankie patriciafrankie is offline
 
Join Date: Sep 2003
Real name: Patricia
Another question

I installed this hack (the first one) and it didn't show up I installed it for two themes, and it still won't show up.

Using v2.3.2

Thanks,
Patricia
Reply With Quote
  #426  
Old 29 Sep 2003, 04:32
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
I just installed this on my vb3 with ease.

Tad change but works awsome

patricia did you remember to put templates in both themes?
Reply With Quote
  #427  
Old 29 Sep 2003, 06:30
BenS BenS is offline
 
Join Date: Jul 2003
This is a good one.

*clicks install*
__________________
DnDChat.Com - Dungeons and Dragons Discussion Forum
Reply With Quote
  #428  
Old 07 Oct 2003, 04:56
copyninja's Avatar
copyninja copyninja is offline
 
Join Date: Sep 2003
thanx works GREAT!

using vb 2.3.2

::clicks install::
Reply With Quote
  #429  
Old 24 Oct 2003, 23:11
TeH Z0mB1E TeH Z0mB1E is offline
 
Join Date: Aug 2003
um help i must of installed this wrong because my "most users ever online" and "most users ever online in a day" are resetting daily.
its embarrassing when my forum says most users ever online 1 so please help
__________________
Z0mbie!
Reply With Quote
  #430  
Old 31 Oct 2003, 01:23
TeH Z0mB1E TeH Z0mB1E is offline
 
Join Date: Aug 2003
sorry for the double post but can anyone please help?
__________________
Z0mbie!
Reply With Quote
  #431  
Old 16 Nov 2003, 19:24
kauka kauka is offline
 
Join Date: Nov 2002
Might be a dumb question but how can I get it to work with 2.3.3? They changed the coding some.
Reply With Quote
  #432  
Old 24 Nov 2003, 19:48
Tri@de's Avatar
[email protected] Tri@de is offline
 
Join Date: Sep 2003
Real name: David
Originally Posted by kauka
Might be a dumb question but how can I get it to work with 2.3.3? They changed the coding some.

Yes, but a little bit.
there's only a little thing in index.php

In the 2.3.3 you have

if (($maxusers[0] <= $totalonline AND $maxusers[0] > 0) OR sizeof($maxusers) == 1) {

instead of

if ((int)$maxusers[0] <= $totalonline) {

so, if you whant to modify, write

// today online hack begin
if (($maxusers[0] <= $totalonline AND $maxusers[0] > 0) OR sizeof($maxusers) == 1) {
$time = time();
$maxloggedin = "$totalonline " . $time . " " . $maxusers[2] . " " . $maxusers[3];
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[0] = $totalonline;
$maxusers[1] = $time;
}

$todayloggedinusers = "";
$numbertodayonline = 0;
$numbertodayonlineinvisible = 0;

$todayusers=$DB_site->query("SELECT userid, username, usergroupid, lastactivity, invisible FROM user
WHERE lastactivity > " . (mktime(0,0,0,date("m"),date("d"),date("Y")) + (($bbuserinfo['timezoneoffset']-$timeoffset)*3600)) . "
ORDER BY username");
while ($todayuser=$DB_site->fetch_array($todayusers)) {
$numbertodayonline++;
$invisibleuser = '';
$userid = $todayuser['userid'];
$lastactivetime = vbdate($timeformat, $todayuser[lastactivity]);
if ($todayuser['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
$numbertodayonlineinvisible++;
continue;
}
if ($todayuser['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
}
if ($todayuser['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$todayuser[username]</i></b>";
} else if (($mod["$userid"] or $todayuser['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$todayuser[username]</b>";
} else {
$username = $todayuser['username'];
}
if (!$todayloggedinuser) {
eval("\$todayloggedinuser = \"".gettemplate('forumhome_todayloggedinuser')."\";");
} else {
eval("\$todayloggedinuser .= \", ".gettemplate('forumhome_todayloggedinuser')."\";");
}
}

$DB_site->free_result($todayusers);

if ($bbuserinfo[usergroupid] == 6) {
$todayonline = $numbertodayonline;
} else {
$todayonline = $numbertodayonline - $numbertodayonlineinvisible;
}

if ((int)$maxusers[2] <= $numbertodayonline) {
$time = time();
$maxloggedin = $maxusers[0] . " " . $maxusers[1] . " $numbertodayonline " . $time;
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[2] = $numbertodayonline;
$maxusers[3] = $time;
}

$todayrecordusers = $maxusers[2];
$todayrecorddate = vbdate($dateformat,$maxusers[3]);

eval("\$todayloggedinusers = \"".gettemplate('forumhome_todayloggedinusers')."\";");
//today online hack end


And it's done
i hope this help you
Reply With Quote
  #433  
Old 26 Nov 2003, 22:26
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Real name: Christian
Hi,

I user vBIndex and want to show the last 5 Online Users in an Box... is it possible with this?
Reply With Quote
  #434  
Old 27 Nov 2003, 02:18
Nebby Nebby is offline
 
Join Date: Apr 2003
Real name: Ben Keeton
Works great, cheers.
Reply With Quote
  #435  
Old 16 Jan 2004, 17:41
tHe Rk tHe Rk is offline
 
Join Date: Jan 2004
Originally Posted by [email protected]
Yes, but a little bit.
there's only a little thing in index.php

In the 2.3.3 you have

if (($maxusers[0] <= $totalonline AND $maxusers[0] > 0) OR sizeof($maxusers) == 1) {

instead of

if ((int)$maxusers[0] <= $totalonline) {

so, if you whant to modify, write

// today online hack begin
if (($maxusers[0] <= $totalonline AND $maxusers[0] > 0) OR sizeof($maxusers) == 1) {
$time = time();
$maxloggedin = "$totalonline " . $time . " " . $maxusers[2] . " " . $maxusers[3];
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[0] = $totalonline;
$maxusers[1] = $time;
}

And it's done
i hope this help you
I was Having problems on the 2.3.4 and this took care of the problem! Thanks a million!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 01:03.

Layout Options | Width: Wide Color: