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 Martz
Well, the Currently Online Users figure includes invisible users when you are logged out, so it would be nice to keep it consistant.
sorry about that, because in our board, the currently online users is modified to show invisible users for members as guests and so it is in our board consistant.
Originally posted by Martz Well, the Currently Online Users figure includes invisible users when you are logged out, so it would be nice to keep it consistant.
You just have to edit the new template 'forumhome_todayloggedinusers':
Originally posted by eva2000 1. is it possible to have the list of usernames visited today in a popup linked to the Number of activeuserstoday text ? my list page would be too long with 200 - 500 currentyly active + the list of users visited today
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.
[UPDATE2]
Max users and date are now showing correct.
[UPDATE3]
Fixed problem with the "Most Users"-Count
(Replace '$maxusers[2] = $todayonline;' with '$maxusers[2] = $numbertodayonline;' in index.php & onlinetoday.php)
[UPDATE4]
Fixed the Query within onlinetoday.php and index.php
(includes now the User's Timezone)
This is such a cool hack! I installed the new version with the screen for Who Was Online. I love it. I do have one small problem. The other admin and myself are showing up as bold and italic on that page. But, the moderator on the page isn't bold for some reason. I'll see if I can figure it out. But, any help would be appreciated.
I fixed it. I just added user group 7 to the or statement in the highlighting section in onlinetoday.php.
Originally posted by FWC
But, the moderator on the page isn't bold for some reason. I'll see if I can figure it out. But, any help would be appreciated.
sorry about mystics, he has forgotten the moderator-query in onlinetoday.php.
search for:
PHP Code:
if (!$usergroupdef['canwhosonline']) {
show_nopermission();
}
and place under:
PHP Code:
$forummoderators=$DB_site->query('SELECT user.userid,user.username,moderator.forumid
FROM moderator
LEFT JOIN user
ON (moderator.userid=user.userid)
ORDER BY user.username');
while ($moderator=$DB_site->fetch_array($forummoderators)) {
$imodcache["$moderator[forumid]"][] = $moderator;
$mod["$moderator[userid]"] = 1;
}
$DB_site->free_result($forummoderators);
unset($moderator);