Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Pimp My Site! > Guild Progression Banner
Rhiannanna (Guild Admin) 12/9/2008 10:42 PM EST : Guild Progression Banner
Rhiannanna
Posts: 1501
Zomgawsh Poster

I imagine some of you are using motties wonderful progression bar in your banner.

I dont know if its been done already but here is the updated coding for WOTLK raid progression (for your guildbar.js)

var classrq = new Array();
var progress = new Array();


/* Progress Bar - Instance and Boss status
********************************************
- Each progression variable is set up as follows:
   progress.push ([
    ["Thumbnail Image URL"],
    ["Instance Name", "Instance Status"],
    ["Instance Boss #1", "Boss #1 Status"],
    ["Instance Boss #2", "Boss #2 Status"],
    ...
    ["Last Instance Boss", "Last Boss Status"]
   ]);
- The "raidingKeyWord" defines the word to match
  in the "Instance Status" to set icon dimmer, the
  text is case sensitive. Default is set to "No"...
  so, the words "No", "Not", "None" and "Noogies"
  will all cause the instance icon to dim.
- The "bossKilledKeyWord" defines the word to match
  to then apply the "killedBoss" and "killedText"
  CSS classes to the text.
- All apostrophes/single quotes (') are replaced
  with "\'". This is required for the
  tooltips to work properly.
******************************************** */
var raidingTitle = "Progression";
var raidingKeyWord = "No";
var bossKilledKeyWord = "Killed";
var raidingImagesPerRow = 11;
var linkToRaidingSite = "http://www.wowjutsu.com/eu/anachronos/The%20Killer%20Carebears";

/* ********************************************
   Wrath of The Lich King
   ******************************************** */
// Naxxramas 10 Man
progress.push ([
 ["http://farm4.static.flickr.com/3185/3058176394_b1a24c2283_o.gif"],
 ["Naxxramas", ""],
 ["Anub\'Rekhan", ""],
 ["Baron Rivendare", ""],
 ["Gluth", ""],
 ["Gothik the Harvester", ""],
 ["Grand Widow Faerlina", ""],
 ["Grobbulus", ""],
 ["Heigan the Unclean", ""],
 ["Instructor Razuvious", ""],
 ["Kel\'Thuzad", ""],
 ["Lady Blaumeux", ""],
 ["Loatheb", ""],
 ["Maexxna", ""],
 ["Noth The Plaguebringer", ""],
 ["Patchwerk", ""],
 ["Sapphiron", ""],
 ["Sir Zeliek", ""],
 ["Thaddius", ""],
 ["Thane Korth\'az", ""]
]);
// Naxxramas 25 Man
progress.push ([
 ["http://farm4.static.flickr.com/3185/3058176394_b1a24c2283_o.gif"],
 ["Naxxramas Heroic", ""],
 ["Anub\'Rekhan (H)", ""],
 ["Baron Rivendare (H)", ""],
 ["Gluth (H)", ""],
 ["Gothik the Harvester (H)", ""],
 ["Grand Widow Faerlina (H)", ""],
 ["Grobbulus (H)", ""],
 ["Heigan the Unclean (H)", ""],
 ["Instructor Razuvious (H)", ""],
 ["Kel\'Thuzad (H)", ""],
 ["Lady Blaumeux (H)", ""],
 ["Loatheb (H)", ""],
 ["Maexxna (H)", ""],
 ["Noth The Plaguebringer (H)", ""],
 ["Patchwerk (H)", ""],
 ["Sapphiron (H)", ""],
 ["Sir Zeliek (H)", ""],
 ["Thaddius (H)", ""],
 ["Thane Korth\'az (H)", ""]
]);
// Eye Of Eternity 10 Man
progress.push ([
 ["http://farm4.static.flickr.com/3143/3058176424_2a6f023221_o.gif"],
 ["Eye of Eternity", ""],
 ["Malygos", ""]
]);
// Eye Of Eternity 25 Man
progress.push ([
 ["http://farm4.static.flickr.com/3143/3058176424_2a6f023221_o.gif"],
 ["Eye of Eternity Heroic", ""],
 ["Malygos (H)", ""]
]);
// The Obsidian Sanctum 10 Man
progress.push ([
 ["http://farm4.static.flickr.com/3249/3058176408_9a43c7c0da_o.gif"],
 ["The Obsidian Sanctum", ""],
 ["Satharion", ""]
]);
// The Obsidian Sanctum 25 Man
progress.push ([
 ["http://farm4.static.flickr.com/3249/3058176408_9a43c7c0da_o.gif"],
 ["The Obsidian Sanctum Heroic", ""],
 ["Satharion (H)", ""]
]);


/* ********************************************
   Don't change anything below
   ******************************************** */
// Recruitment bar
var sQ = "\'";
var rb = "<div><a href=\"" + linkToRecruitmentPost + "\">" + recruitTitle + "</a></div>";
 for (var j=0; j<classrq.length; j++) {
  rb += "<a href=\"" + linkToRecruitmentPost;
  rb += "\" =\"ddrivetip('<span class=recruitToolTip>";
  rb += classrq[j][1].replace(/\'/g,sQ);
  rb += "</span><br>" + classrq[j][2].replace(/\'/g,sQ);
  rb += "', '', '300');\" =\"hideddrivetip()\"><img src=\"";
  rb += classrq[j][0].replace(/\'/g,sQ) + "\"";
   if (classrq[j][2].match(recruitKeyWord)) { rb += " class=dim"; }
  rb += "></a>";
 if ( (j+1)%recruitImagesPerRow == 0 ) { rb += "<br>"; }
 }
 rb += '</a>';

// Progression Bar
var pb = "<div><a href=\"" + linkToRaidingSite + "\">" + raidingTitle + "</a></div>";
 for (var inst=0; inst < progress.length; inst++) {
  pb += "<a href=\"" + linkToRaidingSite;
  pb += "\" =\"ddrivetip('<table><tr><td class=raidingToolTip width=200px>";
  pb += progress[inst][1][0].replace(/\'/g,sQ) + "</td><td>" + progress[inst][1][1].replace(/\'/g,sQ) + "</td></tr>";
  for (var boss=2; boss < (progress[inst].length); boss++) {
   if (progress[inst][boss][1].match(bossKilledKeyWord)) {
    pb += "<tr><td class=killedBoss>" + progress[inst][boss][0].replace(/\'/g,sQ) + "</td><td class=killedText>";
   } else {
    pb += "<tr><td class=toKillBoss>" + progress[inst][boss][0].replace(/\'/g,sQ) + "</td><td>";
   }
  pb += progress[inst][boss][1] + "</td></tr>";
  }
  pb += "</table>', '', '300');\" =\"hideddrivetip()\"><img src=\"";
  pb += progress[inst][0] + "\"";
   if (progress[inst][1][1].match(raidingKeyWord) || (progress[inst][1][1] == "" && progress[inst][2][1] == "")) pb += " class=dim";
  pb += "></a>";
   if ( (inst+1)%raidingImagesPerRow == 0 ) { pb += "<br>"; }
 }
 pb += "</a>";
 document.getElementById('recruitBar').innerHTML = rb;
 document.getElementById('raidingBar').innerHTML = pb;


TopBottom

Mottie (MVP) 12/10/2008 6:37 AM EST : RE: Guild Progression Banner
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Hi Rhiannanna!

Thanks for posting this! It's a variation from one I did update for WotLK, it's modified from the original in that it displays both the 10 and 25 man raid status in two columns (see it here). There are some other subtle differences, such as I named a raid as "The Chamber of Aspects" versus "The Obsidian Sanctum" in case they do add more instances in that area.
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%