Here the deal:
My Roster 1.7.0 http://142.166.40.90/roster/addon.php?r ... =guildbank
This is a slightly modified layout for the page that suits our guilds needs.
I had this working as well with Roster 1.6.0 here:
http://142.166.40.90/FP/addon.php?roste ... =guildbank
Do you see the difference? I copied most of the code exactly - but yet I don't get the same results
You'll notice that in 1.7.0 my item name do not appear in the color of the item - everything is white.
Here's the code from 1.6.0 (with the original code still commented out)
about line 461
- Code: Select all
// Construct the image with a URL and put the colored border around it
if ($color_border) {
$returnstr .= '<a href="'.$itemlink[$roster_lang].urlencode(utf8_decode($itemrow['item_name'])).'" target="_itemlink">'."\n".'<img src="'.$img_url.$item_texture.'.'.$img_suffix.'" class="'.$item_quality.'"></a>';
} else {
$returnstr .= '<a href="'.$itemlink[$roster_lang].urlencode(utf8_decode($itemrow['item_name'])).'" target="_itemlink">'."\n".'<img src="'.$img_url.$item_texture.'.'.$img_suffix.'" class="itemsm"></a>';
// If we have more than 1 in total, display the total quantity number on the image
//if( ($itemrow['quantity'] > 1) && ($itemrow['item_parent'] != 'bags') ) {
//$returnstr .= '<span class="quant">'.$itemrow['quantity'].'</span>';
$returnstr .='<td width="515"><font color="'.$item_color.'">'.$itemrow['item_name'];
$returnstr .='<td width="35" align="center">'. "x".$itemrow['quantity'];
and here's the code from 1.7.0
about line 577
- Code: Select all
// Construct the image with a URL and put the colored border around it
if ($color_border)
{
$returnstr .= '<a href="'.$itemlink[$roster_conf['roster_lang']].urlencode(utf8_decode($itemrow['item_name'])).'" target="_itemlink">'."\n".'<img src="'.$roster_conf['interface_url'].$item_texture.'.'.$roster_conf['img_suffix'].'" class="'.$item_quality.'"></a>';
}
else
{
$returnstr .= '<a href="'.$itemlink[$roster_conf['roster_lang']].urlencode(utf8_decode($itemrow['item_name'])).'" target="_itemlink">'."\n".'<img src="'.$roster_conf['interface_url'].$item_texture.'.'.$roster_conf['img_suffix'].'" class="itemsm"></a>';
// If we have more than 1 in total, display the total quantity number on the image
//if (($itemrow['quantity'] > 1) && ($itemrow['item_parent'] != 'bags'))
//{
//$returnstr .= '<span class="quant">'.$itemrow['quantity'].'</span>';
//$returnstr .='<td width="450" font color="'.$item_color.'">'.$itemrow['item_name'];
$returnstr .='<td width="450" style="color:"'.$item_color.';">'.$itemrow['item_name'];
$returnstr .='<td width="35" align="center">'. "x".$itemrow['quantity'];
}
// Add the trail to the item-cell
$returnstr .= '</div></font></td>';
Can anyone help me out as to why the Item Color is not coming through??
Thanks
Sileed