View Full Version : vb variable for user's email address?
58sniper
09-21-2004, 10:09 PM
Is there a variable in vb that holds the users email address when viewing the site? I'm working on an "Add To My Yahoo" option, but want to do a conditional to only show it if the user has a @yahoo. in their email address.
Thanks!
58sniper
09-23-2004, 05:23 PM
Anyone?
TylerL
09-25-2004, 10:18 PM
You'd have to find a way to parse the e-mail address, between the TLD and the @ symbol, but I only know how to parse strings in VBScript and Visual Basic 6 so sorry :(
Jolten
09-25-2004, 11:47 PM
try $userinfo[email] or $bbuserinfo[email]
58sniper
09-26-2004, 12:59 AM
$bbuserinfo['email'] is what worked for me. But in order to check if it contained @yahoo, I needed to add strpos() to the list of safe functions in vB.
See the full hack @ http://www.vbadvanced.com/forum/showthread.php?t=2721
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.