The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi all,
I am working on an API to allow an external site to create and update accounts in vB4. All is working fine when creating and updating accounts with default fields like username/password/email. However, we have some custom fields defined in the 'User Profile Field Manager'; they are named field1/field2.../field5 etc. This is part of the code that falls over when attempting to create an account including a custom field: PHP Code:
Could anyone please advise. Kind regards, Kris... |
#2
|
||||
|
||||
![]()
If you want the datamanager to update a field, you need to first make sure it is in the datamanager array - in this case the one for the User datamanager (in class_dm_user.php). You'll have to add it to that array $validfields there. You'll want to read the code for the fields that go into the usertextfield table since they go into a separate table and are treated specially and you will have to do the same with your field5 (it goes into the userfield table).
|
#3
|
|||
|
|||
![]()
Thanks Lynne for the pointer; I think I've done it correctly as it is working. ;o)
Cheers, Kharmer... |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|