The Arcive of vBulletin Modifications Site. |
|
Help with $ Details »»
|
|||||||||||||||||||||||||
Im trying to add Current Users Online to an Info box at the top of my forumhome. I've got everything set up, but for some reason, I can't get 2 of the variables to work.
What I want- Users Currently Online: <b>$totalonline</b> What I get- Users Currently Online: What I want- Most ever online: <b>$recordusers</b> What I get- Most ever online: Everything else works- $bbuserinfo[posts] $timenow etc. Help me please! Thanks, /DJ Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
I have had this problem MANY times in different spots. Although i am not 100% sure why. I think that vbulletin WONT LET you put certain stings in different places. You are doing everything right. It just WONT work
|
|
#3
|
||||
|
||||
|
well it always depends where you define the vars and where you need them....
if you call them in a template which is called within a function you have to globalize them first, if you call em in header/footer they must be defined in global.php or phpinclude-template |
|
#4
|
||||
|
||||
|
Also you need to make sure the variables are assigned the data before the template is evalualted.
|
![]() |
|
|