The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#62
|
|||
|
|||
Quote:
I will look and see if i can figure out what is going on in a little while. |
#63
|
|||
|
|||
Quote:
|
#64
|
||||
|
||||
was looking for that. Thx a lot. :top
|
#65
|
|||
|
|||
Fixed it.
Here are my changes Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#66
|
|||
|
|||
Sorry, it doesn't work. It resets the date to 01-01-1970 and hides the most users ever online on a day completly.
|
#67
|
|||
|
|||
This hack only works if whosonline is on so make sure that you have it turned on.
|
#68
|
|||
|
|||
I have not been able to recreate your problem I have check all the code im using and this looks like the only parts i changed. Check and make sure you did the replaces correctly.
|
#69
|
|||
|
|||
That's a screenshot of my forum after replacing the variables with yours. I'm 100% sure that I've made exactly what you've posted. Who's online is enabled and I haven't made any other changes to index.php *confused*
|
#70
|
|||
|
|||
Quote:
|
#71
|
|||
|
|||
That's the whole code of the hack:
Code:
// ### WHO WAS ONLINE TODAY ######################## if (intval($maxusers['maxonline']) <= $totalonline) { $maxusers[0] = $totalonline; $maxusers[1] = TIMENOW; } $todayloggedinusers = ""; $numbertodayonline = 0; $numbertodayonlineinvisible = 0; $todayusers=$DB_site->query("SELECT userid, username, usergroupid, lastactivity, options FROM ".TABLE_PREFIX."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)) { $todayuser['options'] = intval($todayuser['options']); foreach($_USEROPTIONS AS $optionname => $optionval) { $todayuser["$optionname"] = iif($todayuser['options'] & $optionval, 1, 0); } $numbertodayonline++; $invisibleuser = ''; $userid = $todayuser['userid']; $lastactivetime = vbdate($vboptions['timeformat'], $todayuser[lastactivity]); if ($todayuser['invisible']==1 and $bbuserinfo['usergroupid']!=6) { $numbertodayonlineinvisible++; continue; } if ($todayuser['invisible'] == 1) { // Invisible User but show to Admin $invisibleuser = '*'; } $username = fetch_musername($todayuser); if (!$todayloggedinuser) { eval("\$todayloggedinuser = \"".fetch_template('forumhome_todayloggedinuser')."\";"); }else{ eval("\$todayloggedinuser .= \", ".fetch_template('forumhome_todayloggedinuser')."\";"); } } $DB_site->free_result($todayusers); if ($bbuserinfo[usergroupid] == 6) { $todayonline = $numbertodayonline; } else { $todayonline = $numbertodayonline - $numbertodayonlineinvisible; } if (intval($maxusers['maxonline']) <= $totalonline) { $maxloggedin = $maxusers[0] . " " . $maxusers[1] . " $numbertodayonline " . TIMENOW; $maxusers[2] = $numbertodayonline; $maxusers[3] = TIMENOW; $DB_site->query("REPLACE INTO " . TABLE_PREFIX . "datastore (title, data) VALUES ('maxloggedin', '" . addslashes(serialize($maxusers)) . "')"); } $todayrecordusers = $maxusers[2]; $todayrecorddate = vbdate($vboptions['dateformat'],$maxusers[3]); eval("\$todayloggedinusers = \"".fetch_template('forumhome_todayloggedinusers')."\";"); |
#72
|
|||
|
|||
I've used another hack from vBulletin.nl now(http://www.vbulletin.nl/community/showthread.php?t=1475). At the moment it's working perfectly. I'll see what will happen if we reach 0:00 ... This hack here resets the statistics every day on this time.
|
#73
|
|||
|
|||
Quote:
|
#74
|
|||
|
|||
I got this error when installing:
Database error in vBulletin 3.0.0 Release Candidate 2: Invalid SQL: INSERT INTO phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, 0, 'last_online_at_x', 'Last online at {1}', 1) mysql error: Duplicate entry 'last_online_at_x-0-1' for key 2 mysql error number: 1062 Date: Saturday 10th of January 2004 12:35:53 AM Script: http://www.musicbanter.com/test/admi...php?do=install Referer: http://www.musicbanter.com/test/admi...php?do=install Username: admin IP Address: *** But I think it worked? Is this normal? |
#75
|
|||
|
|||
works for me good job
|
#76
|
|||
|
|||
Quote:
did this get fixed? or does it fix itself at midnight? doesn't give a total either thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|