PDA

View Full Version : disappearing variables!


robflack
04-23-2003, 08:52 PM
i was using variables to call the following
No of Unread PMs
$newpm[messages]

and
$timenow

Local Time

----

i was using these variables in $welcomemessage and they appeared and worked fine..
now, i'm using them in a custom template i made - and they done appear at all

Any Ideas --

Great Thanks!!

filburt1
04-23-2003, 09:04 PM
Not all variables are available in all scopes.

robflack
04-23-2003, 09:06 PM
any ideas on how to fix it?

filburt1
04-23-2003, 09:08 PM
If the custom template is eval'ed after the variables are defined and in the same scope (vB uses the global scope for pretty much anything, for better or for worse), then it'll work.