The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
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:
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 Show Your Support
|
Comments |
#77
|
||||
|
||||
im running 2.2.1 and it works perfectly,
post line 267 |
#78
|
|||
|
|||
Awesome hack...thx!
|
#79
|
||||
|
||||
Thank you for the great hack.
I would like to make a request of anyone who might be able to answer. I?d like to make the onlinetoday.php file also show invisible users to my mods, but I am unable to do so on my own. Can anyone provide the code that would allow usergroup 7 to see invisible users in onlinetoday.php? |
#80
|
|||
|
|||
Sounds like a good idea!
|
#81
|
||||
|
||||
Quote:
search for this line in the hack: PHP Code:
PHP Code:
|
#82
|
||||
|
||||
Works great. Thanks again.
|
#83
|
||||
|
||||
Dein Hack funzt tadellos! THX!!
|
#84
|
|||
|
|||
Very very useful hack, but I have some synchro problem... :greedy:
Installation type #1: I definetively don't think the followin code finds out the right midnight time when the server hasn't the same user's time zone... leased: PHP Code:
Thanks a lot. Bye |
#85
|
|||
|
|||
Quote:
If you make the correction to $unixtoday between the two SELECTs, you'll obtain different results from SELECT COUNT and SELECT... Shouldn't you ? I think it should be bette place the PHP Code:
Do you agree ? |
#86
|
||||
|
||||
The problem is, if the timezone of a member is -5 cet and another user has +7 cet, then there are problems with the correct count of today-online-record. Therefore, for the online record counts it has to be taken an uniform timezone, namely the servertime.
To reset the display of the today-online-member-names at 0:00 hours of his time zone the display of the today-member-names has to be called up separately at his timezone. I have a solution for this problem in my head, but momentarely i don't have the time to realize this. therefore it needs much more time to release the new version of this hack, that includes a fix for this problem. to this point the present hack works only 100%, when each member is in the same timezone as the server. |
#87
|
|||
|
|||
Yeah. Infact yesterday I applied the hack and found about 270 users from the midnight with all your corrections.
Today I have 0 (zero!) users, according to the same hack... Actually I think the traslation you made to $unixtoday var had the wrong sign ... :?: I though to a simpler solution, I guess. Simply, replace in the ORIGINAL HACK CODE: PHP Code:
PHP Code:
What do you thin about ? |
#88
|
|||
|
|||
Quote:
It seems these two numbers are stored in the same field of the same table, and the second overwrites the first one. Mystics, please, could you explain better those steps: PHP Code:
Bye |
#89
|
||||
|
||||
Quote:
Before the hack: only the number and the Time of the "Most users ever online at the same time" was stored in this Template. Therefore the content looked like: Code:
21 1010710015 1010710015 = $maxusers[1] = $time = Unix-Time of the moment when the record was reached After the Hack: First the number and the Time of the "Most users ever online at the same time" and then the number and the Time of the "Most users ever online on a day" is stored in this Template. Therefore the content look like: Code:
21 1010710015 84 1010530336 1010530336 = $maxusers[3] = $time = Unix-Time of the moment when the record was reached |
#90
|
|||
|
|||
Thanks a lot for such an exaustive answer.
I asked because, after having installed the hack for two days, I always got 0 as the maximum value and today as the date. But I think it was due to the timezone problem. About that, what do you think about my simple workaround of your hack code (3 posts above here) ? Quote:
|
#91
|
|||
|
|||
On our forums we use the colored users online hack which colorizes members by usergroups. When we added the "Who-was-Online-Today" we noticed that it showed up in "black" (our link color). Well we wanted one that matched the colors shown in the CUO hack and so my co-admin hacked the hack. Enjoy. Remember to modify $mod["$userid"] or $todayuser['usergroupid'] == # to reflect your usergroup colors & ids.
created by genial @http://www.skats-board.de (eMail: phenomenal_genial@hotmail.com) documentation & posted (with a few little changes) by Mystics (eMail: mystics27@gmx.net) Modified by The Tech for Zadi |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|