Hi Guys,
Thanks guys for the two hacks above. For those of you who jump to the end of the thread for the answer I've reposted a summary of hacks below as a thank you (with a little bit of clarification):
First Hack from Malenex to make it possible to not require a unique email address when registering in Joomla 1.5 repeated below:
File to edit is: "libraries/joomla/database/table/user.php"
At line 174:
Code: Select all
// 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: Select all
/*if ((trim($this->email) == "") || ! JMailHelper::isEmailAddress($this->email) ) {
* $this->setError( JText::_( 'WARNREG_MAIL' ) );
* return false;
*}
*/
Both these hacks are simply commenting out an existing section of code in the user.php file that does the verification checks.
ISSUE:
Now what I'm about to check is the impact on the password recovery functionality which is why this optoin isn't allowed in the default install
i.e. if two users have the same email which one will the password recovery token go to? (if it goes at all)
WHY NEEDED:
It's pretty obvious guys that this feature is required (there are a bunch of posts out there about it). It's been on the forums since the first release of 1.5 - so not sure why it hasn't been sorted out. There are heaps of instances where users don't have unique email addresses but are different users (for testing, for Not for profits, for schools and tafes etc).
In my instance I need the facility so that I can simplify the Virtuemart shopping process so that users can skip the email step (use phone contact instead or when entering in a phone order on behalf of a user who doesn't own a computer at all but you want the order in the same system as everything else)..
Thanks to the guys with the contributions above - hopefully they'll solve the problem (will post if they don't)
regards,
HL