The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
test for string user email
$emailaddy=$vbulletin->userinfo['email'];
if(stripos($emailaddy,'ltd',0)!==false) { $userdata->set('usergroupid',4); } Any idea why this does nothing? It's hooked on register_addmember_process. I know the hook is correct because I've successfully tested other registrant info on that hook. PHP isn't one of my languages, so I'm doing the best I can. Any clues appreciated, thanks - JP --------------- Added [DATE]1210363768[/DATE] at [TIME]1210363768[/TIME] --------------- Nevermind, I found the answer. Needs to be this: $emailaddy=$vbulletin->GPC['email']; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|