Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Topic started by: chadness on January 04, 2005, 04:53:07 PM

Title: hide email at registration
Post by: chadness on January 04, 2005, 04:53:07 PM
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.
Title: Re: hide email at registration
Post by: Orstio on January 04, 2005, 06:39:20 PM
'hideEmail' => 1,
Title: Re: hide email at registration
Post by: chadness on January 05, 2005, 09:53:53 AM
Thank you!  I knew it had to be something easy :)