The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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! |
|
#2
|
||||
|
||||
|
It's in the $bbuserinfo array for sure, probably $bbuserinfo[email]
|
|
#3
|
||||
|
||||
|
Moved to General vBulletin Questions - please read the forum descriptions more closely in future
You can only get the email of a user if they are registered. If so use:HTML Code:
<if condition="strpos($bbuserinfo['email'], '@yahoo') AND $bbuserinfo['userid'] > 0"></if>
|
|
#4
|
|||
|
|||
|
Quote:
Quote:
But your method makes me wonder if Code:
<if condition="strpos($bbuserinfo['email'], '@yahoo')"></if> Thanks for the info! |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|