The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
User DM
Im trying to modify a couple of userfields using the new user data manager.
code: PHP Code:
The script returns "failed". I have no idea why, and im having a bit of trouble following the class structures this late at night. Any ideas? Getting slightly closer, it appears the array needs to contain fieldx_set and _opt (set being set to 1, opt as far as i know set to 1 if the field is optional?) Still didnt work though. /me keeps looking. |
#2
|
|||
|
|||
The example showed using a =& datamanager_init , not just a plain =
|
#3
|
|||
|
|||
Thanks for picking that up. Changed but $userdata->set_userfields is still returning false.
Its weird :\ Okay, found the problem. It appears that the array stuff earlier was partly to blame, and that non editable userfields are not updated by these functions. Time to go report a bug |
#4
|
|||
|
|||
merk, instead of if(set..) save(), try if (!$userdata->errors) save else print_r errors
(shorthand, but you get the idea) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|