From: <ok...@us...> - 2003-01-07 18:55:35
|
Update of /cvsroot/xoops/xoops2 In directory sc8-pr-cvs1:/tmp/cvs-serv16858 Modified Files: edituser.php Log Message: fix for comments pref selection Index: edituser.php =================================================================== RCS file: /cvsroot/xoops/xoops2/edituser.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** edituser.php 2 Jan 2003 14:56:44 -0000 1.1 --- edituser.php 7 Jan 2003 18:55:24 -0000 1.2 *************** *** 52,55 **** --- 52,56 ---- if ($op == 'editprofile') { include XOOPS_ROOT_PATH.'/header.php'; + include 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'); *************** *** 90,96 **** $sig_tray->addElement($sig_cbox); $umode_select = new XoopsFormSelect(_US_CDISPLAYMODE, 'umode', $xoopsUser->getVar('umode')); ! $umode_select->addOptionArray(array('0'=>_NOCOMMENTS, 'flat'=>_FLAT, 'thread'=>_THREADED)); $uorder_select = new XoopsFormSelect(_US_CSORTORDER, 'uorder', $xoopsUser->getVar('uorder')); ! $uorder_select->addOptionArray(array('0'=>_OLDESTFIRST, '1'=>_NEWESTFIRST)); $bio_tarea = new XoopsFormTextArea(_US_EXTRAINFO, 'bio', $xoopsUser->getVar('bio', 'E')); $cookie_radio_value = empty($HTTP_COOKIE_VARS[$xoopsConfig['usercookie']]) ? 0 : 1; --- 91,97 ---- $sig_tray->addElement($sig_cbox); $umode_select = new XoopsFormSelect(_US_CDISPLAYMODE, 'umode', $xoopsUser->getVar('umode')); ! $umode_select->addOptionArray(array('nest'=>_NESTED, 'flat'=>_FLAT, 'thread'=>_THREADED)); $uorder_select = new XoopsFormSelect(_US_CSORTORDER, 'uorder', $xoopsUser->getVar('uorder')); ! $uorder_select->addOptionArray(array(XOOPS_COMMENT_OLD1ST => _OLDESTFIRST, XOOPS_COMMENT_NEW1ST => _NEWESTFIRST)); $bio_tarea = new XoopsFormTextArea(_US_EXTRAINFO, 'bio', $xoopsUser->getVar('bio', 'E')); $cookie_radio_value = empty($HTTP_COOKIE_VARS[$xoopsConfig['usercookie']]) ? 0 : 1; |