Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 15 Jun 2012, 19:36
basketmen's Avatar
basketmen basketmen is offline
 
Join Date: Nov 2006
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

if (!$userinfo['coppauser'])
but its not working, maybe because the user is still registered as a user yet

and this

if ($userdata->set('coppauser', 0))
but got this error message :
Fatal error: Field coppauser is not defined in $validfields in class vB_DataManager_User in /includes/class_dm.php on line 485
__________________
I am SEO specialist and forum coordinator
Reply With Quote
  #2  
Old 15 Jun 2012, 21:26
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Try:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 02:22.

Layout Options | Width: Wide Color: