Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 04 Feb 2012, 09:29
Aitorcillo Aitorcillo is offline
 
Join Date: Jun 2011
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
Reply With Quote
  #2  
Old 04 Feb 2012, 10:14
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
It looks like $totalonline is only used to handle the paging controls. You could do something like:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


which seems to work but you will get paging controls as if there were 50 guests.
Reply With Quote
  #3  
Old 04 Feb 2012, 11:26
Aitorcillo Aitorcillo is offline
 
Join Date: Jun 2011
Hello thank you kh99 but it doesn't work

I changed the code for that and do not appear more guests.

What is wrong?
Reply With Quote
  #4  
Old 04 Feb 2012, 12:13
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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.
Reply With Quote
  #5  
Old 04 Feb 2012, 12:23
Aitorcillo Aitorcillo is offline
 
Join Date: Jun 2011
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...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But i don't see any change, what i next step thank you
Reply With Quote
  #6  
Old 04 Feb 2012, 12:38
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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:

WOL.JPG
Reply With Quote
  #7  
Old 04 Feb 2012, 12:44
Aitorcillo Aitorcillo is offline
 
Join Date: Jun 2011
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
Reply With Quote
  #8  
Old 04 Feb 2012, 12:51
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
I can't send you the entire file, sorry. But it's not difficult - you already found the line. It starts looking like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


and you change it to look like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


If you've done that and it's not working, there's something else wrong.
Reply With Quote
  #9  
Old 04 Feb 2012, 13:46
Aitorcillo Aitorcillo is offline
 
Join Date: Jun 2011
Ok so exactly as I have set in the online.php file, do not understand why it does not work.
Reply With Quote
  #10  
Old 04 Feb 2012, 13:48
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Try inserting something like:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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.
Reply With Quote
  #11  
Old 04 Feb 2012, 14:51
Aitorcillo Aitorcillo is offline
 
Join Date: Jun 2011
okai it's works fine but I would like it to work in front of the forum and not when you click on the file online.php

Maybe i have to add that code to another file, you know where is the file to edit?

Thank you
Reply With Quote
  #12  
Old 04 Feb 2012, 14:54
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Did you not want to try this mod: http://www.vbulletin.org/forum/showthread.php?t=252753

I posted it in the other thread you started asking about this, so I figured it didn't work for you.
Reply With Quote
  #13  
Old 04 Feb 2012, 15:38
Aitorcillo Aitorcillo is offline
 
Join Date: Jun 2011
The mod doesn't work with my vbulletin version :/ but i think i am not asking an imposible no? I though i had just to add a number in the code, the problem is that i don't know where is the file to add that code
Reply With Quote
  #14  
Old 04 Feb 2012, 15:44
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Originally Posted by Aitorcillo View Post
The mod doesn't work with my vbulletin version :/
Oh, right - I see now that people posted at the end of the mod thread.


but i think i am not asking an imposible no? I though i had just to add a number in the code, the problem is that i don't know where is the file to add that code
Look in forumdisplay.php for this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #15  
Old 04 Feb 2012, 16:45
Aitorcillo Aitorcillo is offline
 
Join Date: Jun 2011
Thank you kh99

this is my code


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But it's doesn't work, the code is right but i can't see any change in the botton who's online
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 06:47.

Layout Options | Width: Wide Color: