Tâm trạng hàng ngày | Hạnh phúc 2-7-2025 09:43 PM |
|---|
Đã viết: 13 ngày [LV.3]Spam 3
|
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
1. Mở index.php
tìm- $forumlist[$forum['fid']] = $forum;
- }
Sao chép mã thêm dứơi- $ss = "SELECT t.tid, t.authorid, m.uid, m.groupid, u.groupid, u.color FROM {$tablepre}threads t,
- {$tablepre}members m, {$tablepre}usergroups u
- WHERE t.tid='".$forum['lastpost']['tid']."' ";
- $sa = $db->fetch_array($db->query($ss));
- $acolor = $sa['color'];
Sao chép mã 2. mở templates/default/discuz.htm
tìm- <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->
Sao chép mã Thay bằng- <!--{if $forum['lastpost']['author']}--><a href="space.php?username=$forum['url']"><font color=$acolor>$forum['lastposta']</font></a><!--{else}-->
Sao chép mã 3. mở include/forum.func.php
tìm- $lastpost['author'] = '<a href="space.php?username='.rawurlencode($lastpost['author']).'">'.$lastpost['author'].'</a>';
Sao chép mã thêm trên- $forum['lastposta'] = $lastpost['author'];
- $forum['url'] = rawurlencode($lastpost['author']);
Sao chép mã Nguồn Discuz! Việt Nam - 123Discuz!
Chú ý: Hack thử xong thấy báo thiếu memory ko biết phải tại nó ko. Ai thấy nó nặng hơn thì gỡ ra néh |
|