vbdh wrote:Ok i have added the code and it works great sort of when anyone clicks on the icon it just go's to main page of the armory anyone help me out
Thrillseekers
You need to change the realm in the link from Medivh to Khadgar
i.e.
Change:
- Code: Select all
$icon_value = '<a href="http://armory.worldofwarcraft.com/#character-sheet.xml?r=Medivh&n='.$row['name'].'" target="_blank"><img class="membersRowimg" width="16" height="16" src="'.$roster_conf['interface_url'].$icon_name.'.'.$roster_conf['img_suffix'].'" title="Link to WoW Armory Profile" alt="" /></a> ';
to:
- Code: Select all
$icon_value = '<a href="http://armory.worldofwarcraft.com/#character-sheet.xml?r=Khadgar&n='.$row['name'].'" target="_blank"><img class="membersRowimg" width="16" height="16" src="'.$roster_conf['interface_url'].$icon_name.'.'.$roster_conf['img_suffix'].'" title="Link to WoW Armory Profile" alt="" /></a> ';
or add the global variable declaration and use it:
- Code: Select all
function name_value ( $row )
{
global $wordings, $roster_conf, $guildFaction, $guild_info;
$icon_name = 'Interface/Icons/Armory';
$icon_value = '<a href="http://armory.worldofwarcraft.com/#character-sheet.xml?r='.urlencode($guild_info['realm']).'&n='.$row['name'].'" target="_blank"><img class="membersRowimg" width="16" height="16" src="'.$roster_conf['interface_url'].$icon_name.'.'.$roster_conf['img_suffix'].'" title="Link to WoW Armory Profile" alt="" /></a> ';
if( $roster_conf['index_member_tooltip'] )
{
$tooltip_h = $row['name'].' : '.$row['guild_title'];
$tooltip = 'Level '.$row['level'].' '.$row['class']."\n";
$tooltip .= $wordings[$roster_conf['roster_lang']]['lastonline'].': '.$row['last_online'].' in '.$row['zone'];
$tooltip .= ($row['nisnull'] ? '' : "\n".$wordings[$roster_conf['roster_lang']]['note'].': '.$row['note']);
$tooltip = '<div style="cursor:help;" '.makeOverlib($tooltip,$tooltip_h,'',1,'',',WRAP').'>';
if ( $row['server'] )
{
return $tooltip.$icon_value.'<a href="char.php?name='.$row['name'].'&server='.$row['server'].'">'.$row['name'].'</a></div>';
}
else
{
return $tooltip.$icon_value.$row['name'].'</div>';
}
}
else
{
if ( $row['server'] )
{
return $icon_value.'<a href="char.php?name='.$row['name'].'&server='.$row['server'].'">'.$row['name'].'</a>';
}
else
{
return $icon_value.$row['name'];
}
}
}
Edit... Added urlencode() above