The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Most ever online NOT count spiders
I constantly have spiders on my board. Because of this, I added the option to reset my most ever online list (I have had 400-500 spiders on at once on several occasions). Because I would like to have accurate stats, I would LOVE the option to not include spiders on my most ever online list.
Anyone up to it? |
#2
|
||||
|
||||
In online.php, if you have installed my show spiders on forumhome page mod, you will see a section of code that looks like this:
Code:
$numberguests = $numberguests - $numberspiders; $totalonline = $numbervisible + $numberguests + $numberspiders; // ### MAX LOGGEDIN USERS ################################ if (intval($vbulletin->maxloggedin['maxonline']) <= $totalonline) { $vbulletin->maxloggedin['maxonline'] = $totalonline; $vbulletin->maxloggedin['maxonlinedate'] = TIMENOW; build_datastore('maxloggedin', serialize($vbulletin->maxloggedin)); } Anyhow, to get the effect you want, you would change that chunk to this: Code:
$numberguests = $numberguests - $numberspiders; $totalonline = $numbervisible + $numberguests + $numberspiders; // ### MAX LOGGEDIN USERS ################################ if (intval($vbulletin->maxloggedin['maxonline']) <= intval($totalonline-$numberspiders)) { $vbulletin->maxloggedin['maxonline'] = intval($totalonline - $numberspiders); $vbulletin->maxloggedin['maxonlinedate'] = TIMENOW; build_datastore('maxloggedin', serialize($vbulletin->maxloggedin)); } Amy |
#3
|
|||
|
|||
hmm... I do have your mod install.. But this doesn't seem to be working for me. It is still including the spiders in most ever online.
Here is my code: Code:
$numberguests = $numberguests - $numberspiders; $totalonline = $numbervisible + $numberguests + $numberspiders; // ### MAX LOGGEDIN USERS ################################ if (intval($vbulletin->maxloggedin['maxonline']) <= $totalonline) { $vbulletin->maxloggedin['maxonline'] = $totalonline - $numberspiders; $vbulletin->maxloggedin['maxonlinedate'] = TIMENOW; build_datastore('maxloggedin', serialize($vbulletin->maxloggedin)); } |
#4
|
||||
|
||||
Did you reset it? It's not going to subtract the spiders who were there from your existing max online. I don't want to reset mine to test.
|
#5
|
|||
|
|||
yes, I reset it a couple of times. I have spiders online now and it just adds them back to the max.
|
#6
|
||||
|
||||
Then I guess somebody else is going to have to take a crack at it for you. This is only possible to test on a live board and I don't want to clear out my stats. Sorry.
|
#7
|
|||
|
|||
Thanks anyway.
Anyone else up for the challenge? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|