The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to do this
Hello, i open online.php and i look for:
----- line 631 $totalonline = $numbervisible + $numberguests; I intend to add to the total a number example: $totalonline = $numbervisible + $numberguests + 50; But not working (i don't know php yet...) So i try another way: i add $test = 50; And i try again: $totalonline = $numbervisible + $numberguests + $test; What i am doing wrong |
#2
|
|||
|
|||
It looks like $totalonline is only used to handle the paging controls. You could do something like:
Code:
$numberguests += 50; $totalonline = $numbervisible + $numberguests; which seems to work but you will get paging controls as if there were 50 guests. |
#3
|
|||
|
|||
Hello thank you kh99 but it doesn't work
I changed the code for that and do not appear more guests. What is wrong? |
#4
|
|||
|
|||
I tried it and it works for me. You're looking at the "who's online" page, right? It only increases the count. Like I said above, it will not produce any fake entries in the list.
|
#5
|
|||
|
|||
haha of course i you didn't do wrong...
Sorry mate, i am newbie in vbulletin, could you explain to me what i have to do exactly, i have change the following code in online.php to this parameters... Code:
$numberguests += 50; $totalonline = $numbervisible + $numberguests; |
#6
|
|||
|
|||
That's all you should have to do. When I do that on my test site I go to online.php and I see this:
Attachment 136310 |
#7
|
|||
|
|||
Hmmm can you send to me a copy from your online.php file, or attach here, i think i am doing something wrong in my code so i will see your file and look for your code, or directly i will upload your thank you again
|
#8
|
|||
|
|||
I can't send you the entire file, sorry. But it's not difficult - you already found the line. It starts looking like this:
PHP Code:
and you change it to look like this: PHP Code:
If you've done that and it's not working, there's something else wrong. |
#9
|
|||
|
|||
Ok so exactly as I have set in the online.php file, do not understand why it does not work.
|
#10
|
|||
|
|||
Try inserting something like:
Code:
die("Message in online.php"); and see if any changes are taking effect. If that doesn't cause a blank page with that error message then you are not changing the correct file, or it's being cached or something. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|