The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
This snippet is from index.php, it's supposed to only update when the number of users online is equal or greater then the previous stat. Problem is this template keeps getting updated with a lower number.
PHP Code:
It's really annoying me. Regards |
#2
|
|||
|
|||
![]()
For one thing, you don't need to usually typecast in PHP. It handles variable comparisons intelligently.
Also, shouldn't it be >= anyway? |
#3
|
|||
|
|||
![]()
I checked and double checked a virgin index.php. The code is exactly as it appears in the distributed file of vB version 2.3.0.
|
#4
|
||||
|
||||
![]()
If you find a fix for this, please let us know.
![]() |
#5
|
|||
|
|||
![]()
$totalonline probably isn't set, so it's evaluating to 0.
A fun trick is to copy that line of code and encapusate it in quotes in an echo statement (i.e., echo "that line of code;"). You'll see (mostly) what PHP is doing. |
#6
|
|||
|
|||
![]()
Since it's not code that I've modified, I'll call it a bug and leave it to the authors of vB.
Thanks |
#7
|
||||
|
||||
![]()
If you hear anything on it, we would be interested.
|
#8
|
|||
|
|||
![]()
Holding steady and not decrementing since adding....
Code:
if ( (int)$maxusers[0] <= $totalonline && $maxusers[0] != 0 ) { |
#9
|
||||
|
||||
![]()
All that does is change the number to a date, still not working correctly.
|
#10
|
|||
|
|||
![]() Quote:
Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|