![]() |
Works great. :D Thanks again.
|
Dein Hack funzt tadellos! THX!!
|
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... :pleased: PHP Code:
Thanks a lot. Bye |
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 ? |
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. |
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... :confused: 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 ? |
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 |
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 |
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:
|
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 |
All times are GMT. The time now is 06:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|