vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Email var (https://vborg.vbsupport.ru/showthread.php?t=120762)

Kirk Y 07-09-2006 06:25 PM

Email var
 
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

PHP Code:

$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:

HTML Code:

{$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
PHP Code:

" . $vbulletin->userinfo['email'] . " 

if it's a template, use
HTML Code:

$bbuserinfo['email']
if that doesn't work in templates use
HTML Code:

{$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

Quote:

Originally Posted by acidburn0520
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?

PHP Code:

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

and

PHP Code:

$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


All times are GMT. The time now is 03:45 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
  • Page Generation 0.01127 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html_printable
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete