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
Mottie (MVP) 8/16/2010 7:09 PM EST : WoW Calendar on GP
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

WoW Calendar on GuildPortal

Dethmaul posted on my Help Site about adding a WoW Armory page in a frame. I modified the code he provided.

Add the following code into a free form text/HTML type widget while in HTML mode.

Code
<script type="text/javascript">
$(document).ready(function(){

 var guildName = "The Guild Name";
 var realm = "Arathor";

 var useFrame = true;
 var frameWidth = "100%";
 var frameHeight = "600";

/******************************
  Don't change anything below
 ******************************/

  $('.wowcharcal').click(function(){
  var f, name = prompt("Please enter your charcter name","");
  if ( name != null && name != '' ){
   if (useFrame) {
    f = "<iframe width=\"" + frameWidth + "\" height=\"" + frameHeight + "\" src=\"http://www.wowarmory.com/vault/character-calendar.xml?r=" +
     realm.replace(/\s/g,'+') + "&gn=" + guildName.replace(/\s/g,'+') + "&cn=" + name + "\" scrolling=\"auto\" frameborder=\"0\" align=\"top\" " +
     "allowtransparency=\"true\"></iframe>";
    $('.wowcal').html(f);
   } else {
    f = "http://www.wowarmory.com/vault/character-calendar.xml?r=" + realm.replace(/\s/g,'+') + "&cn=" + name + "&gn=" +
     guildName.replace(/\s/g,'+')
    window.open(f);
   }
  }
  return false;
 });
});
</script>
<div class="wowcal" style="text-align:center">
 <a class="wowcharcal" href="#"><img alt="" src="http://www.axiomfiles.com/Files/278466/icon-armory.png" /></a>
 <br />
 <div>Click on the image above , type your character name in the prompt, then login and it will take you straight to the calendar for that character.</div>
</div>
Customizing
  • If the value of "useFrame" is true, the calendar will open in an iframe in place of the button. If false, the calendar will open in a new window/tab.
  • Change the text in blue to match your Guild Name and Realm; include spaces and apostrophes.
  • Adjust the frame size in red to better match your site. The width of the armory is a bit over 1000 pixels, so you should put it in a tab where there are no side zones.
Updated (11/17/2010): Added "useFrame" variable.
TopBottom

kaelendraa (New Admin) 12/12/2010 10:48 PM EST : RE: WoW Calendar on GP

kaelendraa
Posts: 31
Becoming Adept!

doesn't seem to work thanks to the 'new armory'/battlenet change
TopBottom

Mottie (MVP) 12/13/2010 9:56 AM EST : RE: WoW Calendar on GP
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

kaelendraa said:
doesn't seem to work thanks to the 'new armory'/battlenet change


Sadly there are a lot of things that don't work now because of the new armory... give me some time to find and work on them
TopBottom

Leorad1 (New Admin) 4/5/2011 11:04 AM EST : RE: WoW Calendar on GP

Leorad1
Posts: 126
Posts With Wolves

Any updates on how this is going?
TopBottom

Mottie (MVP) 4/9/2011 9:52 AM EST : RE: WoW Calendar on GP
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

Hi Leorad1!

Yeah this isn't going to happen... even putting the battlenet page in frame doesn't work - it just gives you a blank page. I have no idea when Blizzard will stop counting the money they are raking in and provide us a feed for the battle net info.
TopBottom

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