Okay
  Public Ticket #1424932
Page jumping and automatic triggers
Closed

Comments

  • Spydervenom44 started the conversation

    Hello, First off, amazing plugin. It’s very intuitive, produces great results, and adds a wide variety of possiblities for me to add excitement and style to my pages.

    I have two things that I need help with:

    DZS Gallery has a custom Javascript section that allows me to trigger actions upon the completion of a playlist. I used this to trigger playlist 01, 02, and 03 to play continuously, automatically as each one completes. I would like to insert a trigger for a Next Slide action to happen before the Next Playlist action so that the proper slide can be visible as the galleries/playlists switch.

    I’m using Xampp to work locally, so I can’t provide you with links. I’m also new at this stuff and learning as I go, so if you could show me where to insert the Next Slide trigger within my current code, it would be very helpful.

    Here’s the Javascript code that starts playlist 02 after playlist 01 one completes:

    var _t3 = $(”.id_playlist02”); console.info(“_t3 -> ”,_t3, _t3.get(0).api_gotoItem);if(_t3.get(0).api_gotoItem){ _t3.get(0).api_gotoItem(0); _t3.get(0).api_play_currVideo();}if(_t3.get(1) && _t3.get(1).api_gotoItem){ _t3.get(1).api_gotoItem(0); _t3.get(1).api_play_currVideo();}

  • [deleted] replied

    Hello Spydervenom44,

    Thank you for getting in touch with us and for your kind words. My name is Attila and I'm happy to assist you today. I appreciate your patience while we've been working towards your ticket.

    LayerSlider provides Event Callbacks (located next to the Slider Settings and Slides tabs) that I believe you could use for this prupose. There is also the API available for custom methods like this: https://support.kreaturamedia.com/docs/layersliderwp/documentation.html#layerslider-api

    I'd recommend to take a look at these, and in the meantime I will ask the dev team whether they have a better solution or exact code to help you further.

  • Spydervenom44 replied

    Hi Attila,

    Thank you for the response. I'll look into what you said and see what I can do while I wait for a response from the developers.

    Sorry but something went wrong with my copy and paste so my questions in their entirety didnt show. Here is the original full message:

    I have two things that I need help with:

    #1. I added an image layer that I wish to use to take the user to the next slide. I selected your provided (Switch To The Next Slide) option, which produces a (#next) in the URL field. #next works, but as it switches slides, it also jumps to the top of the page. Any workaround?


    #2. My site is made up of your slides that contain the DZS Video Gallery plugin within each of them.  So let's say I had a Slider with three slides: Slide 01 would contain gallery playlist 01, Slide 02 - gallery playlist 02, slide 03, gallery playlist 03.

    DZS Gallery has a custom Javascript section that allows me to trigger actions upon the completion of a playlist. I used this to trigger playlist 01, 02, and 03 to play continuously, automatically as each one completes. I would like to insert a trigger for a Next Slide action to happen before the Next Playlist action so that the proper slide can be visible as the galleries/playlists switch. 

    I'm using Xampp to work locally, so I can't provide you with links.  I'm also new at this stuff and learning as I go, so if you could show me where to insert the next slide trigger within my current code, it would be very helpful.
    Here's the Javascript code that starts playlist 02 after playlist 01 one completes:


    var _t3 =  $(".id_playlist02");    console.info("_t3 -> ",_t3, _t3.get(0).api_gotoItem);if(_t3.get(0).api_gotoItem){               _t3.get(0).api_gotoItem(0);                                _t3.get(0).api_play_currVideo();}if(_t3.get(1) && _t3.get(1).api_gotoItem){               _t3.get(1).api_gotoItem(0);                                _t3.get(1).api_play_currVideo();}

     

  • [deleted] replied

    The jump on slide change shouldn't happen under normal circumstances. I believe that there is something on the site that is affecting the slideshow resulting in this behavior. Unfortunately without seeing your site live, it's hard to tell what might be wrong.

    Also, the dev team looked at your code and recommended that you add the next slide trigger inside the second if. You can find more info about how to call it in the documentation: https://support.kreaturamedia.com/docs/layersliderwp/documentation.html#layerslider-api

  • Spydervenom44 replied

    - Ok, so I figured out the specifics of the page jumping problem. Your slider treats it's (LayerSlider Action: Switch to the next slide) action as a page slug.    ex #next.  When I press the next button and my theme can't find any section called "Next", it defaults to the home page. I tested this out by naming the section that contained the slider, #next, and it worked without any page jump. This solution would be fine if I were only using one slider, but I'm using multiple sliders, and I can't name them all #next. So is there a way to keep the functionality of the (LayerSlider Action: Switch to the next slide) choice, while using some sort of attribute or custom code to rename the URL slug to something of my choosing, other than #next?

    - I tried placing the $('#slider').layerSlider('next'); API  after the second if statement and it didn't work. As I said, I'm not skilled at coding beyond the basic cut and paste wannabe, so providing the actual code would greatly help. It would turn my potential 3 week nightmare into a one day solution ;)

    I can email you a copy of the video player plugin that I'm using if that would help in anyway.

    Many thanks

  • Spydervenom44 replied

    Hello,

    Just an update to let you know that the author of the theme I'm using gave me a working solution to the page jump problem. In case somone has the same issue:

    Go to the Custom Attributes section under the Link & Attributes tab . 

    Enter   data-toggle   in the Attribute Name field.

    Enter   "1"                  in the Attribute Value field  and the problem is solved.


    So now I only need help with the trigger and I'll be set.

  • [deleted] replied

    Thanks for the feedback. I'll forward the details of the trigger you would like to set up to the dev team, and get back to you with their answer/solution.

  • [deleted] replied

    The dev team believes that the problem you were experiencing is theme specific. Under normal circumstances or in normal testing environment it shouldn't (and it does not) happen.

    Regardless, thank you very much for the feedback. We appreciate it, and we're glad that the problem is resolved now.

    If we can provide further assistance, please let us know.

  • Spydervenom44 replied

    Yes, any luck with the trigger code?

  • [deleted] replied

    I'm waiting for the dev team's response. I'll let you know asap. Thank you for your patience.

  • Spydervenom44 replied

    Very much appreciated.

  • [deleted] replied

    Unfortunately the dev team is not able to help you with this trigger code. As they do not know what the code should do exactly and how it should work, they cannot really tell what is wrong or what should be changed. The earlier suggestion was only a tip from their part, but unfortunately they cannot help you further with it as it is. Regardless, if you have other questions regarding the plugin, we are here to help.

  • Spydervenom44 replied

    Zero help. Thanks.