3
Hi!
Thanks it worked!
Now I can log in both with the username and the e-mail.
I still have some issues with the initial registration step though.
FIRST ISSUE
I am receiving the following error message:
"Could not register new user.
uname must be shorter than 25 characters."
I have already done the following:
1) Increased value in database table
2) Increased value in input user form
3) Increased value in User info settings in ADMIN
4) Increased the value in include/registerform.php:
$reg_form->addElement(new XoopsFormText(_US_NICKNAME, 'uname', 100, 99, $myts->htmlSpecialChars($uname)), true);
What am I missing?!
I read another post where someone (DAVE L) wrote that:
"There may be other problems, though. I tried increasing that value, and I still couldn't register a user with a long name. One of these checks in register.php is failing:
if (!$member_handler->insertUser($newuser)) {
echo _US_REGISTERNG;
include 'footer.php';
exit();
}
$newid = $newuser->getVar('uid');
if (!$member_handler->addUserToGroup(XOOPS_GROUP_USERS, $newid)) {
echo _US_REGISTERNG;
include 'footer.php';
exit();
}
I glanced at those functions, and didn't see anything obvious, so more debugging is needed."
SECOND ISSUE
In my registration I want a new user to write his/her username (has to be e-mail), then write the e-mail a second time for comparison adn validation. I need to make sure that the user name will match the email value.
Any tips how to tackle these to issues??
br
Susanna