NOTE: This was tested and works on version 1.7.3 but my work on any 1.7.x version.
NOTE: Original credit goes to Seleleth for creating the Armory link inside of Roster
Install:
1) Open memberdetails.php
2) Go to line 442, and you should see the following code:
- Code: Select all
if ( $row['server'] )
{
return $tooltip.'<a href="char.php?name='.$row['name'].'&server='.$row['server'].'">'.$row['name'].'</a></div>';
}
else
{
return $tooltip.$row['name'].'</div>';
}
}
else
{
if ( $row['server'] )
{
return '<a href="char.php?name='.$row['name'].'&server='.$row['server'].'">'.$row['name'].'</a>';
}
else
{
return $row['name'];
}
}
}
Replace that code with:
Note: Replace www.wowarmory.com with eu.wowarmory.com for European Servers
- Code: Select all
return $tooltip.'<a href="http://www.wowarmory.com/character-sheet.xml?r='.$roster_conf['server_name'].'&n='.$row['name'].'" target="_blank">'.$row['name'].'</a></div>';
}
else
{
return '<a href="http://www.wowarmory.com/character-sheet.xml?r='.$roster_conf['server_name'].'&n='.$row['name'].'" target="_blank">'.$row['name'].'</a>';
}
}
See it working HERE
Is this the best way to do it? Probably not, but it does work. But for those of you who are sick of lazy members who don't update their info, this is a good fix.
MOD EDIT: Simplified the replacement code since you don't need to check for server when making links to the armory
Also added a note about the EU armory