PDA

View Full Version : Help with $


digitalJE5U5
10-12-2002, 09:16 AM
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

ZiRu$
10-17-2002, 04:55 PM
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 :(

Xenon
10-17-2002, 07:28 PM
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

NTLDR
10-17-2002, 07:35 PM
Also you need to make sure the variables are assigned the data before the template is evalualted.