![]() |
Help with $
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 |
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 :(
|
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 |
Also you need to make sure the variables are assigned the data before the template is evalualted.
|
All times are GMT. The time now is 12:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|