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
Source: discuzvn
Demo
File cần sửa: 02 (viewthread.php ; templates/default/viewthread_note.htm)
#01: mở file viewthread.php
tìm
- if($_DCACHE['usergroups'][$post['groupid']]['userstatusby'] == 1) {
- $post['authortitle'] = $_DCACHE['usergroups'][$post['groupid']]['grouptitle'];
- $post['stars'] = $_DCACHE['usergroups'][$post['groupid']]['stars'];
- } elseif($_DCACHE['usergroups'][$post['groupid']]['userstatusby'] == 2) {
- foreach($_DCACHE['ranks'] as $rank) {
- if($post['posts'] > $rank['postshigher']) {
- $post['authortitle'] = $rank['ranktitle'];
- $post['stars'] = $rank['stars'];
- break;
- }
- }
- }
Sao chép mã
Thay bằng
- //Start display Post-rank edited (c) Vic.0
- $post['authortitle'] = $_DCACHE['usergroups'][$post['groupid']]['grouptitle'];
- $post['stars'] = $_DCACHE['usergroups'][$post['groupid']]['stars'];
- foreach($_DCACHE['ranks'] as $rank)
- {
- if($post['posts'] > $rank['postshigher'])
- {
- $post['authortitle'] = $rank['ranktitle'];
- $post['stars'] = $rank['stars'];
- break;
- }
- }
- //end Post-rank (c) Vic.0
Sao chép mã
#02: Mở file templates/default/viewthread_note.htm
Tìm
- <p><em>$post[authortitle]</em></p>
Sao chép mã
Thêm ngay bên dưới
- <!--Start Show PostRank(c) Vic.0 @netdepviet.org !-->
- <p><em>$post[authortitle1]</em></p>
- <p>{eval showstars($post['stars1']);}</p>
- <!--End Show PostRank(c) Vic.0 @ !-->
Sao chép mã
Update cache. Done
|
|