Riding Skill icon in 1.7.1

Theme, template, layout, or image issues

Riding Skill icon in 1.7.1

Postby Romish » Mon Oct 23, 2006 4:10 pm

MOD EDIT:
Official fix posted here
Roster > Official Bugs & Updates > [1.7.1] Riding Skill Errors


Files posted here have been removed
Thanks for the fixes!


In a previous post on this topic, I have posted how to have an enhanced riding icon in the main page. It seems that only a part of it has been implemented in 1.7.1 leading to:
1- No riding icon is displayed in any languages other than english,
2- Special riding icon for Warlock and Paladin is not displayed.

For both issues, the code has to be changed in <Roster>\memberlist.php, the code to change is at line (647-650):
Code: Select all
            if($r_prof['skill_name'] == "Riding")
            {
                
$skill_image 'Interface/Icons/'.$wordings[$row['clientLocale']]['ts_ridingIcon'][$row['race']];
            }
 

and should be changed with:
Code: Select all
            if($r_prof['skill_name'] == $wordings[$row['clientLocale']]['Riding'])
            {
                if(
$row['class']==$wordings[$row['clientLocale']]['Paladin'] || $row['class']==$wordings[$row['clientLocale']]['Warlock'])
                {
                    
$skill_image 'Interface/Icons/'.$wordings[$row['clientLocale']]['ts_ridingIcon'][$row['class']];
                }
                else
                {
                    
$skill_image 'Interface/Icons/'.$wordings[$row['clientLocale']]['ts_ridingIcon'][$row['race']];
                }
            }
            else
            {
                
$skill_image 'Interface/Icons/'.$wordings[$row['clientLocale']]['ts_iconArray'][$r_prof['skill_name']]; 
            } 


This code will need to have some wordings to be added to the localization file:
- For frFR.php:
Add the line:
Code: Select all
$wordings['frFR']['Riding'] = 'Monte'
after the line:
Code: Select all
$wordings['frFR']['PvPRankNone']='None'

Add/update the array:
Code: Select all
$wordings['frFR']['ts_ridingIcon'] = array(
                
'Elfe de la nuit'=>'Ability_Mount_WhiteTiger',
                
'Humain'=>'Ability_Mount_RidingHorse',
                
'Nain'=>'Ability_Mount_MountainRam',
                
'Gnome'=>'Ability_Mount_MechaStrider',
                
'Mort-Vivant'=>'Ability_Mount_Undeadhorse',
                
'Troll'=>'Ability_Mount_Raptor',
                
'Tauren'=>'Ability_Mount_Kodo_03',
                
'Orc'=>'Ability_Mount_BlackDireWolf',
                
'Paladin'=>'Ability_Mount_Dreadsteed',
                
'Démoniste'=>'Ability_Mount_NightmareHorse'
); 


- For deDE.php:
Add the line:
Code: Select all
$wordings['deDE']['Riding'] = 'Reiten'

Add/update the array:
Code: Select all
$wordings['deDE']['ts_ridingIcon'] = array(
                
'Nachtelf'=>'Ability_Mount_WhiteTiger',
                
'Human'=>'Ability_Mount_RidingHorse',
                
'Zwerg'=>'Ability_Mount_MountainRam',
                
'Gnom'=>'Ability_Mount_MechaStrider',
                
'Untoter'=>'Ability_Mount_Undeadhorse',
                
'Troll'=>'Ability_Mount_Raptor',
                
'Tauren'=>'Ability_Mount_Kodo_03',
                
'Orc'=>'Ability_Mount_BlackDireWolf',
                
'Paladin'=>'Ability_Mount_Dreadsteed',
                
'Hexenmeister'=>'Ability_Mount_NightmareHorse'
); 


- For enUS.php:
Add the line:
Code: Select all
$wordings['enUS']['Riding'] = 'Riding'

Add/update the array:
Code: Select all
$wordings['enUS']['ts_ridingIcon'] = array(
                
'Night Elf'=>'Ability_Mount_WhiteTiger',
                
'Human'=>'Ability_Mount_RidingHorse',
                
'Dwarf'=>'Ability_Mount_MountainRam',
                
'Gnome'=>'Ability_Mount_MechaStrider',
                
'Undead'=>'Ability_Mount_Undeadhorse',
                
'Troll'=>'Ability_Mount_Raptor',
                
'Tauren'=>'Ability_Mount_Kodo_03',
                
'Orc'=>'Ability_Mount_BlackDireWolf',
                
'Paladin'=>'Ability_Mount_Dreadsteed',
                
'Warlock'=>'Ability_Mount_NightmareHorse'
); 


Regards.
Attachments
riding_icon.zip
To unzip at the root of your roster. It includes:
1- Localization files: frFR.php, enUS.php, deDE.php,
2- memberlist.php
(46.03 KiB) Downloaded 250 times
Last edited by Romish on Tue Oct 24, 2006 8:23 am, edited 3 times in total.
Romish
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Mon Oct 16, 2006 8:54 pm

Riding Skill icon in 1.7.1

Postby SethDeBlade » Tue Oct 24, 2006 12:23 am

Please correct 'Human' in german translation to 'Mensch'





edit: ok. in my roster it still does not work and i dont know and understand why. i have the same problems as in 1.7.0.

so i did two select-commands manualy to give you the raw-data. perhaps it helps you to find out why the riding-spell including image is not shown.

please see attached txt-file

and please excuse my hardheadedness for insisting on this topic ;) :D
Last edited by SethDeBlade on Tue Oct 24, 2006 2:26 am, edited 2 times in total.
User avatar
SethDeBlade
WR.net Expert
WR.net Expert
 
Posts: 192
Joined: Thu Jul 06, 2006 1:02 am
Location: Germany

Riding Skill icon in 1.7.1

Postby zanix » Tue Oct 24, 2006 8:00 am

Thanks Romish, I'll add this to the official updates forum
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: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Riding Skill icon in 1.7.1

Postby zanix » Tue Oct 24, 2006 8:19 am

Posted - http://www.wowroster.net/Forums/viewtopic/t=1583.html

There is one error with your fix, the frFR translation is not utf-8 encoded
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: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US


Return to Appearance

Who is online

Users browsing this forum: No registered users and 1 guest

cron