CB Registration - Require Unique Email

Need help with the Administration of your Joomla! 1.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
EMBAwebmaster
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Feb 16, 2011 5:08 am

CB Registration - Require Unique Email

Post by EMBAwebmaster » Fri Feb 25, 2011 4:55 am

In the CB Configuration Manager there is a field

Require Unique E-mail Yes

If "yes", users cannot share the same email address. This is a CMS global setting for the site, or a CMS feature. CB adapts automatically to this setting/feature.

Is there somplace that i can change this setting to "NO" ?

--Thanks!

User avatar
dylanjh
Joomla! Ace
Joomla! Ace
Posts: 1823
Joined: Fri Sep 22, 2006 6:22 pm
Location: UK
Contact:

Re: CB Registration - Require Unique Email

Post by dylanjh » Fri Feb 25, 2011 6:30 pm

My understanding was that Joomla will not allow the same email address to be registered twice. I suspect that CB includes that option, just because its seen as a text field (e.g. it could potentially store some other value that could repeat) Hence, I imagine, why you are not able to switch it to "no"
EmailAsUsername - Remove Usernames Joomla! Virtuemart And JomSocial registration http://www.lunarhotel.co.uk Many other extensions supported.

EMBAwebmaster
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Feb 16, 2011 5:08 am

Re: CB Registration - Require Unique Email

Post by EMBAwebmaster » Sat Feb 26, 2011 5:28 am

it looks to me like Community Builder defaults to whatever the CMS global setting is. I was hoping i could change that from Yes to No within the Joomla! global settings but it sounds like that may not be an option.

amaduddinraja
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Aug 14, 2011 8:19 am

Re: CB Registration - Require Unique Email

Post by amaduddinraja » Sun Aug 14, 2011 8:35 am

i got the solution and it worked for me.

find the following code in the file

"\libraries\joomla\database\table\user.php"

and change word 'false' into 'true'. then u can make as many accounts as u want even with the same email.

Before:
-------------------------------------------------------
// check for existing email
$query = 'SELECT id'
. ' FROM #__users '
. ' WHERE email = '. $this->_db->Quote($this->email)
. ' AND id != '. (int) $this->id
;
$this->_db->setQuery( $query );
$xid = intval( $this->_db->loadResult() );
if ($xid && $xid != intval( $this->id )) {
$this->setError( JText::_( 'WARNREG_EMAIL_INUSE' ) );
return false;
------------------------------------------------------

After:
--------------------------------------------------------------
// check for existing email
$query = 'SELECT id'
. ' FROM #__users '
. ' WHERE email = '. $this->_db->Quote($this->email)
. ' AND id != '. (int) $this->id
;
$this->_db->setQuery( $query );
$xid = intval( $this->_db->loadResult() );
if ($xid && $xid != intval( $this->id )) {
$this->setError( JText::_( 'WARNREG_EMAIL_INUSE' ) );
return true;
--------------------------------------------------------------------

cliffvt
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun May 16, 2010 8:13 pm

Re: CB Registration - Require Unique Email

Post by cliffvt » Thu Apr 02, 2015 9:15 pm

Hi, does anyone know how this can be achieved in Joomla 3.4? I cannot find a \libraries\joomla\database\table\user.php in my Joomla 3.4 installation...

Theonly one I could find was \libraries\joomla\table\user.php and changed it there but the error still ocurs on registration...

The extensions out there, even though installed, will not stop the duplicate email check on registration...

Cheers

Cliff

paul_mcdonald
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Sat Dec 17, 2011 8:08 pm

Re: CB Registration - Require Unique Email

Post by paul_mcdonald » Mon Jun 08, 2015 2:33 pm

Has anyone found a way to do this with joomla 3.4???

cliffvt
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun May 16, 2010 8:13 pm

Re: CB Registration - Require Unique Email

Post by cliffvt » Mon Jun 08, 2015 4:57 pm

I use a plug in which is available in the extensions store which works fantastically called "users_same_email"

You can get it here: http://extensions.joomla.org/profile/ex ... same-email

Works like a dream.

Cliff

User avatar
dhuelsmann
Joomla! Master
Joomla! Master
Posts: 19658
Joined: Sun Oct 02, 2005 12:50 am
Location: Omaha, NE
Contact:

Re: CB Registration - Require Unique Email

Post by dhuelsmann » Mon Jun 08, 2015 6:26 pm

Or try email sub-addressing using +tag qualifier
https://www.joomlapolis.com/news/18328- ... a-accounts
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org


Locked

Return to “Administration 1.5”