PDA

View Full Version : Email var


Kirk Y
07-09-2006, 06:25 PM
What's the var to get a user's email? I remember it used to be $bbuserinfo[email], but that's not working for me.

Guest190829
07-09-2006, 06:56 PM
$vbulletin->userinfo['email']

Kirk Y
07-09-2006, 08:16 PM
Strange. That's not working either.

I get Array['email'].

Guest190829
07-09-2006, 10:29 PM
If you are using this in templates try this:


{$vbulletin->userinfo['email']}

Kirk Y
07-09-2006, 10:44 PM
Still nothing, I'm not even getting the Array['email'] now.

Guest190829
07-09-2006, 10:50 PM
Where are you putting this?

sabret00the
07-09-2006, 11:48 PM
if it's php use " . $vbulletin->userinfo['email'] . " if it's a template, use $bbuserinfo['email'] if that doesn't work in templates use {$bbuserinfo['email']}

Kirk Y
07-10-2006, 12:32 AM
I'm trying to use it in a template. Neither of those worked Sabre, I had to strip the apostrophes out too, template was giving me that conditional error stuff.

Guest190829
07-10-2006, 12:40 AM
I'm trying to use it in a template. Neither of those worked Sabre, I had to strip the apostrophes out too, template was giving me that conditional error stuff.

Yes, what template? A default vBulletin template?

Kirk Y
07-10-2006, 12:44 AM
No a custom template. But I've tried everything that's been posted here to try on the forumhome template too, just to make sure it wasn't something with my template. They've yielded the same results.

Guest190829
07-10-2006, 12:53 AM
Are you sure you are using the correct style and everything?


{$vbulletin->userinfo['email']}


and


$bbuserinfo[email]


Should all work.

Kirk Y
07-10-2006, 12:56 AM
Yep, I'm positive I'm doing everything right. I'm at a loss too. If you'd like to try it yourself, you can use my admin account on my test board.

Guest190829
07-10-2006, 12:57 AM
Yes, that's very odd. You can PM me with the details if you want. I've just tested both versions on my dev board and they work.

Kirk Y
07-10-2006, 01:02 AM
Well what the heck... okay, I'll give you a PM.

Edit: Wow, I feel like such an idiot now Danny. Ha ha! For anyone else that may be having a similar problem, it might be helpful to add an email address to your account! :p