JPnyc
05-09-2008, 05:56 PM
$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 1210363768 at 1210363768 ---------------
Nevermind, I found the answer. Needs to be this: $emailaddy=$vbulletin->GPC['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 1210363768 at 1210363768 ---------------
Nevermind, I found the answer. Needs to be this: $emailaddy=$vbulletin->GPC['email'];