برای اینکه در جوملا بتوانید کاربران با ایمیل های یکسان داشته باشید دستورالعمل زیر را دنبال نمایید:
File to edit is: "libraries/joomla/database/table/user.php"
At line 174:
Code:
// 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;
*}
*/
Thanks then to welldressedmatt for the work around to allow blank email which is as follows:
Same file: "libraries/joomla/database/table/user.php"
at line: 157
Code:
/*if ((trim($this->email) == "") || ! JMailHelper::isEmailAddress($this->email) ) {
* $this->setError( JText::_( 'WARNREG_MAIL' ) );
* return false;
*}
*/
* $this->setError( JText::_( 'WARNREG_MAIL' ) );
* return false;
*}
*/