Thanks to Romish for the fix
Here is the manual fix
Or you can download the patched files
[1.7.1] Riding Skill Icon fix
memberslist.php
Find the entire function Lines 631-660
- Code: Select all
function tradeskill_icons ( $row )
{
global $wowdb, $roster_conf, $wordings;
if( $row['clientLocale'] != '' )
{
$SQL_prof = $wowdb->query( "SELECT * FROM `".ROSTER_SKILLSTABLE."` WHERE `member_id` = '".$row['member_id']."' AND (`skill_type` = '".$wordings[$row['clientLocale']]['professions']."' OR `skill_type` = '".$wordings[$row['clientLocale']]['secondary']."') ORDER BY `skill_order` ASC" );
$cell_value = '';
while ( $r_prof = $wowdb->fetch_assoc( $SQL_prof ) )
{
$toolTip = str_replace(':','/',$r_prof['skill_level']);
$toolTiph = $r_prof['skill_name'];
$skill_image = 'Interface/Icons/'.$wordings[$row['clientLocale']]['ts_iconArray'][$r_prof['skill_name']];
if($r_prof['skill_name'] == "Riding")
{
$skill_image = 'Interface/Icons/'.$wordings[$row['clientLocale']]['ts_ridingIcon'][$row['race']];
}
$cell_value .= "<img class=\"membersRowimg\" width=\"".$roster_conf['index_iconsize']."\" height=\"".$roster_conf['index_iconsize']."\" src=\"".$roster_conf['interface_url'].$skill_image.'.'.$roster_conf['img_suffix']."\" alt=\"\" ".makeOverlib($toolTip,$toolTiph,'',2,'',',RIGHT,WRAP')." />\n";
}
}
else
{
$cell_value = ' ';
}
return $cell_value;
}
Replace with this new function
- Code: Select all
function tradeskill_icons ( $row )
{
global $wowdb, $roster_conf, $wordings;
if( $row['clientLocale'] != '' )
{
$lang = $row['clientLocale'];
$SQL_prof = $wowdb->query( "SELECT * FROM `".ROSTER_SKILLSTABLE."` WHERE `member_id` = '".$row['member_id']."' AND (`skill_type` = '".$wordings[$lang]['professions']."' OR `skill_type` = '".$wordings[$lang]['secondary']."') ORDER BY `skill_order` ASC" );
$cell_value = '';
while ( $r_prof = $wowdb->fetch_assoc( $SQL_prof ) )
{
$toolTip = str_replace(':','/',$r_prof['skill_level']);
$toolTiph = $r_prof['skill_name'];
if($r_prof['skill_name'] == $wordings[$lang]['riding'])
{
if($row['class']==$wordings[$lang]['Paladin'] || $row['class']==$wordings[$lang]['Warlock'])
{
$skill_image = 'Interface/Icons/'.$wordings[$lang]['ts_ridingIcon'][$row['class']];
}
else
{
$skill_image = 'Interface/Icons/'.$wordings[$lang]['ts_ridingIcon'][$row['race']];
}
}
else
{
$skill_image = 'Interface/Icons/'.$wordings[$lang]['ts_iconArray'][$r_prof['skill_name']];
}
$cell_value .= "<img class=\"membersRowimg\" width=\"".$roster_conf['index_iconsize']."\" height=\"".$roster_conf['index_iconsize']."\" src=\"".$roster_conf['interface_url'].$skill_image.'.'.$roster_conf['img_suffix']."\" alt=\"\" ".makeOverlib($toolTip,$toolTiph,'',2,'',',RIGHT,WRAP')." />\n";
}
}
else
{
$cell_value = ' ';
}
return $cell_value;
}
localization/enUS.php
Find Lines 412-422
- Code: Select all
// Riding Skill Icons-Array
$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',
);
Replace with
- Code: Select all
// Riding Skill Icons-Array
$wordings['enUS']['riding'] = 'Riding';
$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'
);
localization/deDE.php
Find Lines 412-422
- Code: Select all
// Riding Skill Icons-Array
$wordings['deDE']['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',
);
Replace with
- Code: Select all
// Riding Skill Icons-Array
$wordings['deDE']['riding'] = 'Reiten';
$wordings['deDE']['ts_ridingIcon'] = array(
'Nachtelf'=>'Ability_Mount_WhiteTiger',
'Mensch'=>'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'
);
localization/frFR.php
Find Lines 412-422
- Code: Select all
// Riding Skill Icons-Array
$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',
);
Replace with
- Code: Select all
// Riding Skill Icons-Array
$wordings['frFR']['riding'] = 'Monte';
$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'
);