Sign Up! Login: Password: New User? Forgot? Support
Code 
 
 
Forums 
Forums : Calendar & Events > Calendar Sign-Up Class Icons
Grumpy_Warrior_01 (Applicant) 8/6/2012 6:19 PM EST : Calendar Sign-Up Class Icons
Grumpy_Warrior_01
Posts: 1925

0
Like

0
Dislike


Hello Mottie, like everyone else I'm a big fan of everything you do for the GuildPortal community.  The Event Calendar has gotten quite a lot of tweaking over the past several months, and one of the newer features could be much more useful to my guild if I could only figure out how to adjust it.  EverQuest II has 25 different character classes, and each player who signs up for an event on my site gets the correct icon (from GuildPortal) next to their character's name.  Unfortunately, the icons are quite small, and even if they were larger the specific class icon doesn't really register as anything useful to the folks viewing the calendar.  It's basically just 25 little blobs that all look the same.

On the other hand, those EQII classes belong to one of four archetypes -- mage, priest, scout and fighter.  The in-game raid window uses these archetype symbols rather than the class symbols, and players know a lot about the class mix immediately upon seeing these simplified icons.  So my question is, could you give me a hint about how to switch out the built-in GuildPortal class icons on the Calendar with the more informative EQII archetype icons that are in my file area?  Examples of the four archetypes are below.  Much gratitude if you can offer any help on this!

 



TopBottom

Mottie (SuperAdmin) 8/7/2012 2:51 AM EST : RE: Calendar Sign-Up Class Icons
ACK!
Mottie
Posts: 3883

0
Like

0
Dislike

Hi Grumpy_Warrior_01!

Thanks for the compliments

It should be possible to replace images. I took a look at your site and noticed that the calendar wasn't publicly visible. Would it be possible for me to join up just to see the calendar and figure out what I have to work with?
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

Grumpy_Warrior_01 (Applicant) 8/7/2012 8:32 AM EST : RE: Calendar Sign-Up Class Icons
Grumpy_Warrior_01
Posts: 1925

0
Like

0
Dislike


Mottie, absolutely!  (And if you have a nice level 92 dirge or coercer, let's talk!)  ppbbtt

Thank you much, will watch for your app!




TopBottom

Mottie (SuperAdmin) 8/9/2012 11:41 AM EST : RE: Calendar Sign-Up Class Icons
ACK!
Mottie
Posts: 3883

0
Like

0
Dislike

Hi Grumpy_Warrior_01!

I don't know how much of a demand for this, so I'll just share the code instead of making a mod.

Add the following code to your custom script (Control Panel > Custom HTML & Script > Custom JS/JQuery > Document Ready Event tab)
if ($('.gpWidget-calendar').length) {
    var j, klass,
    ref = {
        mage    : ['Wizard', 'Warlock', 'Conjuror', 'Illusionist', 'Necromancer', 'Coercer'],
        priest  : ['Fury', 'Warden', 'Templar', 'Mystic', 'Inquisitor', 'Defiler'],
        scout   : ['Troubador', 'Dirge', 'Ranger', 'Swashbuckler', 'Assassin', 'Brigand'],
        fighter : ['Berserker', 'Guardian', 'Paladin', 'Monk', 'Shadowknight', 'Bruiser']
    };
    $('.gpWidget-calendar').find('table[class*="signupsTable"]').find('tr:gt(1)').each(function(){
        klass = $.trim( $(this).children('td').eq(4).text() );
        for (j in ref) {
            if (ref.hasOwnProperty(j)) {
                if ($.inArray( klass, ref[j]) >= 0) {
                    $(this).find('img').attr('src', 'http://www.axiomfiles.com/Files/128664/ui-' + j + '.gif');
                    break;
                }
            }
        }
    });
}

That's it! Now go to any Calendar Event and it will replace the default icon with the archetypes
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

Grumpy_Warrior_01 (Applicant) 8/12/2012 7:03 PM EST : RE: Calendar Sign-Up Class Icons
Grumpy_Warrior_01
Posts: 1925

0
Like

0
Dislike


    Perfect, thank you Mottie!  The archetype icons will be much more useful for our folks.  Cheers!

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%