2007-01-02, 06:26 AM
2007-01-02, 07:56 AM
If you change the registration mode (Admin CP --> Settings --> Profile/Registration Options) to Instant Activation, users can enter in a bogus email address and it won't be checked.
2007-01-02, 07:50 PM
DennisTT Wrote:If you change the registration mode (Admin CP --> Settings --> Profile/Registration Options) to Instant Activation, users can enter in a bogus email address and it won't be checked.
is there any way to allow them to not enter one at all? but make it optional
2007-01-02, 07:58 PM
There is, but I would not recommend it. You may run into problems if MyBB tries to send email to people with no email address.
In inc/datahandlers/user.php, find:
In inc/functions.php, find:
In inc/datahandlers/user.php, find:
// Check if an email address has actually been entered.
if(trim($user['email']) == '')
{
$this->set_error('missing_email');
return false;
}
Replace with: // Check if an email address has actually been entered.
if(trim($user['email']) == '')
{
return true;
}
In inc/functions.php, find:
mail($to, $subject, $message, $headers);
Replace with: if(trim($to) != '')
{
mail($to, $subject, $message, $headers);
}
2007-01-02, 09:37 PM
DennisTT Wrote:There is, but I would not recommend it. You may run into problems if MyBB tries to send email to people with no email address.
In inc/datahandlers/user.php, find:
Replace with:// Check if an email address has actually been entered. if(trim($user['email']) == '') { $this->set_error('missing_email'); return false; }
// Check if an email address has actually been entered. if(trim($user['email']) == '') { return true; }
In inc/functions.php, find:
Replace with:mail($to, $subject, $message, $headers);
if(trim($to) != '') { mail($to, $subject, $message, $headers); }
what sort of problems would you expect?
2007-01-02, 10:26 PM
well the second modification should eliminate any PHP errors that may show up due to this. Your users may be confused if they subscribe to a thread/forum and not get an email, or opt to be notified for PM but they don't get any email.
2007-01-02, 10:50 PM
DennisTT Wrote:There is, but I would not recommend it. You may run into problems if MyBB tries to send email to people with no email address.
In inc/datahandlers/user.php, find:
Replace with:// Check if an email address has actually been entered. if(trim($user['email']) == '') { $this->set_error('missing_email'); return false; }
// Check if an email address has actually been entered. if(trim($user['email']) == '') { return true; }
In inc/functions.php, find:
Replace with:mail($to, $subject, $message, $headers);
if(trim($to) != '') { mail($to, $subject, $message, $headers); }
for the second modification
mail($to, $subject, $message, $headers);
does not seem to exist in functions.php2007-01-02, 10:55 PM
It should be around line 370.
Although, which version of MyBB do you have?
Cheers,
CraKteR.
Although, which version of MyBB do you have?
Cheers,
CraKteR.
2007-01-02, 11:11 PM
CraKteR Wrote:It should be around line 370.
Although, which version of MyBB do you have?
Cheers,
CraKteR.
I have the newest one with this change http://community.mybboard.net/showthread...7#pid95507
2007-01-02, 11:12 PM
Then you should find the mail line.