The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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'); |
#2
|
|||
|
|||
Ive yet to find a working solution of this can anyone provide any information?
|
#3
|
|||
|
|||
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'); |
#4
|
|||
|
|||
Thanks!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|