Chủ đề: Share Mod màu nicks Phát Sáng cho JOHNCMS
![]() | ![]() ![]() ![]() 13:00 / 17.03.2016 |
Mod này cũng dễ thôi.
Demo:
1 Trong những Màu Con BOT nháy kìa.png)
Yêu cầu sử dụng mod thay đổi màu nick đã share.
Hoặc có thể làm tương tự.
Mở func.php thay function nick thành code sau:
''.highlight('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'] . '';
}
if($user['rights'] == 3) {$font = '<span class="fmod"><strong class="fmod">';}
if($user['rights'] > 3) {$font = '<span class="fmod"><strong class="fmod">';}
if($user['rights'] == 6) {$font = '<span class="smod"><strong class="smod">';}
if($user['rights'] == 7) {$font = '<span class="admin"><strong class="admin">';}
if($user['rights'] == 9) {$font = '<span class="admin"><strong class="admin">';}
$outt .= ''.$font.'' . $out . '</strong></span>';
}
return $outt;
}').''
Thêm code sau vào css của bạn:
''.highlight('/*Màu nick*/
span.admin {margin: 0px; padding: 0px; color: rgb(255, 10, 10);}
strong.admin {margin: 0px; padding: 0px; color: white; text-shadow: rgb(17, 17, 17) 0px 0px 0px, rgb(255, 10, 10) 0px 0px 0.5em, rgb(255, 10, 10) 0px 0px 0.4em;}
span.smod {margin: 0px; padding: 0px; color: rgb(19, 202, 32);}
strong.smod {margin: 0px; padding: 0px; color: white; text-shadow: rgb(17, 17, 17) 0px 0px 0px, rgb(19, 202, 32) 0px 0px 0.5em, rgb(19, 202, 32) 0px 0px 0.4em;}
span.fmod {margin: 0px; padding: 0px; color: rgb(25, 103, 245);}
strong.fmod {margin: 0px; padding: 0px; color: white; text-shadow: rgb(17, 17, 17) 0px 0px 0px, rgb(25, 103, 245) 0px 0px 0.5em, rgb(25, 103, 245) 0px 0px 0.4em;}
/*Hết màu nick*/
').''
Thế là xong, lưu ý là code chỉ nick sáng chỉ hiển thị trên pc và smartphone.
Upload: http://vina4z.tk
Nguồn: TOM
Chúc thành công!
Demo:
1 Trong những Màu Con BOT nháy kìa
.png)
Yêu cầu sử dụng mod thay đổi màu nick đã share.
Hoặc có thể làm tương tự.
Mở func.php thay function nick thành code sau:
''.highlight('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'] . '';
}
if($user['rights'] == 3) {$font = '<span class="fmod"><strong class="fmod">';}
if($user['rights'] > 3) {$font = '<span class="fmod"><strong class="fmod">';}
if($user['rights'] == 6) {$font = '<span class="smod"><strong class="smod">';}
if($user['rights'] == 7) {$font = '<span class="admin"><strong class="admin">';}
if($user['rights'] == 9) {$font = '<span class="admin"><strong class="admin">';}
$outt .= ''.$font.'' . $out . '</strong></span>';
}
return $outt;
}').''
Thêm code sau vào css của bạn:
''.highlight('/*Màu nick*/
span.admin {margin: 0px; padding: 0px; color: rgb(255, 10, 10);}
strong.admin {margin: 0px; padding: 0px; color: white; text-shadow: rgb(17, 17, 17) 0px 0px 0px, rgb(255, 10, 10) 0px 0px 0.5em, rgb(255, 10, 10) 0px 0px 0.4em;}
span.smod {margin: 0px; padding: 0px; color: rgb(19, 202, 32);}
strong.smod {margin: 0px; padding: 0px; color: white; text-shadow: rgb(17, 17, 17) 0px 0px 0px, rgb(19, 202, 32) 0px 0px 0.5em, rgb(19, 202, 32) 0px 0px 0.4em;}
span.fmod {margin: 0px; padding: 0px; color: rgb(25, 103, 245);}
strong.fmod {margin: 0px; padding: 0px; color: white; text-shadow: rgb(17, 17, 17) 0px 0px 0px, rgb(25, 103, 245) 0px 0px 0.5em, rgb(25, 103, 245) 0px 0px 0.4em;}
/*Hết màu nick*/
').''
Thế là xong, lưu ý là code chỉ nick sáng chỉ hiển thị trên pc và smartphone.
Upload: http://vina4z.tk
Nguồn: TOM
Chúc thành công!

• Vượng Touliver Official