How to add a WoW Mini Armory

First of all, I don't mean to tromp on Jizmak-Rebirth's version of the mini-armory. But since MMOGuildsites hasn't updated their armory since the expansion I decided to write one that would work with multiple sites.

I also apologize since I set this up to work with sites that will show data from the U.S. (US), Europe (EU), Korea (KR), China (CN) and Tiawan (TW)... but not all sites in the list support all of these regions. And frankly, I'm not modivated enough to set it up this way... the sites that don't support other regions will just return an error... lets just say, this code is already set up to allow for those sites future expandibility - hehe.

Copy (Ctrl-C) the code below and paste (Ctrl-V) it into a free form text/HTML box on your site while in HTML mode () or by right clicking in the editor box and choosing "Paste As Html". See it in action on my test-site Warcraf tab.

Customizing

The input and select box styles are set in the CSS with the following code, change the color by modifying the text in blue.

Change the width of the horizontal bar (text is in red in the CSS and the default is 500px), or hide it by adding "display:none;"). Or you can adjust the width of the input boxes for both the server name (default is 100px) and the character name (default is 137px) - these are also in red.

The code in green is the HTML for the containers. There is no need to modify this.

You can set the default region, server & armory in the script by changing the code below (in purple). There are two variables for server location and name, the second one is the default for the compare boxes.

The server location (ServerLoc) can be set to the following regions: U.S. (US), Europe (EU), Korea (KR), China (CN) and Tiawan (TW). This variable is not case-sensitive.

The default armory site is set with the variable below. The text in purple must match the site's URL. So Quick Armory's URL is "http://www.quickarmory.com/", therefore the variable below must have "quickarmory". WoW Heroes' URL is "http://www.wow-heroes.com/" so the variable must be "wow-heroes".

*DO NOT include any periods in this variable*

defaultArmory = 'quickarmory';

Each site has a different width, you can adjust the size of the frame by editing the last number in the armorySite variable (in red). Below, the ArmoryLite site frame is set to be 560 pixels wide.

armorySite.push(["ArmoryLite","http://armorylite.com/","560"]);

All the sites share the same frame height variable. Adjust how tall the frame is with this variable, default is set to 940 pixels:

armoryHeight = 940;

If you'd like to add more sites to this list, please post a request in this thread.

Characters: MottieMottyMortieOoshinyMotFudgems

•

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 )

If your tooltips are not working or only show gibberish (raw HTML) then you are most likely missing the updated tooltip script. Add the following to your Footer Area (Control Panel > Custom HTML & Scripts > Footer Area)