WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Not working: Conflict with Basic Slider

[Resolved] Not working: Conflict with Basic Slider

  • Alkorr
    Participant

    @alkorr

    Hi! I’ve seen you’ve updated your plugin, it’s great 🙂

    Unfortunately, I’m using Basic Slider (http://www.basic-slider.com/) and now my slider is not working anymore. When I deactivate your plugin, it works again…

    I tried to figure out the reason why I had to deactivate I Recommend This but I didn’t find why there is a conflict with Basic Slider.

    Maybe you could take a look and let me know. Basic Slider is simple and easy to use (I know many people using it for that reason) so it’s a pity it doesn’t work anymore when your plugin is activated.

    Thanks a lot! 🙂

    http://wordpress.org/plugins/i-recommend-this/

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Harish Chouhan
    Participant

    @hchouhan

    @alkorr, Can you please active both plugins on your website and share the link with me. It would help me test faster.

    Alkorr
    Participant

    @alkorr

    Hi Harish! The website is not online yet, I can’t help you with that…

    I don’t use Basic Slider as a plugin, only the script provided on the website I gave you. That’s why I’m thinking it’s a JQuery related conflict.

    If it is of any help, I think there is also a conflict with WP-Polls and Basic Slider but Basic Slider works fine with all the other plugins, excepted your and WP-Polls.

    Plugin Author Harish Chouhan
    Participant

    @hchouhan

    Oh, in that case it would take me awhile to test it. Will try checking this weekend or later.

    Alkorr
    Participant

    @alkorr

    Sure Harish, no problem, that would be great if you can find what’s going wrong 🙂

    Alkorr
    Participant

    @alkorr

    Hi Harish, did you have some time to check about the conflict with your plugin by any chance? 🙂

    Plugin Author Harish Chouhan
    Participant

    @hchouhan

    Hi. No not yet. Honestly I would not be able to check this anytime soon due to some updates and other commitments. Until then I would suggest using the older version of the plugin (http://wordpress.org/plugins/i-recommend-this/developers/) which you said did not cause any issue.

    Alkorr
    Participant

    @alkorr

    Ok Harish, totally understand, thank you, will do.

    Or maybe there is a way to disable your plugin, only on my homepage…

    Alkorr
    Participant

    @alkorr

    Harish, sorry to bother you but since you are very busy and I perfectly understand, I try to find a way to work around the conflict by myself.

    I try to deregister your plugin so it won’t run on my homepage but I can’t manage to make it work:

    add_action( 'wp_print_scripts', 'disable_scripts_function', 100 );
    function disable_scripts_function() {
    if (is_home() ) {
    wp_deregister_script( 'dot_irecommendthis' );
    }
    }

    If you can give my a quick help, please don’t hesitate, thanks a lot! 🙂

    Plugin Author Harish Chouhan
    Participant

    @hchouhan

    Hi there.
    Can you try this:

    add_action( 'wp_print_scripts', 'disable_scripts_function', 100 );
    
    function disable_scripts_function() {
    	if (is_home() || is_front_page() ) {
    		 wp_dequeue_script( 'dot-irecommendthis' );
    	}
    }
    Alkorr
    Participant

    @alkorr

    Thank you Harish! I just tried, when I look at the source code, the plugin script is not loaded anymore but the slider still won’t work.

    But when I deactivate your plugin, then the slider works. So I think it still has something to do with your plugin but if it’s not loaded on the front page, why the slider is still not working until your plugin is deactivated? Maybe your plugin is still loaded, in some way?

    I’m using a static index.php as a homepage, in case it is of any importance.

    Strange, isn’t it?

    Alkorr
    Participant

    @alkorr

    I tried deregister instead of dequeue, doesn’t work either.

    I keep searching 🙂

    Plugin Author Harish Chouhan
    Participant

    @hchouhan

    Hi

    That is strange. Just downloading the plugin and will see whats wrong.

    Plugin Author Harish Chouhan
    Participant

    @hchouhan

    Hi,

    I just tested it. Everything worked fine. When I placed the below code, exactly below the slider, the slider worked on static home page irrespective of whether my IRT plugin was active or not.

    <script class="secret-source">
            jQuery(document).ready(function($) {
    
              $('#banner-fade').bjqs({
                height      : 320,
                width       : 620,
                responsive  : true
              });
    
            });
          </script>

    When I placed this in a seperate JS file, for some reason it just did not work.

    Alkorr
    Participant

    @alkorr

    Hi Harish, thank you for taking the time to check the plugin.

    Unfortunately, that is exactly what I’m doing, placing the <script> code right below the slider, but the slider still doesn’t work, unless I deactivate your plugin.

    This is very strange… I don’t develop plugins (unfortunately) but maybe from your experience you could find a reason why it still doesn’t work for me.

    Your plugin is already disabled on my front page but the slider doesn’t work. What changes when I deactivate it? Why is this the only way to make the slider work?!

    Thank you for your help Harish, much appreciated. If an idea comes to you, let me know, your plugin is great and I really want to be able to use it. Thanks again 😉

    Plugin Author Harish Chouhan
    Participant

    @hchouhan

    Hi,

    The only guess I can make is some issues with JavaScript. I had tried it locla copy of my websites http://flattrendz.com where it worked great.

    P.S. if you liked the plugin perhaps you can give it a rating/review 😉

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘[Resolved] Not working: Conflict with Basic Slider’ is closed to new replies.