4
I've been playing with the suggested solution and because I'm running the new extended profiles modules it admin privlidges for the registered users group opens up too many vulnerabilites. The get an administration menu link in the user menu and suddenly they can be editing profile fields and such.
Anyways, looking at edituser.php in the root of xoops, it seems like I should be able to make a code change in this area:
if ($op == 'editprofile') {
include_once XOOPS_ROOT_PATH.'/header.php';
include_once XOOPS_ROOT_PATH.'/include/comment_constants.php';
echo '<a href="userinfo.php?uid='.$xoopsUser->getVar('uid').'">'. _US_PROFILE .'</a> <span style="font-weight:bold;">»»</span> '. _US_EDITPROFILE .'<br /><br />';
$form = new XoopsThemeForm(_US_EDITPROFILE, 'userinfo', 'edituser.php', 'post', true);
$uname_label = new XoopsFormLabel(_US_NICKNAME, $xoopsUser->getVar('uname'));
$form->addElement($uname_label);
$name_text = new XoopsFormText(_US_REALNAME, 'name', 30, 60, $xoopsUser->getVar('name', 'E'));
$form->addElement($name_text);
$email_tray = new XoopsFormElementTray(_US_EMAIL, '<br />');
if ($xoopsConfigUser['allow_chgmail'] == 1) {
$email_text = new XoopsFormText('', 'email', 30, 60, $xoopsUser->getVar('email'));
} else {
$email_text = new XoopsFormLabel('', $xoopsUser->getVar('email'));
}
$email_tray->addElement($email_text);
$email_cbox_value = $xoopsUser->user_viewemail() ? 1 : 0;
Isn't there a way I can put the uname on that form in such a way it's an editable field instead of just a label?
Anyone have any suggestions?
Terrion
Purchase, renew, or transfer your domain name to
Ultranet Domains and get a FREE 10GB hosting account. Virtual Dedicated Servers around $35/monthly, no contract. FREE 24/7 telephone ...