CB Registration - Require Unique Email
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.
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.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Wed Feb 16, 2011 5:08 am
CB Registration - Require Unique Email
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!
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!
- dylanjh
- Joomla! Ace
- Posts: 1823
- Joined: Fri Sep 22, 2006 6:22 pm
- Location: UK
- Contact:
Re: CB Registration - Require Unique Email
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.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Wed Feb 16, 2011 5:08 am
Re: CB Registration - Require Unique Email
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.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sun Aug 14, 2011 8:19 am
Re: CB Registration - Require Unique Email
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;
--------------------------------------------------------------------
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;
--------------------------------------------------------------------
-
- Joomla! Fledgling
- Posts: 3
- Joined: Sun May 16, 2010 8:13 pm
Re: CB Registration - Require Unique Email
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
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
-
- Joomla! Apprentice
- Posts: 34
- Joined: Sat Dec 17, 2011 8:08 pm
Re: CB Registration - Require Unique Email
Has anyone found a way to do this with joomla 3.4???
-
- Joomla! Fledgling
- Posts: 3
- Joined: Sun May 16, 2010 8:13 pm
Re: CB Registration - Require Unique Email
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
You can get it here: http://extensions.joomla.org/profile/ex ... same-email
Works like a dream.
Cliff
- dhuelsmann
- Joomla! Master
- Posts: 19658
- Joined: Sun Oct 02, 2005 12:50 am
- Location: Omaha, NE
- Contact:
Re: CB Registration - Require Unique Email
Or try email sub-addressing using +tag qualifier
https://www.joomlapolis.com/news/18328- ... a-accounts
https://www.joomlapolis.com/news/18328- ... a-accounts
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org