I follow the tutorial here But i can't make it work.
Don't have any error or something.
Down i paste the modified codeThe api seems work because the partCode:if ( $user->store() ) { if ( ( $user->confirmed == 0 ) && ( $confirmation != 0 ) ) { $user->_setActivationCode(); if ( ! $user->store() ) { return false; } } $_PLUGINS->trigger( 'onAfterUserRegistration', array( &$user, &$user, true ) ); return true; } else{ echo $user->getError(); }works returning the user status. The constant that cause problem is "JLIB_DATABASE_ERROR_PLEASE_ENTER_YOUR_NAME"Code:$_CB_database->setQuery( "SELECT username FROM #__users WHERE username = '$checkusername'"); $usern = $_CB_database->loadResult(); if ($usern) { return "El usuario ya está dado de alta." ; }
What are wrong or how can i test and make it work. Thanks
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.