![]() |
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. |
The example showed using a =& datamanager_init , not just a plain =
|
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 :) |
merk, instead of if(set..) save(), try if (!$userdata->errors) save else print_r errors
(shorthand, but you get the idea) |
All times are GMT. The time now is 08:39 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:
|