Welcome, Guest. Please Login or Register.
April 20, 2025, 05:57:09 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  2 users, same email « previous next »
Pages: [1] Reply Ignore Print
Author Topic: 2 users, same email  (Read 446 times)
gregw
Noobie
*
Posts: 8


WWW
2 users, same email
« on: August 08, 2002, 09:24:53 PM »
Reply with quote

Many of my users are husband/wives and need two accounts, but they share an email address.  YabbSE won't let you register with the same email. It would be nice to be able to allow this as an admin function.

Greg
Logged
Michele
Beta Tester
YaBB God
*****
Posts: 584


I can't wait for YaBB SE 2!

Mad+Moya WWW
Re:2 users, same email
« Reply #1 on: August 12, 2002, 05:02:32 AM »
Reply with quote

Eek! I would never share my email address with my husband! LOL, I have 5 of my own as it is (6 if you count "webmaster@"). :)

Seriously, don't most IPs allow you more than one email address nowadays? We've got 5 from my ISP and unlimited ones from my web site host...

However, you can tell one of them to just get a hotmail or yahoo address and use that to register.

Have fun, MM
Logged

formerly Mad Moya
PfaBB - http://pfabb.lunabyte.com
gregw
Noobie
*
Posts: 8


WWW
Re:2 users, same email
« Reply #2 on: August 12, 2002, 05:47:12 AM »
Reply with quote

I know that, and you know that...but I've had to practically beg my users to come to the site.  Most of them aren't "experienced" computer users, and ask them to create another email account would be just another reason for them not to join.

Just one little checkbox, that's all I'm asking under the preferences:

[ ] Allow duplicate emails for users
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:2 users, same email
« Reply #3 on: August 12, 2002, 06:19:08 AM »
Reply with quote

Ok here is a quick way to do it:

Remove from Register.php

       $request = mysql_query("SELECT realName FROM {$db_prefix}members WHERE emailAddress='$member[email]'");
        if (mysql_num_rows($request) > 0)
                fatal_error("$txt[730] ($member[email]) $txt[731]");

and remove from Profile.php

               $request = mysql_query("SELECT ID_MEMBER FROM {$db_prefix}members WHERE (memberName!='$member[user]' &&  emailAddress='$member[email]')");
                if (mysql_num_rows($request) > 0)
                        fatal_error("$txt[730] ($member[email]) $txt[731]");

That should work... but I haven't tested it as I don't want this on my boards. :)
Logged
gregw
Noobie
*
Posts: 8


WWW
Re:2 users, same email
« Reply #4 on: August 13, 2002, 05:53:28 AM »
Reply with quote

so far it seems to work.  Thanks!
Greg
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  2 users, same email « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.044 seconds with 16 queries.