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! > calendar icons
chefricochet (Guild Admin) 10/10/2008 8:24 PM EST : calendar icons
chefricochet
Posts: 209
Fingers of Fury!

Hey Mottie; If you type the name of the raid first,by the word "flagging" ( no comma); You'll get both icons on the main event  calendar. But... it won't show up on the mini calendar as per our discussion! The code is recognizing both words, the name of the raid, and, flagging! But as I stated, the name of the raid must come first!
 I guess it's the wysiwyg format that reads the main reference first!
So, my idea, is to increase the size of the mini event box, to accommodate both icons!
 What do you think? Is it a size thing? Or, something all together different.
  I realize we are nit picking, but I think you need something else to focus on for a day or 2!
 The following post has the link to my event page.
 


67
7:00 PM
Flagging
5:00 PM
Shroud
8:00 PM
Favor Run
8
8:00 PM
Titan
8:00 PM
Bounty hunter
91011
10:00 AM
Favor Run
12131415161718
19202122232425
2627282930
Please note, that the icons on this post, might appear not to be side by side, because of the size allotted.

Laggin
If you love something, set it free! If it doesn't come back; hunt it down, and kill it!
TopBottom

chefricochet (Guild Admin) 10/10/2008 8:28 PM EST : RE: calendar icons
chefricochet
Posts: 209
Fingers of Fury!

  Just go to the site ya'll, and have a peak!
http://chainmail.guildportal.com/Guild.aspx?GuildID=251729&TabID=2116512
  The entry for the 13th, shows the phenom! It's a reaver raid flagging night! The other entries are before this discovery! (except for)... Oct 6th, the first entry to show the instance! It's a Titan Flagging night.
  Mottie and I, had no clue how the icons, both showed up "correctly".?

Laggin
If you love something, set it free! If it doesn't come back; hunt it down, and kill it!
TopBottom

Mottie (MVP) 10/11/2008 3:10 AM EST : RE: calendar icons
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

Heya Chefricochet!

I got your new code here... I also updated it in the Calendar Icon's post.

One other thing that I changed that you should know - I moved the "flagging" event icon to the bottom of the list. This puts the flagging icon AFTER the raid icon, since the script starts at the top of that list and moves down.
<div id="tempvar" style="display:none;"/>
<script type="text/javascript">
$(document).ready(function() {
 var events = new Array();
 
 events.push(["Favor Run","http://i299.photobucket.com/albums/mm299/chefricochet/5c054b59.gif"]);
 events.push(["Demon Queen","http://i299.photobucket.com/albums/mm299/chefricochet/animated/b8dadb93.gif"]);
 events.push(["Tempest spine","http://i299.photobucket.com/albums/mm299/chefricochet/animated/2bf0af1b.gif"]);
 events.push(["Bounty hunter","http://i299.photobucket.com/albums/mm299/chefricochet/animated/raid.gif"]);
 events.push(["Black abbott","http://i299.photobucket.com/albums/mm299/chefricochet/animated/Druid-03-june.gif"]);
 events.push(["Titan","http://i299.photobucket.com/albums/mm299/chefricochet/animated/Monster-02-june.gif"]);
 events.push(["Von","http://i299.photobucket.com/albums/mm299/chefricochet/animated/Dragon-17-june.gif"]);
 events.push(["Shroud","http://i299.photobucket.com/albums/mm299/chefricochet/animated/Demon-03-june.gif"]);
 events.push(["Reaver","http://i299.photobucket.com/albums/mm299/chefricochet/animated/067eed10.gif"]);
 events.push(["Flagging","http://i299.photobucket.com/albums/mm299/chefricochet/animated/74d0c3ce.gif"]);

 events.push(["birthday|Birthday","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/birthday.gif"]);
 events.push(["Fun event|fun event","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/fun.gif"]);
 events.push(["quest|Quest","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/quest.gif"]);
 events.push(["Unk|unk","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/unknown.gif"]);

/*
***************************************
 Don't change anything below this line!
*************************************** */

 // Main Calendar
 $(".CenterContentZone").find("#tblMonthlyCalendarTable").find(".NormGridRow,.AltGridRow").each(function() {
  addIcons($(this),"right","56","56");
 });
 // Events Box
 $("a").each(function() {
     $("#tempvar").html("");
  if ($(this).attr("title").match("details of this event on the Calendar")) {
   $(this).parent().css("width","130").removeClass("NormGridRow").removeClass("AltGridRow")
    .unbind().parent().attr("align","center");
   addIconsOnly($(this).parent(),"","56","56");
   $(this).parent().html($("#tempvar").html());
  }
 }); // Side Calendar (Mini)
 $(".LeftContentZone,.RightContentZone").find("#monthlyCalendarCalendarColumn").find("table:eq(0)").each(function() {
 try {
   $(this).find(".NormGridRow,.AltGridRow").each(function() {
     var evtTitle = "<div>" + $(this).find("a").text().replace("'","&#39;") + "</div>";
     var divTitle = evtTitle + $(this).attr("title").replace("(","<br>(");
     var evtTooltp = "ddrivetip('" + divTitle + "', '', '210');"
    $(this).attr("title","").attr("",evtTooltp).attr("","hideddrivetip();"); // event tooltip
    $(this).html(evtTitle); // replace date contents with just the event, for addIcons function
    addIcons($(this),"right",16,16);
    $(this).removeClass("NormGridRow").removeClass("AltGridRow").unbind().children("div").remove();
    $(this).css("border-width","0px").css("padding-right","5px").css("margin","0px"); // hides border around the events
   });
   $(this).attr("title",""); // remove the "calendar" title popup
   $(this).find(".ContentBoxTitle").parent().css("height","10px").css("font-size","7pt");
   $(this).find("tr:gt(2)").find("td").css("min-width","22px").css("height","30px").css("font-size","8pt").css("align","center");
   $(this).find("a:contains('Prev Month')").html("&lt;");
   $(this).find("a:contains('Next Month')").html("&gt;");
 } catch(e) {}
 });

 function addIcons (box,imgAlign,imgWidth,imgHeight) {
  for (var j=0; j < events.length; j++ ) {
   if (box.html().match(events[j][0])) {
    var temp = "<img align='" + imgAlign + "' src='" + events[j][1];
    temp += "'width='" + imgWidth + "' height='" + imgHeight + "'>";
    box.html( temp + box.html() );
   }
  }
  return true;
 }
 function addIconsOnly (box,imgAlign,imgWidth,imgHeight) {
  for (var j=0; j < events.length; j++ ) {
   if (box.html().match(events[j][0])) {
    var temp = "<img align='" + imgAlign + "' src='" + events[j][1];
    temp += "'width='" + imgWidth + "' height='" + imgHeight + "'>";
    $("#tempvar").html( $("#tempvar").html() + temp );
   }
  }
  return true;
 }
});
</script>
TopBottom

chefricochet (Guild Admin) 10/11/2008 4:14 AM EST : RE: calendar icons
chefricochet
Posts: 209
Fingers of Fury!

Once again you've shown me why I'm a chef! And you? A magician! TY bud!
   


5d7b1aeb.gif image by chefricochet


Laggin
If you love something, set it free! If it doesn't come back; hunt it down, and kill it!
TopBottom

Kaysi (Guild Admin) 10/12/2008 12:30 AM EST : RE: calendar icons

Kaysi
Posts: 445
Fingers of Fury!

Random Question for you Chef 

    The dragon on your calendar page, is that Onxyia?
Miria Signature
"I can heal any flashpoint, quest, or player, but I can't heal stupidity."
TopBottom

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