News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

hide email at registration

Started by chadness, January 04, 2005, 04:53:07 PM

Previous topic - Next topic

chadness

I would like emails to be hidden right away, without someone having to go in to their profile and set this explicitly.  Alternately, having it as an option like the normal SMF registration would also work.  Has anyone done anything like this yet?  Or, can anyone point me in the right direction to do this?  I would suspect I could add soemthing to $register_vars = array(
'memberName' => "'$username'",
'emailAddress' => "'$email'",
'passwd' => '\'' . md5_hmac($pwd, strtolower($username)) . '\'',
'posts' => 0,
'dateRegistered' => time(),
'memberIP' => "'$user_info[ip]'",
'is_activated' => empty($modSettings['registration_method']) || (!isset($_POST['emailActivate']) && $user_info['is_admin']) ? 1 : 0,
'validation_code' => !empty($modSettings['registration_method']) && $modSettings['registration_method'] == 1 ? "'$pwd'" : "''",
'realName' => "'$username'",
'personalText' => '\'' . addslashes($modSettings['default_personalText']) . '\'',
'im_email_notify' => 1,
'ID_THEME' => 0,
'ID_POST_GROUP' => 4,
);

but I don't know exactly what.

Orstio


chadness

Thank you!  I knew it had to be something easy :)

Advertisement: