PDA

View Full Version : Evaluate variables in custom template


patvdv
05-07-2002, 08:43 AM
Hi,

I am wondering how I would get a custom template to pick up vbulletin variables that are used elsewhere. E.g. if I wanted to create a custom template showing the avatar of a certain user what would I have to do to get the info from $userinfo[avatarurl] to work in my template?

Admin
05-07-2002, 12:16 PM
$userinfo['avatarurl'] = getavatarurl($userinfo['userid']);

patvdv
05-07-2002, 01:29 PM
I put above PHP code in my script just before the eval of the template and $userinfo[avaturl] in my template but nothing is showing up :(