The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
What is the if conditional code, in plugin for : if coppauser is 0
Hi guys,
i want to make a plugin with hook register_addmember_process or register_addmember_complete i need if conditional code, in plugin for : if coppauser is 0 coppauser is a variable in registration, thats mean the user is not COPPA User i want to set something for non COPPA User using a plugin please help guys, what s the if conditional looks like i already tried this Quote:
and this Quote:
Quote:
|
#2
|
|||
|
|||
Try:
Code:
if (!($userinfo['options'] & $vbulletin->bf_misc_useroptions['coppauser'])) { // user is not a coppa user (hopefully) } Edit: Just decided to look at the code around those hooks that you mentioned, and I'm not sure $userinfo['options'] will be set yet. You may just want to use: Code:
if (!$vbulletin->GPC['coppauser']) { // not coppa user } |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|