Customizing SMF > SMF Coding Discussion
Registering an account from outside of SMF
emanuele:
--- Quote from: Luis- on May 10, 2012, 12:10:13 PM ---I can't get it to work what so ever, here's my current code;
--- Code: --- $regOptions = array(
'interface' => 'guest',
'username' => $name,
'email' => null,
'password' => sha1(strtolower($name) . $pass),
'password_check' => sha1(strtolower($name) . $pass),
'check_reserved_name' => true,
'check_password_strength' => true,
'check_email_ban' => true,
'send_welcome_email' => false,
'require' => 'nothing',
'extra_register_vars' => array(),
'theme_vars' => array(),
);
registerMember($regOptions, true);
--- End code ---
Can you seen anything wrong with it?
--- End quote ---
Yes: email is null.
It must be a "valid" email (i.e. something that resembles an email).
Luis-:
I changed that after, to see if it made a difference but it didn't. It still wont work.
emanuele:
And what error do you get?
Luis-:
There are no errors in my error log.
emanuele:
Do you put something in $user_info['is_guest']?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version