Sign Up! Login: Password: New User? Forgot? Support
Code 
 
 
Forums 
Forums : Archive > Replacing WoW Roster Ranks
Mottie (SuperAdmin) 12/31/2008 9:20 AM EST : Replacing WoW Roster Ranks
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike


NOTE: The new Roster System that uses the GPHelper addon does this automatically now.. YAY for progress!!

Replacing World of Warcraft Roster Ranks

GuildPortal admin site link to the original post



The following script replacing the "Rank 0" with the rank title that you set.

Copy (Ctrl-C) this code and paste (Ctrl-V) it into a free form text/HTML box somewhere on your roster page (make sure you paste it while the editor is in HTML mode () or right click in the editor and select "Paste As Html"), or you can paste this into the footer.

Code

<script type="text/javascript">
$(document).ready(function() {
 var ranks = new Array();
 ranks.push (["Rank 0","Guild Leader"]);
 ranks.push (["Rank 1","Consul"]);
 ranks.push (["Rank 2","Officer"]);
 ranks.push (["Rank 3","Raid Leader"]);
 ranks.push (["Rank 4","Class Leader"]);
 ranks.push (["Rank 5","Raider"]);
 ranks.push (["Rank 6","Non-Raider"]);
 ranks.push (["Rank 7","Member"]);
 ranks.push (["Rank 8","New Member"]);
 ranks.push (["Rank 9","Probation"]);

 $("#tblWowRoster").find("tr:gt(1)").find("td:eq(3)").each(function(){
  for (j=0; j < ranks.length; j++) {
   if ($(this).html().match(ranks[j][0])) $(this).html(ranks[j][1]);
  }
 })
});
</script>

Customizing

  • Add the corresponding guild rank name (in blue) to the rank number (in green)
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

 
 
Key 
New posts No new posts
New posts ( popular ) No new posts ( popular )
New posts ( sticky ) No new posts ( sticky )
New posts ( locked ) No new posts ( locked )
 
 
Who's Online 
There are   members online.
 
 
So-and-so has logged on!
%title%
%message%