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
first extract this file to /static/images/common
or if you using custom templates put in /template/(template name)/images
better put both...
1. Open /source/function/function_forumlist.php
2.Find
- function showstars($num) {
- global $_G;
- $alt = 'alt="Rank: '.$num.'"';
- if(empty($_G['setting']['starthreshold'])) {
- for($i = 0; $i < $num; $i++) {
- echo '<img src="'.IMGDIR.'/star_level1.gif" '.$alt.' />';
- }
- } else {
- for($i = 3; $i > 0; $i--) {
- $numlevel = intval($num / pow($_G['setting']['starthreshold'], ($i - 1)));
- $num = ($num % pow($_G['setting']['starthreshold'], ($i - 1)));
- for($j = 0; $j < $numlevel; $j++) {
- echo '<img src="'.IMGDIR.'/star_level'.$i.'.gif" '.$alt.' />';
- }
- }
- }
- }
Sao chép mã
3.Replace with
- function showstars($num) {
- $alt = 'alt="Rank: '.$num.'"';
- echo '<img src="'.IMGDIR.'/'.$num.'.gif" '.$alt.' />';
- }
Sao chép mã |
|