Description

This event trigger when validation of registration on user custom profile information.

@since 1.6

Params

  • profile post data - array, consist of form post data

e.g.

{code}Array
(
[field2] => Male
[field3] => Array
(
[0] => 11
[1] => 2
[2] => 1979
)
[field4] => Nothing special
[field6] =>
[field7] =>
[field8] => 123, JLN 88
[field9] => Kepong
[field10] => KL
[field11] => Malaysia
[field14] => FTMS
[field15] => 1999
[submit] => Register
[task] => registerUpdateProfile
[authenticate] => 1
[authkey] => 9986fd99143c768e2683f6854aec44b8
){/code}

Return

  • error message - array, consist of error messages

Examples

e.g.

{code}function onRegisterProfileValidate($post) 
{
$err = array();
 
if(empty($post['authkey']))
{
$err[] = JText::_('Session Expired.');
}
 
.
.
.
 
return $err;
}{/code}

Description

This event trigger when validation of registration on user basic information such as user name and email.

@since 1.6

Params

  • user post data - array, consist of form post data

e.g.

{code}Array
(
    [jsname] => Alen
    [jsusername] => alen
    [usernamepass] => alen
    [jsemail] => alen@hotmail.com
    [emailpass] => alen@hotmail.com
    [jspassword] => password
    [jspassword2] => password
    [tnc] => Y
    [submit] => Next
    [task] => register_save
    [id] => 0
    [gid] => 0
    [authenticate] => 1
    [authkey] => 4857d92e85efe6e31ed3ea374a15f683
){/code}

Return

  • error message - array, consist of error messages

Examples

e.g.

{code}function onRegisterValidate($post) 
{
    $err    = array();
 
    if(empty($post['jsname']))
    {
        $err[] = JText::_('CC IMPROPER USERNAME');
    }
 
    .
    .
    . 
 
    return $err;
}{/code}

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW