PvP Rank 10 Image

Theme, template, layout, or image issues

PvP Rank 10 Image

Postby Efryse » Mon Feb 19, 2007 2:36 pm

Hi!

On my roster-page there seems to be an issue with the PvP rank icons. My lifetime rank is 10 an the icon does not appear. Roster's imagelink is PvPRank010.png but should be PvPRank10.png to display correctly. I can not check if the issue exists for all ranks higher than nine, because in my (small) guild, there's no one higher than 10.

I looked up the roster code and I found this:
Code: Select all
if( $playersData['lifetimeHighestRank'] < 10 )
         {
            $rankicon = 'Interface/PvPRankBadges/PvPRank0'.$row['lifetimeHighestRank'].'.'.$roster_conf['alt_img_suffix'];
         }
         else
         {
            $rankicon = 'Interface/PvPRankBadges/PvPRank'.$row['lifetimeHighestRank'].'.'.$roster_conf['alt_img_suffix'];
         }


I have only little knowledge in php but the code seems to be correct.

Link to the page: http://www.theepic.de/roster/indexhonor.php
Efryse
WR.net Apprentice
WR.net Apprentice
 
Posts: 35
Joined: Tue Jan 16, 2007 3:44 am

PvP Rank 10 Image

Postby zanix » Mon Feb 19, 2007 4:52 pm

Yeah, that seems right to me as well
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

PvP Rank 10 Image

Postby Efryse » Mon Feb 19, 2007 5:56 pm

I did a "dirty" hotfix by inserting a zero into all filenames higher than rank 9 and still leaving the original files in the same folder.

I have now a PvPRank010.png and a PvPRank10.png, so nothing can go wrong.

Before that I checked the tables using phpMyAdmin. lifetimehighestrank is defined as an int and it contains the correct number. I'm still wondering what is wrong and if anyone else has the same problem.
Efryse
WR.net Apprentice
WR.net Apprentice
 
Posts: 35
Joined: Tue Jan 16, 2007 3:44 am


Return to Appearance

Who is online

Users browsing this forum: No registered users and 0 guests

cron