1
chebiza
Parse error when Editing in edituser.php
  • 2006/9/21 9:57

  • chebiza

  • Just popping in

  • Posts: 22

  • Since: 2005/5/28


I wanted to change these:in edituser.php
Quote:
$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));

To this:
Quote:
$umode_select = new XoopsFormSelect(_US_CDISPLAYMODE, 'umode', $xoopsUser->getVar('umode'));
$umode_select->addOptionArray(array('flat'=>_FLAT, 'nest'=>_NESTED, 'thread'=>_THREADED));
$uorder_select = new XoopsFormSelect(_US_CSORTORDER, 'uorder', $xoopsUser->getVar('uorder'));
$uorder_select->addOptionArray(array(XOOPS_COMMENT_NEW1ST => _NEWESTFIRST, XOOPS_COMMENT_OLD1ST => _OLDESTFIRST));

not so hard....
but then I got this when i clicked the edit account:
Parse error: parse error, unexpected '=' in /home/xxxxxx/public_html/lovestorm/edituser.php on line 74
and in this line this is written:
Quote:
xxxxxx = '';
if (!empty($_POST['password'])) {
xxxxxx = $myts->stripSlashesGPC(trim($_POST['password']));
}
if (xxxxxx != '') {
if (strlen(xxxxxx) < $xoopsConfigUser['minpass']) {
$errors[] = sprintf(_US_PWDTOOSHORT,$xoopsConfigUser['minpass']);
}
$vpass = '';
if (!empty($_POST['vpass'])) {
$vpass = $myts->stripSlashesGPC(trim($_POST['vpass']));
}
if (xxxxxx != $vpass) {
$errors[] = _US_PASSNOTSAME;

I changed the password to xxxxxx...here for security reasons :-9
but I havent even changed anything there????
I need help, cause now my members cant edit there profil.

2
jdseymour
Re: Parse error when Editing in edituser.php

Why edit the file? Why not change these options as intended in System Admin - Preferences - General Settings?

3
chebiza
Re: Parse error when Editing in edituser.php
  • 2006/9/21 10:35

  • chebiza

  • Just popping in

  • Posts: 22

  • Since: 2005/5/28



I looked there but couldnt find it...
stupid me,but it doesnt solve my problem with the parse error???
I changed it now using preferences general settings but I still get parse error???

4
jdseymour
Re: Parse error when Editing in edituser.php

Did you restore the file from backup?

5
iHackCode
Re: Parse error when Editing in edituser.php

i've just tested your modification you mentioned above:
$umode_select = new XoopsFormSelect(_US_CDISPLAYMODE'umode'$xoopsUser->getVar('umode'));
$umode_select->addOptionArray(array('flat'=>_FLAT'nest'=>_NESTED'thread'=>_THREADED));
$uorder_select = new XoopsFormSelect(_US_CSORTORDER'uorder'$xoopsUser->getVar('uorder'));
$uorder_select->addOptionArray(array(XOOPS_COMMENT_NEW1ST => _NEWESTFIRSTXOOPS_COMMENT_OLD1ST => _OLDESTFIRST));


but i do not see that parse error. it looks like its working fine.
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

Login

Who's Online

286 user(s) are online (188 user(s) are browsing Support Forums)


Members: 0


Guests: 286


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits