SpILL Publish time 2-3-2010 23:36:55

[Discuz] Rank Icons

Last Edited by SpILL at 7-3-2010 06:24

Normal:


Download:


Animated:


Download:


Password:
**** Hidden Message *****

New88 Publish time 2-3-2010 23:40:38

How to use these icons in posts? Should I make any modifications in some files? If yes, which file. Pls explain it clearly. Thanks for the cool icons :)

SpILL Publish time 2-3-2010 23:47:17

Reply 2# New88


    Please, be patient i will post the entire tutorial as well. As rapidly as i get free from other works..
/Sorry.

New88 Publish time 2-3-2010 23:49:52

Please post the full tutorial soon.

mio Publish time 3-3-2010 09:17:45

amazing design, thx

New88 Publish time 4-3-2010 01:05:25

Last Edited by New88 at 3-3-2010 22:57

I finally found out the hack myself. I had used it before in my dz7 forum, but after upgrading to dz7.1 I had lost it. I searched my edited files from my dz7 backup and got this hack. Here I am posting it for you all: -
1) Open include/forum.func.php

2)Find the code belowfunction showstars($num) {
        global $starthreshold;
        $alt = 'alt="Rank: '.$num.'"';
        if(empty($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($starthreshold, ($i - 1)));
                        $num = ($num % pow($starthreshold, ($i - 1)));
                        for($j = 0; $j < $numlevel; $j++) {
                                echo '<img src="'.IMGDIR.'/star_level'.$i.'.gif" '.$alt.' />';
                        }
                }
        }
}3) Replace it with the code belowfunction showstars($num) {
        echo "<img src=images/ranks/$num.gif title='Rank: ".$num."'>";
}4) Save forum.func.php and upload it your forum server and replace the old file with this newly saved file

5) Paste all the images in folder ranks and upload it to images/

6) Goto admincp and set the the star level identical with the name of rank image file(for eg if you set star level for administrator usergroup as 15 the the filename of admin rank icon should also be 15)

werner Publish time 7-3-2010 03:45:36

It is very simpel....
On Usergroup or Admingroup.. you have an empty field "groupavatar"
In this field you write your images Link ..( i write the complete link.. you can also take a link from any image on the WEB)
Than save..

Thats all.

werner Publish time 7-3-2010 04:55:46

ohh jeah.. here some new for you.."glasses rank and transparent"..lok it this



SpILL Publish time 7-3-2010 05:25:26

Reply 8# werner


    Lol, rated wrong amount of reward. Will fix later...
Btw, its better then mine. :) Much appreciated! (Y)
/Sorry

New88 Publish time 7-3-2010 12:46:24

It is very simpel....
On Usergroup or Admingroup.. you have an empty field "groupavatar"
In this field you write your images Link ..( i write the complete link.. you can also take a link from any image on the WEB)
Than save..
Thats all.
werner Posted at 7/3/2010 01:15 AM http://www.msg2me.com/images/common/back.gif
********************
Hmm....nope,,,,,I guess, that would only change the avatar not the ranks(stars)!
Pages: [1] 2 3 4 5
View full version: [Discuz] Rank Icons