PDA

View Full Version : [fixed] in mod/user.php


Mystics
Thu 29th Aug '02, 3:50pm
Hi,

if you ban a member via mod/user.php, he gets the user title 'Banned by Moderators', instead of the right user title 'Banned'.

To fix it, replace this in mod/user.php:$bangroup['title'] = 'Banned by Moderators';with this:$bangroup['title'] = 'Banned';
Also, I wouldn't check for custom usertitles here: if ($banuser['customtitle'] == 0) {
$dotitle = ", usertitle='".addslashes($bangroup['title'])."'";
} else {
$dotitle = '';
}Because, in my opinion, why should a member who got or has given himself a custom user title, not get the title 'Banned' after being banned? It would be better to set (automatically) customtitle=0 for all banned users.

Mystics

Mystics
Thu 29th Aug '02, 6:54pm
OK, there are some more errors.

Replace this: $bangroup=$DB_site->query_first("SELECT usergroupid,title FROM usergroup WHERE title='Banned by Moderators'");with this $bangroup=$DB_site->query_first("SELECT usergroupid,usertitle FROM usergroup WHERE title='Banned by Moderators'");and replace this:$bangroup['title'] = 'Banned by Moderators';with this:$bangroup['usertitle'] = 'Banned';and finally replace this:$dotitle = ", usertitle='".addslashes($bangroup['title'])."'";with this:$dotitle = ", usertitle='".addslashes($bangroup['usertitle'])."'";Mystics