Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 07:06:08 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155479 Posts in 21708 Topics by 7734 Members
Latest Member: rofroodoOvego
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: User emails  (Read 454 times)
red6321

Offline Offline

Posts: 4


« on: February 19, 2009, 07:29:14 PM »

I am entering a long list of users for a website. Occasionally, the system will not accept (invalid email message) a correctly entered email. Specifically, hotmail or educational emails. Is there a way to allow acceptance or to just enter the user without an email ?? Thanks
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2856



WWW
« Reply #1 on: February 19, 2009, 08:16:19 PM »

Oly thing I can think of is use a bogus email adres
like:
username@wb.com
or something simular


Have fun,
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
Mux
Guest
« Reply #2 on: February 19, 2009, 09:15:34 PM »

Because I didn't need to have the user's email-adresses I just commented out the whole part of the verification of valid email adress in wb/admin/users/add.php, line 81, all the lines which you can see here:
Code:
// Check if the email already exists
$results = $database->query("SELECT user_id FROM ".TABLE_PREFIX."users WHERE email = '".$admin->add_slashes($_POST['email'])."'");
if($results->numRows() > 0) {
    if(isset($MESSAGE['USERS']['EMAIL_TAKEN'])) {
        $admin->print_error($MESSAGE['USERS']['EMAIL_TAKEN'], $js_back);
    } else {
        $admin->print_error($MESSAGE['USERS']['INVALID_EMAIL'], $js_back);
    }
}

cheers,
Mux
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2856



WWW
« Reply #3 on: February 19, 2009, 10:13:52 PM »

And that is another way to do it Wink

John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
red6321

Offline Offline

Posts: 4


« Reply #4 on: February 20, 2009, 12:27:48 AM »

Thanks guys !!!
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!