Speakers module on the frontpage issue

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
Mon Oct 08, 2012 3:51 pm
Reply with quote
Report this post
Hello,

First of all, congratulations for this template !

I have a little question about the speakers module of the front page.
I would like the 5 items displayed to be "fixed" in a precise postion so without the animation of change of position. I didn't succeed to make it, I thought it was the parameter of auto animation in the module, but when I set this parameter on off, I still have the animation. Also, if I have less than 6 items linked to this module, it stops working

Sans-titre-1.jpg


Can you please help me ?

Thanks a lot

Sandra
User avatar
Senior Boarder

GK User
Mon Oct 08, 2012 5:01 pm
Reply with quote
Report this post
Hi,

In general this module was prepared for more speakers ;) But I can help you - please open the interface/scripts/engine.portal.mode.6.js file in the NSP directory and please change the following fragment:

Code: Select all
// if there is more than 5 slides
      if(this.total > 5) {
         // prepare handlers
         this.items[0] = module.getElement('.nspSpeakers .nspSpeakersSmallLeft .nspSpeakerSmall');
         this.items[1] = module.getElement('.nspSpeakers .nspSpeakersSmallLeft').getElements('.nspSpeakerSmall')[1];
         this.items[2] = module.getElement('.nspSpeakers .nspSpeakerBig');
         this.items[3] = module.getElement('.nspSpeakers .nspSpeakersSmallRight .nspSpeakerSmall');
         this.items[4] = module.getElement('.nspSpeakers .nspSpeakersSmallRight').getElements('.nspSpeakerSmall')[1];
         //
         this.availableItems = module.getElements('.nspRestSpeakers .nspSpeaker');
         //
         var $this = this;
         //
         this.items.each(function(el, i) {
            el.removeClass('speakerHide');
         });
         // run the animation
         setTimeout(function() {
            $this.gkChangeSpeakers();      
         }, this.anim_interval + 400);
         
         this.items.each(function(el, i) {
            el.addEvent('mouseenter', function() {
               $this.hover = true;
            });
            
            el.addEvent('mouseleave', function() {
               $this.hover = false;
            });
         });
      }


for:

Code: Select all
// if there is more than 5 slides
      if(this.total >= 5) {
         // prepare handlers
         this.items[0] = module.getElement('.nspSpeakers .nspSpeakersSmallLeft .nspSpeakerSmall');
         this.items[1] = module.getElement('.nspSpeakers .nspSpeakersSmallLeft').getElements('.nspSpeakerSmall')[1];
         this.items[2] = module.getElement('.nspSpeakers .nspSpeakerBig');
         this.items[3] = module.getElement('.nspSpeakers .nspSpeakersSmallRight .nspSpeakerSmall');
         this.items[4] = module.getElement('.nspSpeakers .nspSpeakersSmallRight').getElements('.nspSpeakerSmall')[1];
         //
         this.availableItems = module.getElements('.nspRestSpeakers .nspSpeaker');
         //
         var $this = this;
         //
         this.items.each(function(el, i) {
            el.removeClass('speakerHide');
         });
         // run the animation
         //setTimeout(function() {
         //   $this.gkChangeSpeakers();      
         //}, this.anim_interval + 400);
         
         this.items.each(function(el, i) {
            el.addEvent('mouseenter', function() {
               $this.hover = true;
            });
            
            el.addEvent('mouseleave', function() {
               $this.hover = false;
            });
         });
      }
User avatar
Administrator

GK User
Mon Oct 08, 2012 7:09 pm
Reply with quote
Report this post
Hi !

Thank you very much for your prompt reply and your help. Now, my speakers are "fixed", that's great !

PS : Congrats for the great J!D Poland ;)

Sandra
User avatar
Senior Boarder


cron