Sign Up! Login: Password: New User? Forgot? Support
Code 
 
 
Forums 
Forums : Archive > WoW 3D Armory View Box
Berryicewand (Member) 6/10/2009 5:07 PM EST : RE: WoW 3D Armory View Box

Berryicewand
Posts: 21

0
Like

0
Dislike

Well chuffed cheer's Mottie check me site now m8 thax a whole heap 

TopBottom

MorpheusDead (Member) 3/11/2010 9:17 AM EST : RE: WoW 3D Armory View Box

MorpheusDead
Posts: 14

0
Like

0
Dislike

Would you mind checking out my code on my site I am having some trouble I think maybe the api at 3d armory might have changed

prestigeworldwide.guildportal.com

Its on the homepage

problems I am having

The icons for the talents are blank 
gear is not showing up at all along the bottom
the tooltips on the character selector icon along top do not work 

Ty in advance for all you help

the code I used is below

<style type="text/css">
#charName a { font-size:120%; font-weight:bold; color:#1a3a47; }
#charTitle { font-size:110%; color:#1a3a47; }
.toon_layer {display:none;}
.charBoxBar { outline:0px; }
</style>
<div id="charBoxBar" align="center"></div>
<div id="charName" align="center"></div>
<div id="charTitle" align="center"></div>
<script type="text/javascript">
var char = new Array();
 
var charHeight = 400;
var charWidth = 200;
var charTooltipWidth = 150;
var charDetailedInfo = true;
var charDetailedInfoMinimized = true;
 
// Add more characters as follows
// char.push(['NAME','TITLE','3D ARMORY INFO','IMAGE OR TEXT LINK']);
 
char.push(['Jaylbait','Guild Leader','us/aggramar/jaylbait','<img src="http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/hunter.png">']); 
char.push(['Threatmetal','General','us/aggramar/threatmetal','<img src="http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/deathknight.png">']); 
char.push(['Lytebrynger','General','us/aggramar/lytebrynger','<img src="http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/paladin.png">']);
 
// ***************************
// Don't Change Anything Below
// ***************************
for (j=0;j<char.length;j++){
 $('#charBoxBar').append('<a href="javascript:switchchar(' + j + ')" class="tooltip" title="<center>' +
  char[j][0] + '<br>' + char[j][1] + '</center>" rel="' + charTooltipWidth + '">' + char[j][3] + '</a> ');
  ('<scr'+'ipt type="text/javascript" src="' + armoryURL + char[j][2] + '/' + charWidth + '/' + charHeight + '"></scr'+'ipt>');
}
$(document).ready(function(){switchchar(0)});
function showDetails(){$('.toon_details').toggle()}
function switchchar(j){
 $('.toon_layer').each(function(){
     $(this).css('display','none').find('a').css('display','none');
  if (charDetailedInfoMinimized||!charDetailedInfo) $('.toon_details').css('display','none');
  if ($(this).find('a').attr('href').toLowerCase().match(char[j][2].toLowerCase())) {
   $('#charName').html('<a href="http://www.3darmory.com/' + char[j][2] + '">' + char[j][0] + '</a>');
   $('#charTitle').html(char[j][1]);
   $(this).css('display','block');
   if (charDetailedInfo){
    $('#charName').append(' <a onclick="javascript:showDetails()" title="Show/Hide Details" style="cursor:pointer;">*</a>');
   }
  }
 })
}
</script>


TopBottom

Mottie (SuperAdmin) 3/11/2010 2:47 PM EST : RE: WoW 3D Armory View Box
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike

Hi MorpheusDead!

That's for pointing out the trouble, I didn't know they "updated" their layout. I've updated the code and replaced the blocked/missing talent and profession icons.
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

MorpheusDead (Member) 3/11/2010 7:37 PM EST : RE: WoW 3D Armory View Box

MorpheusDead
Posts: 14

0
Like

0
Dislike

most of the customization setting in the first post is now deptricated and a bit confusing now am I right?

TopBottom

Mottie (SuperAdmin) 3/11/2010 9:52 PM EST : RE: WoW 3D Armory View Box
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike

Hi MorpheusDead!

Actually I've incorporated the options into the script, if you want to change it from the default, then you add the option. I made it similar to the talent tree script. Which part is confusing? Maybe I can add a better description in the original post.
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%