Page 1 of 1

CB Registration - Require Unique Email

Posted: Fri Feb 25, 2011 4:55 am
by EMBAwebmaster
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!

Re: CB Registration - Require Unique Email

Posted: Fri Feb 25, 2011 6:30 pm
by dylanjh
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"

Re: CB Registration - Require Unique Email

Posted: Sat Feb 26, 2011 5:28 am
by EMBAwebmaster
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.

Re: CB Registration - Require Unique Email

Posted: Sun Aug 14, 2011 8:35 am
by amaduddinraja
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;
--------------------------------------------------------------------

Re: CB Registration - Require Unique Email

Posted: Thu Apr 02, 2015 9:15 pm
by cliffvt
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

Re: CB Registration - Require Unique Email

Posted: Mon Jun 08, 2015 2:33 pm
by paul_mcdonald
Has anyone found a way to do this with joomla 3.4???

Re: CB Registration - Require Unique Email

Posted: Mon Jun 08, 2015 4:57 pm
by cliffvt
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

Re: CB Registration - Require Unique Email

Posted: Mon Jun 08, 2015 6:26 pm
by dhuelsmann
Or try email sub-addressing using +tag qualifier
https://www.joomlapolis.com/news/18328- ... a-accounts