![]() |
Inserting Custom Profile Field value during Registration
Hello, can anyone please help me on my problem.
During registration, I assign members to a random secondary usergroup. I achieved it doing this code: PHP Code:
will this work? PHP Code:
can anyone help me? UPDATE: I believe I have it. Can someone pleaes tell me if its right. $userfields = array('field12' => "$membergroupidsrandom"); $userdata->set_userfields($userfields, true, 'admin'); |
Ive yet to find a working solution of this can anyone provide any information?
|
I have it, here it is:
change ## to the number of the custom field, and fieldvalue to the value you want $fieldvariable = array('field##' => "fieldvalue"); $userdata->set_userfields($fieldvariable, true, 'admin'); |
Quote:
|
All times are GMT. The time now is 08:04 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|