Quote:
Originally Posted by Anek
Perfect it works!!! :up:
Only a thing: when user is banned, him user title doesn't change.
I think that is sufficient set $user[customtitle]="banned" .. is it right?
|
Well, to do that, find:
PHP Code:
$liftdate=$time_unban;
and right underneath that, add:
PHP Code:
$title="Temp. Banned"
or "Banned" or whatever you want.
Then find:
PHP Code:
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user SET
usergroupid = $usergroupid,
displaygroupid = $usergroupid
WHERE userid = $user[userid]
and replace it with:
PHP Code:
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user SET
usergroupid = $usergroupid,
displaygroupid = $usergroupid,
usertitle = $title
WHERE userid = $user[userid]