The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello,
can someone tell me how i can set a profilefield of a user within my PHP Code? At the moment I am using this code: PHP Code:
Quote:
PHP Code:
Quote:
|
|
#2
|
|||
|
|||
|
<a href="http://members.vbulletin.com/api/vBulletin/vB_DataManager_User.html#set_userfields" target="_blank">http://members.vbulletin.com/api/vBu...set_userfields</a>
|
|
#3
|
|||
|
|||
|
Quote:
Code:
$fields = array('field5' => $vbulletin->GPC['username'],
'field6' => $vbulletin->GPC['password']);
$userdata->set_userfields($fields);
You don't need to set the validfields. |
|
#4
|
|||
|
|||
|
Thank you, works as expected.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|