The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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!
|
![]() |
|
|