Step 1:
Open bb_functions.php and paste script below in end of file:
Function maunick($id, $mod = false) {
/* Function Color Nick by dungitcdt(.)com
* Right = 3: Admin
* Right = 2: Mod
* Right = 1: Member
* Right = 0: Banner
*/
if ($ban = db_simpleSelect(0, $GLOBALS['Tb'], 'banip', 'banip', '=', $id)) $banA=$ban[0];
if ($user = db_simpleSelect(0, $GLOBALS['Tu'], 'rights, username', 'user_id', '=', $id)) $right = $user[0];
If ($ban > 0) {
$out .= '<span style="color:black;">' . $user[1] . '</span>';
} Else {
if ($right > 0) {
if ($right == 1) { $font = '<span style="color:blue;">';}
if ($right == 2) { $font = '<span style="color:green;">';}
if ($right == 3) { $font = '<span style="color:red;">';}
$out .= $font . $user[1] . '</span>';
} else {
$out .= '<span style="color:blue;">' . $user[1] . '</span>';
}
}
return '<b>'.$out.'</b>';
}
Step 2: Add script below to phpmyadmin
ALTER TABLE `minibbtable_users` ADD `rights` INT( 1 ) NOT NULL DEFAULT '1';
UPDATE `minibbtable_users` SET `rights` = '3' WHERE `minibbtable_users`.`user_id` =1;
Okey. How to use?
Example:
$name = maunick($res[2]);
Wish you success! :))