Hi there...
First... Thanks for this great Tool. I love it
So, hope you understand my english
I have a problem to remove the line break from the table Tradeskill if I try to give them a firm width.
I would be pleased if me someone may help me, since I do not find the error.
Maybe the problem i have is very very simple, but im a beginner Sorry...
With table for Name & Class etc. it works without problem...
Enclosed a screenshot with the problem.
File "memberslist.php" in root folder of the roster.
- Code: Select all
/**
* Controls Output of the Tradeskill Icons Column
*
* @param array $row - of character data
* @return string - Formatted output
*/
function tradeskill_icons ( $row )
{
global $wowdb, $roster_conf, $wordings;
$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 .= '<table border="0" cellpadding="0" cellspacing="0" width="150">';
---> $cell_value .= '<tr>';
---> $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']];
$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=\"\" onmouseover=\"return overlib('$toolTip',
CAPTION,'$toolTiph',RIGHT,WRAP);\" onmouseout=\"return nd();\" />\n";
}
---> $cell_value .= "</tr>\n</table>\n";
return $cell_value;
}
What i change
1. Added 2 lines (table for width) before while loop:
- Code: Select all
$cell_value .= '<table border="0" cellpadding="0" cellspacing="0" width="150">';
$cell_value .= '<tr>';
2. Added . in "cell_value" bofore while loop:
- Code: Select all
$cell_value .='';
3. Added 1 line (table close) after while loop:
- Code: Select all
$cell_value .= "</tr>\n</table>\n";