WordPress.org

Forums

Promotion Slider
[resolved] Slider won't pause (5 posts)

  1. mackiee
    Member
    Posted 3 years ago #

    Hello,

    thanks for this great plugin. It works great, but I have a little problem which is confusing me a lot. I was searching everywhere, but I didn't find an answer for this problem:

    When I hit pause on the slideshow and change the slide with a button slideshow doesn't stop at all. It is still changing images.

    You can try it here: http://vitalniprincip.cz/

    Any idea what can be wrong?

    Thanks in advance!

    http://wordpress.org/extend/plugins/promotion-slider/

  2. Micah Wood
    Member
    Plugin Author

    Posted 3 years ago #

    Sorry, but the slider on that site isn't actually the Promotion Slider. I am not familiar with it enough to know what the problem might be.

  3. mackiee
    Member
    Posted 3 years ago #

    Hi,

    thanks for response! But it is promotion slider. When I disable the plugin slides are gone and code is displayed instead :)

    echo do_shortcode('[promoslider category="hp-promo-slider" width="580px" height="360px" display_nav="fancy" display_title="default" display_excerpt="excerpt" time_delay="10" pause_on_hover="pause"]');

    :D

  4. Micah Wood
    Member
    Plugin Author

    Posted 3 years ago #

    Ah... sorry, I didn't look close enough. It looks like your web developer must have used the promotion slider and added some custom functionality. I say this because the promotion slider doesn't actually have a pause button, which is what threw me off initially.

    There was code added to promo_slider.js in the plugin. Typically this is a bad practice since upgrading the plugin later would overwrite all of the changes.

    Anyways, in the code, your developer simply forgot to take into account the case where a user pauses the slider and then clicks on another slide. It also looks like the pause functionality is only applied if the 'Pause slider on mouseover' option or shortcode attribute is set.

    Basically, line 95 of the promo_slider.js file is where the issue occurs. It currently reads:
    if(autoAdvance) sliderInterval = setInterval(function(){progress('forward', currentSlider, panelCount);}, (timeDelay * 1000));

    It should be changed to something like this:
    if(autoAdvance && playpause == 0) sliderInterval = setInterval(function(){progress('forward', currentSlider, panelCount);}, (timeDelay * 1000));

  5. mackiee
    Member
    Posted 3 years ago #

    Oh my god :)

    Thanks a lot!!! I didn't notice that plugin was changed, it is a little overtaken projekt ;-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Promotion Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic