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_link.$row['name'].'</a></div>';
}
if ( $row['server'] ){
return $tooltip.$icon_value.'<a href="char.php?name='.$row['name'].'&server='.$row['server'].'">'.$row['name'].'</a></div>';
}else{
return $tooltip.$name_link.$row['name'].'</a></div>'; //Change this between $icon_link and $name_link as well
}
function name_value ( $row )
{
global $wordings, $roster_conf, $guildFaction;
$icon_name = 'Interface/Icons/Mail_GMIcon';
$icon_value = '<a href="http://armory.worldofwarcraft.com/#character-sheet.xml?r=Alexstrasza&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'] )
{
// Original WowRosterDF Code
// return $tooltip.'<a href="'.getlink($module_name.'&file=char&cname='.$row['name'].'&server='.$row['server']).'">'.$row['name'].'</a></div>';
// Original Code for the Armory Update from thread http://wowroster.net/Forums/viewtopic/t=3047/finish=15/start=0.html
// return $tooltip.$icon_value.'<a href="char.php?name='.$row['name'].'&server='.$row['server'].'">'.$row['name'].'</a></div>';
// Modified code for use with Armory and WowRosterDF
return $tooltip.$icon_value.'<a href="'.getlink($module_name.'&file=char&cname='.$row['name'].'&server='.$row['server']).'">'.$row['name'].'</a></div>';
}
else
{
// Original WowRosterDF Code
// return $tooltip.$row['name'].'</div>';
return $tooltip.$icon_value.$row['name'].'</div>';
}
}
else
{
if ( $row['server'] )
{
// Original WowRosterDF Code
// return '<a href="'.getlink($module_name.'&file=char&cname='.$row['name'].'&server='.$row['server']).'">'.$row['name'].'</a>';
// Original Code for the Armory Update from thread http://wowroster.net/Forums/viewtopic/t=3047/finish=15/start=0.html
// return $icon_value.'<a href="char.php?name='.$row['name'].'&server='.$row['server'].'">'.$row['name'].'</a>';
// Modified code for use with Armory and WowRosterDF
return $icon_value.'<a href="'.getlink($module_name.'&file=char&cname='.$row['name'].'&server='.$row['server']).'">'.$row['name'].'</a>';
}
else
{
// return $row['name'];
return $icon_value.$row['name'];
}
}
}
function name_value ( $row )
{
global $wordings, $roster_conf, $guildFaction;
$icon_name = 'Interface/Icons/Mail_GMIcon';
if( $roster_conf['realmstatus_url'] == "http://www.worldofwarcraft.com/realmstatus/status.xml") {
$armory_url = "armory.worldofwarcraft.com";
} else {
$armory_url = "armory.wow-europe.com";
}
$icon_value = '<a href="http://'.$armory_url.'/character-sheet.xml?r='.urlencode($roster_conf['server_name']).'&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'];
}
}
}
function name_value ( $row )
{
global $wordings, $roster_conf, $guildFaction;
$icon_name = 'Interface/Icons/Mail_GMIcon';
if( $roster_conf['realmstatus_url'] == "http://www.worldofwarcraft.com/realmstatus/status.xml") {
$armory_url = "armory.worldofwarcraft.com";
} else {
$armory_url = "armory.wow-europe.com";
}
$icon_value = '<a href="http://'.$armory_url.'/character-sheet.xml?r='.urlencode($roster_conf['server_name']).'&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";
switch ( $row['alt_type'] & 3 )
{
case 0:
$tooltip .= 'Main with alts'."\n";
break;
case 1:
$tooltip .= 'Main without alts'."\n";
break;
case 2:
$tooltip .= 'Alt of '.$row['main_name']."\n";
break;
case 3:
$tooltip .= 'Mainless Alt'."\n";
break;
}
$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'];
}
}
}
$FIELD[] = array (
'armory' => array(
'lang_field' => 'Arm', // Text to appear in the title. It'll use this string if you don't add a line to the enUS.php
'value' => 'armory_link',
),
);
function armory_link($row)
{
global $wordings, $roster_conf;
$icon_name = 'Interface/Icons/Mail_GMIcon';
if( $roster_conf['realmstatus_url'] == "http://www.worldofwarcraft.com/realmstatus/status.xml") {
$armory_url = "armory.worldofwarcraft.com";
} else {
$armory_url = "armory.wow-europe.com";
}
$icon_value = '<a href="http://'.$armory_url.'/character-sheet.xml?r='.urlencode($roster_conf['server_name']).'&n='.$row['name'].'" target="_blank"><img class="membersRowimg" width="16" height="16" src="'.$roster_conf['interface_url'].$icon_name.'.'.$roster_conf['img_suffix'].'" title="Lien vers le profil de l\'Armurerie de wow" alt="" /></a> ';
return $icon_value;
}
Users browsing this forum: No registered users and 0 guests