Mời bạn đăng ký để giao lưu kết bạn nhé <3
Bạn phải đăng nhập để xem được nội dung, nếu bạn chưa có tài khoản? hãy Đăng ký
x
Hơi khác với bản 7.0 chút. Tiến hành làm nhé
1. Mở includes/index_classics.inc.php tìm- $query = $db->query("SELECT uid, username, groupid, invisible, action, lastactivity, fid FROM {$tablepre}sessions ".(isset($_DCACHE['onlinelist'][7]) ? '' : 'WHERE uid <> 0')." ORDER BY uid DESC LIMIT ".$maxonlinelist);
Sao chép mã Thay bằng- $query = $db->query("SELECT s.uid, s.username, s.groupid, s.invisible, s.action, s.lastactivity, s.fid,u.groupid, u.color FROM {$tablepre}sessions AS s, {$tablepre}usergroups AS u ".(isset($_DCACHE['onlinelist'][7]) ? '' : 'WHERE uid <> 0 AND s.groupid=u.groupid')." ORDER BY uid DESC LIMIT ".$maxonlinelist);
Sao chép mã 2: Mở template/default/discuz.htm tìm- <a href="space.php?uid=$online[uid]" target="_blank">$online[username]</a>
Sao chép mã Thay bằng- <a href="space.php?uid=$online[uid]" target="_blank"><font color=$online[color]>$online[username]</font></a>
Sao chép mãKhách: Nội dung này bị ẩn, bạn cần bấm Thank để xem.
Demo Trái Tim Yên Bái Discuz 7.1 |