8
Ok, I found something that seems to work. In profiles/register.php found this lines:
le="color: #000000"><?php if ($op != "register") { $newuser->setVar('uname', isset($_POST['uname']) ? trim($_POST['uname']) : ''); $newuser->setVar('loginname', isset($_POST['loginname']) ? trim($_POST['loginname']) : ''); $newuser->setVar('email', isset($_POST['email']) ? trim($_POST['email']) : '');
and modify this way:
le="color: #000000"><?php if ($op != "register") { $newuser->setVar('uname', isset($_POST['loginname']) ? trim($_POST['loginname']) : ''); $newuser->setVar('loginname', isset($_POST['loginname']) ? trim($_POST['loginname']) : ''); $newuser->setVar('email', isset($_POST['email']) ? trim($_POST['email']) : '');
Then open profiles/include/forms.php and comment the following lines:
le="color: #000000"><?php $elements[0][] = array('element' => new XoopsFormText(_PROFILE_MA_DISPLAYNAME, "uname", $uname_size, 75, $user->getVar('uname', 'e')), 'required' => true); $weights[0][] = 0;
and
le="color: #000000"><?php $elements[0][] = array('element' => new XoopsFormText(_PROFILE_MA_DISPLAYNAME, 'uname', 25, 75, $user->getVar('uname', 'e')), 'required' => 0); $weights[0][] = 0;
Hope this help!