UBB.Dev
Posted By: svr Rank Icons that work with Jimbo Custom Rank hack? - 11/07/2001 7:18 PM
Hi I have installed on 5.47e Jimbo's custom rank hack and it works fine. I want to know if there is another hack that'll add an icon (or icons) to each member's custom rank title?

So for TITLE1 I should be able to assign ICON1
for TITLE2 ICON2

... and so on.

Thanks much in advance!
Code
code:

peetwokewl4u!
Hmm..

well, the rank hack has the following code;


# Check for Post Count titles
my @posttitles = &OpenFile("$MembersPath/title-list2.file");

foreach $thisline(@posttitles) {
my @postnumtitles = split(/|!!|/, $thisline);
chomp($postnumtitles[1]);

if ($thisprofile[7] > $postnumtitles[0]) {
$ThisStatus = "$postnumtitles[1]";
}
}


So there is a loop going on. I don't think adding a simple link for an image file will make diff. icons for each member (according to rank).

I could do image$postnumtitle[0].gif but then it will give away the number of posts required to get ranked etc... so there has to be some other way.

Thax
Svr, use what p2k posted. The easiest way to add a image is to use HTML after the title so for example it should be like this.

1|!!|Title
I just wanted to confirm this works VERY well! Have a look at a test message I posted here:

http://vca1.viperclub.org/ubb/Forum23/HTML/000403.html#2

My post should be pretty evident. smile
Yep it does work the way above.. thanks!
The hack is pretty neat!
© UBB.Developers