Bitrix Site Manager


 array arFields [,
 string strUploadDir ]

The method Add creates a new profile with parameters specified in the array arFields. Returns the ID of the created profile.

Before a profile is created, you should check whether it can be added using CForumUser::CanUserAddUse.


arFields An array of the format Array(field1=>value1[, field2=>value2 [, ..]]), where

field - field name;
value - field value.

The fields are listed in the List of fields of user profile. The required fields must be filled.
strUploadDir Directory in which files are to be uploaded. Must be specified relative to the main upload directory.
Optional. The default value is "forum".

Return Values

Returns the ID of the created profile on success, or false otherwise.

See Also

Profile fields