Hi, Khách!
![]() | ![]() ![]() ![]() ![]() |
Bắt đầu nào.
Yêu cầu wap đã mod functions màu nick, nếu chưa mod thì cũng làm tương tự nhé.
Đầu tiên gõ đoạn này vào data nhé:
Tiếp tục vào incfiles/func.php
Thay toàn bộ code function màu nick thành code này nhé
<?php
function nick($id, $mod = false) {
$ban = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_ban_users` WHERE `user_id` = '" . $id . "' AND `ban_time` > '" . time() . "'"), 0);
$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '" . $id . "'"));
if($ban > 0) {
$out .= '<font color="black">'.($mod == 1 ? '<small>' : '<b>').'<s>' . $user['name' . '</s>'.($mod == 1 ? '</small>' : '</b>').'</font>';
} else {
if(!empty($user[mau_nick)) {
$font = '<font color="'.$user[mau_nick.'">';
$out .= ''.$font.'' . $user['name' . '</font>';
} else {
$out .= '' . $user['name' . '';
}
}
return $out;
}
?>
Copy code
function nick($id, $mod = false) {
$ban = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_ban_users` WHERE `user_id` = '" . $id . "' AND `ban_time` > '" . time() . "'"), 0);
$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '" . $id . "'"));
if($ban > 0) {
$out .= '<font color="black">'.($mod == 1 ? '<small>' : '<b>').'<s>' . $user['name' . '</s>'.($mod == 1 ? '</small>' : '</b>').'</font>';
} else {
if(!empty($user[mau_nick)) {
$font = '<font color="'.$user[mau_nick.'">';
$out .= ''.$font.'' . $user['name' . '</font>';
} else {
$out .= '' . $user['name' . '';
}
}
return $out;
}
?>
Copy code
Ai chưa có file func.php thì tự tạo rồi up vào.
Tiếp tục up file doimau.php lên thư mục mod nhé
Chạy đường dẫn để thay màu nick
Chúc thành công!
Tải xuống thay_mau_nick.zip (1.56 KB)

Trực Tuyến:
Khách: 1