Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2001
Posts: 194
svr
Offline
Member
Member
Offline
Joined: Sep 2001
Posts: 194
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!

Sponsored Links
Joined: Feb 2001
Posts: 108
p2k Offline
Member
Member
Offline
Joined: Feb 2001
Posts: 108
Code
code:

peetwokewl4u!

Joined: Sep 2001
Posts: 194
svr
Offline
Member
Member
Offline
Joined: Sep 2001
Posts: 194
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

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
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

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
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

Sponsored Links
Joined: Sep 2001
Posts: 194
svr
Offline
Member
Member
Offline
Joined: Sep 2001
Posts: 194
Yep it does work the way above.. thanks!
The hack is pretty neat!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)