- Online time
- 65 Hours
- R.P.
- 50
- Gold
- 1164
- Last login
- 9-3-2012
- Reg time
- 8-5-2010
- Posts
- 131
- Threads
- 16
- Credits
- 50
- UID
- 3146
  
- Last login
- 9-3-2012
|
Last Edited by fireblade on 5-7-2010 13:59
Before After
CustomRank.rar
(13.24 KB, Downloads: 23, Price: 10 Gold)
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.' />';
- }
- }
- }
- }
Copy the Code 3.Replace with- function showstars($num) {
- $alt = 'alt="Rank: '.$num.'"';
- echo '<img src="'.IMGDIR.'/'.$num.'.gif" '.$alt.' />';
- }
Copy the Code |
-
Total score: Gold + 20
View Rating Log
|