registerMember

Description

Registers a member to the forum.

Syntax

int registerMember (array &$regOptions)



Parameter &$regOptions

Expected type: Array
Description: An array of registration options (set by the RegisterMember function). In addition to the standard fields, this can include any profile fields/options (birthdate, msn, etc.). See Register.php for more info.



Return value

Expected type: Integer
Description: The ID of the newly created member


Notes

  • Returns the ID of the newly created member.
  • Allows two types of interfaces: 'guest' and 'admin'. The first includes hammering protection, the latter can perform the registration silently.
  • The strings used in the options array are assumed to be escaped.
  • Preforms various checks
  • Adjusts member statistics.
Advertisement: