PDA

View Full Version : [fixed] Wrong styleset displayed in Mod-CP


Stadler
Tue 1st Oct '02, 8:03pm
In the Moderator's Control Panel the wrong Styleset is displayed when viewing a user, because the styleid isn't chosen from the usertable.

To correct this, do the following:

in mod/user.php find
$user=$DB_site->query_first("SELECT userid,usergroupid,username,password,email,parente mail,coppauser,homepage,icq,aim,yahoo,signature,ad minemail,showemail,invisible,usertitle,customtitle ,FROM_UNIXTIME(joindate) AS joindate,cookieuser,daysprune,FROM_UNIXTIME(lastvi sit) AS lastvisit,FROM_UNIXTIME(lastactivity) AS lastactivity,FROM_UNIXTIME(lastpost) AS lastpost,posts,timezoneoffset,emailnotification,em ailonpm,receivepm,ipaddress FROM user WHERE userid=$userid");and replace it with $user=$DB_site->query_first("SELECT userid,usergroupid,username,password,email,styleid ,parentemail,coppauser,homepage,icq,aim,yahoo,sign ature,adminemail,showemail,invisible,usertitle,cus tomtitle,FROM_UNIXTIME(joindate) AS joindate,cookieuser,daysprune,FROM_UNIXTIME(lastvi sit) AS lastvisit,FROM_UNIXTIME(lastactivity) AS lastactivity,FROM_UNIXTIME(lastpost) AS lastpost,posts,timezoneoffset,emailnotification,em ailonpm,receivepm,ipaddress FROM user WHERE userid=$userid");

Tried to highlight the change, but the forum screwed everything, so I reverted it back {Stadler}

Steve Machol
Tue 1st Oct '02, 10:38pm
Confirmed. Moved to Bugs forum.

Chen
Wed 2nd Oct '02, 10:53am
The fix is correct too.

Erwin
Fri 11th Oct '02, 6:52am
Thanks, fixed it. :)

caillean
Mon 4th Nov '02, 9:09am
note that in stadlers fix there are two spaces behind SELECT, but it should only be one

Stadler
Mon 4th Nov '02, 9:15am
Originally posted by caillean
note that in stadlers fix there are two spaces behind SELECT, but it should only be one The same appears in your fix. ;)

caillean
Mon 4th Nov '02, 9:18am
Originally posted by Stadler
The same appears in your fix. ;)

thats why i removed the code

seems the small textarea where to enter the post is breaking the text so that an extra whitespace is shown

so, just notice it when you search and replace the code :)