Fantawesome and Gkstuff.css and gkscrip.js

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Oct 13, 2013 10:35 am
Reply with quote
Report this post
Hi.
I want to add two new icons from fant-awesome in the module,
maybe its just Sunday morning and i can't see
but as far as i tried i got no luck

Can you help me finding in this code where i'm making mistakes?
Ok.
Basically i want to add the icon-group (f0c0) as a surrogate of MySpace
and the icon-headphones (f025) as a surrogate for SoundCloud

So i modded the gkstuff.css at line 753

753.jpg


like this
Code: Select all
}
.gkContactSocialIcons > a:hover:before {
  background: #7484ff;
  border-color: #7484ff;
  color: #fff;
}
.gkContactFbIcon:before {
  content: '\f09A';
}
.gkContactTwitterIcon:before {
  content: '\f099';
}
.gkContactGplusIcon:before {
  content: '\f0d5';
}
.gkContactLinkedinIcon:before {
  content: '\f0e1';
}
.gkContactPinterestIcon:before {
  content: '\f0d2';
}
.gkContactRssIcon:before {
  content: '\f09e';
}
.gkContactHeadphonesIcon:before {
  content: '\f025';
}
.gkContactGroupIcon:before {
  content: '\f0c0';
}


/* Frontpage elements */



and then at line 1028
1028.jpg



Code: Select all
.gkTeamOverlay > a:before {
  color: #fff;
  display: block;
  font-family: FontAwesome;
  font-size: 28px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  text-indent: 0!important;
  width: 50px;
}

.gkTeamOverlay a[data-type="fb"]:before {
  content: '\f09A';
}

.gkTeamOverlay a[data-type="twitter"]:before {
  content: '\f099';
}

.gkTeamOverlay a[data-type="gplus"]:before {
  content: '\f0d5';
}

.gkTeamOverlay a[data-type="linkedin"]:before {
  content: '\f0e1';
}

.gkTeamOverlay a[data-type="pinterest"]:before {
  content: '\f0d3';
}

.gkTeamOverlay a[data-type="group"]:before {
  content: '\f0c0';

}

.gkTeamOverlay a[data-type="headphones"]:before {
  content: '\f025';
}







/* Team - animation */



and this for the gkstuff.css

Then i've modded the .js
like this

Code: Select all

// team overlays
   if(jQuery(document).find('.gkTeam')) {
      var figures = jQuery(document).find('.gkTeam figure');
      
      jQuery(figures).each(function(i, figure) {
         figure = jQuery(figure);
         if(
            figure.attr('data-fb') != undefined ||
            figure.attr('data-twitter') != undefined ||
            figure.attr('data-gplus') != undefined ||
                              figure.attr('data-linkedin') != undefined ||
                              figure.attr('data-pinterest') != undefined ||
                              figure.attr('data-headphones') != undefined ||
                              figure.attr('data-group') != undefined ||


           ) {
            var overlay = new jQuery('<div class= "gkTeamOverlay"></div>');

            var htmloutput = '';
            var classcounter = 0;
            
            if(figure.attr('data-fb') != undefined) {
               htmloutput += '<a href="'+figure.attr('data-fb')+'" data-type="fb">Facebook</a>';
               classcounter++;
            }
            
            if(figure.attr('data-twitter') != undefined) {
               htmloutput += '<a href="'+figure.attr('data-twitter')+'" data-type="twitter">Twitter</a>';
               classcounter++;
            }
            
            if(figure.attr('data-gplus') != undefined) {
               htmloutput += '<a href="'+figure.attr('data-gplus')+'" data-type="gplus">Google+</a>';
               classcounter++;
            }

                               if(figure.attr('data-linkedin') != undefined) {
                         htmloutput += '<a href="'+figure.attr('data-linkedin')+'" data-type="linkedin">Linkedin</a>';
               classcounter++;
               }

                              if(figure.attr('data-pinterest') != undefined) {
               htmloutput += '<a href="'+figure.attr('data-pinterest')+'" data-type="pinterest">Pinterest</a>';
               classcounter++;
               }

                              if(figure.attr('data-headphones') != undefined) {
               htmloutput += '<a href="'+figure.attr('data-headphones')+'" data-type="headphones">Headphones</a>';
               classcounter++;
               }
                              if(figure.attr('data-group') != undefined) {
               htmloutput += '<a href="'+figure.attr('data-group')+'" data-type="group">Group</a>';
               classcounter++;
               }

            
            jQuery(overlay).html(htmloutput);




but its not working...
Can you help me?

Have a good Sunday.

Emanuel
User avatar
Gold Boarder

teitbite
Tue Oct 15, 2013 12:38 am
Reply with quote
Report this post
Hi

The code You are showing me look fine, but have You also updated module's html ? Please remember to disable editor while making this since html5 code will be stripped on save.
User avatar
Moderator

GK User
Tue Oct 15, 2013 8:19 am
Reply with quote
Report this post
you'right i didn't do any change to the html,
the custom one isn't it?
just put gk and js to see if they were working
but what i saw was all the images in single column
in vertical..
User avatar
Gold Boarder

GK User
Tue Oct 15, 2013 8:51 am
Reply with quote
Report this post
This is the working html code i have now.
Code: Select all
  <div class="gkTeam col4 animate_queue">
<figure data-fb="https://www.facebook.com/cooperam.musicoterapia?ref=tn_tnmn" data-twitter="https://twitter.com/cooperativaeram" class="animate_queue_element"data-gplus="https://plus.google.com/u/0/114199065921921588696/posts" class="animate_queue_element">
      <img src="images/demo/about/2.jpg" border="0" alt="CINZIA BLANC" />
      <figcaption>
         <h3>Cinzia Blanc</h3>
         <small>Presidente</small> </figcaption>
   </figure>
   
   <figure  data-gplus="https://plus.google.com/u/0/114199065921921588696/posts" data-twitter="https://twitter.com/altherekho" data-linkedin="http://it.linkedin.com/pub/emanuele-irenei/45/336/a87/" class="animate_queue_element">
      <img src="images/demo/about/3.jpg" border="0" alt="EMANUELE IRENEI" />
      <figcaption>
         <h3>Irenei Emanuele</h3>
         <small>Vice Presidente</small> </figcaption>
   </figure>
   <figure data-gplus="https://plus.google.com/u/0/114199065921921588696/posts" data-twitter="https://twitter.com/cooperativaeram" data-fb="https://www.facebook.com/cooperam.musicoterapia?ref=tn_tnmn" class="animate_queue_element">
      <img src="images/demo/about/4.jpg" border="0" alt="Eddy Doe" />
      <figcaption>
         <h3>Tania Dondoli</h3>
         <small>Membro del Cda</small> </figcaption>
   </figure>
   <figure data-twitter="https://twitter.com/cooperativaeram" data-gplus="https://plus.google.com/u/0/114199065921921588696/posts" data-fb="https://www.facebook.com/cooperam.musicoterapia?ref=tn_tnmn"class="animate_queue_element">
      <img src="images/demo/about/1.jpg" border="0" alt="Robert Frost" />
      <figcaption>
         <h3>Aldo Viti</h3>
         <small>Socio Operativo</small> </figcaption>
   </figure>
 
   <figure data-fb="https://www.facebook.com/cooperam.musicoterapia?ref=tn_tnmn" data-twitter="https://twitter.com/cooperativaeram" class="animate_queue_element"data-gplus="https://plus.google.com/u/0/114199065921921588696/posts" class="animate_queue_element">
      <img src="images/demo/about/5.jpg" border="0" alt="MAURO M. DE LILLO" />
      <figcaption>
         <h3>Mauro M. de Lillo</h3>
         <small>Socio Operativo</small> </figcaption>
   </figure>
 
    <figure data-fb="https://www.facebook.com/cooperam.musicoterapia?ref=tn_tnmn" data-twitter="https://twitter.com/cooperativaeram" class="animate_queue_element"data-gplus="https://plus.google.com/u/0/114199065921921588696/posts" class="animate_queue_element">
      <img src="images/demo/about/6.jpg" border="0" alt="COMMERCIALE" />
      <figcaption>
         <h3>Segreteria</h3>
         <small>Commerciale</small> </figcaption>
   </figure>
     
  </div>


Basically you were telling me that if html code doesn't reflect the mods the module goes messing after?
What about the rss then ,i don't use it in the html but its called in those files
Showing a pillar of thumbnails one over the below i mean?
Seems more reasonable to think i've actually messed something :oops: in the code of gk and js,
so can i send you both files in order to be more at ease with a revise of them having them completely?
Or were you talking about the html in the module..in the "system files" of the module itself ?
Thanks a lot.
User avatar
Gold Boarder

teitbite
Wed Oct 16, 2013 3:06 pm
Reply with quote
Report this post
Hi

I was talking about HTML inside module, but I'm not a compiler :) so there may also be an error in code which I do not see. Please send me ftp and joomla panel access so I'll try to make it and will see what can be wrong.
User avatar
Moderator

GK User
Wed Oct 16, 2013 3:10 pm
Reply with quote
Report this post
Ok.Just give me some minute.Need to complete some tasks before^^
but thanks.
As for now,there's no that code in the files but just the old working,which is
already fine
User avatar
Gold Boarder

teitbite
Thu Oct 17, 2013 5:21 pm
Reply with quote
Report this post
Hi

Was Your PM about Norman helping You related with this thread or a different one. Can You please present what the solution was in case someone else will be looking for the same answer ?
User avatar
Moderator

GK User
Thu Oct 17, 2013 5:31 pm
Reply with quote
Report this post
No it wasn't ,sorry i haven't time to contact you
and i have to go quite fast also now,
i'll tell you more tomorrow,
in the meanwhile thank you guys
for all ! .
User avatar
Gold Boarder

teitbite
Thu Oct 17, 2013 5:35 pm
Reply with quote
Report this post
Hi

Ok. No problem, please take Your time. I'll be waiting :)
User avatar
Moderator

teitbite
Sun Oct 27, 2013 4:23 pm
Reply with quote
Report this post
Hi

It's bad to hear You were sick. I hope everything is better now. Do not worry, we can start with this question when you will be ready.
User avatar
Moderator

GK User
Sun Oct 27, 2013 6:21 pm
Reply with quote
Report this post
you're very gentle,
as you can see here now i'm better,
tomorrow we will start to talk again ok?
thank for your time and your kindness,
have a good sunday you all
User avatar
Gold Boarder

GK User
Tue Oct 29, 2013 9:51 am
Reply with quote
Report this post
I realized i no longer need to add myspace and soundcloud but just a social bar full of badges to replace
the one i had in my rip gkcontact pluggin....
replaced with my WUFOO !!
So thanks for your patience.

Have nice day.
User avatar
Gold Boarder

teitbite
Wed Oct 30, 2013 1:16 am
Reply with quote
Report this post
Hi

Ok. So this is a self-solved question ? :) Can we close it ?
User avatar
Moderator

GK User
Wed Oct 30, 2013 1:23 am
Reply with quote
Report this post
Yes i think so,while it would have been interesting to understand why or how
now i haven't much time so i don't wanna take you here holding for me,
then as i wrote being forced by Spam to replace the gkcontact form with the
wufoo.com one now i took the decision to put a bar below of it with all the
social badges,so,yes,for me its ok to close it.
User avatar
Gold Boarder

teitbite
Wed Oct 30, 2013 1:31 am
Reply with quote
Report this post
Hi

Ok. Thread closed than.
User avatar
Moderator


cron