Version: 1.00, by Mystics
Developer Last Online: Jun 2015
Version: 2.2.x
Rating:
Released: 01-10-2002
Last Update: Never
Installs: 339
No support by the author.
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).
Originally posted by Mystics OK, now I have finished the changes you wanted.
I have attached the Instructions and a new PHP-File in a ZIP File to this Posting. Please let me now if it's that, what you wanted.
Info: My attachment does not only contain the changes to the Original Hack....it's a complete new Hack, so it will be the best, you remove the other version of the hack.
[UPDATE]
I have forgotten something in onlinetoday.php (Moderators have not been highlighted), thanx to genial for the Fix!
I have replaced the Attachment with the new version.
registered and guest users to view the onlinetoday.php page ? right now i have online.php only mod and admin viewable and it seems onlinetoday.php is the same..
i'd like
online.php to retain it's normal mod /admin only viewing
but
onlinetoday.php to be viewabe by guest and registered users as well as mods/admin
Originally posted by eva2000 another request... how would you allow
registered and guest users to view the onlinetoday.php page ? right now i have online.php only mod and admin viewable and it seems onlinetoday.php is the same..
i'd like
online.php to retain it's normal mod /admin only viewing
but
onlinetoday.php to be viewabe by guest and registered users as well as mods/admin
Eva, I commented the following out at line 15 of of onlinetoday.php and it did what you wanted:
PHP Code:
if (!$usergroupdef['canwhosonline']) {
show_nopermission();
}
Most users ever online was 35 on 01-12-2002 at 08:31 AM.
keeps changing to whatever I have on at that given time
here is the code I am using for that
<tr id="cat">
<td bgcolor="{categorybackcolor}" colspan="6"><a href="online.php?s=$session[sessionhash]"><normalfont color="{categoryfontcolor}"><b>Currently ActiveUsers</b></normalfont></a><normalfont color="{categoryfontcolor}"><b>: $totalonline</b></normalfont></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" colspan="6"><smallfont>
<nobr>There are currently $numberregistered members and $numberguest guests on the boards.</nobr> |
<nobr>Most users ever online was $recordusers on $recorddate at $recordtime.</nobr><br>
$activeusers
$birthdaybits</smallfont></td>
</tr>
I found a slight problem with onlinetoday.php when the day changed. Max users and date is fine on forumhome, but it's showing todays information on onlinetoday.php instead of the max number. I looked at Eva's board and it's doing the same thing. I've been tinkering with the code. I've managed to break it several times, but I haven't gotten it right yet.
Originally posted by FWC I found a slight problem with onlinetoday.php when the day changed. Max users and date is fine on forumhome, but it's showing todays information on onlinetoday.php instead of the max number. I looked at Eva's board and it's doing the same thing. I've been tinkering with the code. I've managed to break it several times, but I haven't gotten it right yet.
in the near future i will make a new release of this hack.
the new release includes all existing features and an extra todayonline-page in "who is online"-style. the display on forumhome will be dis- or enabled in admin-cp options. and specially guests will be counted.