WordPress.org

Ready to get started?Download WordPress

Forums

I Recommend This
[resolved] Not working: Conflict with Basic Slider (19 posts)

  1. Alkorr
    Member
    Posted 10 months ago #

    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/

  2. Harish Chouhan
    Member
    Plugin Author

    Posted 10 months ago #

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

  3. Alkorr
    Member
    Posted 10 months ago #

    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.

  4. Harish Chouhan
    Member
    Plugin Author

    Posted 10 months ago #

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

  5. Alkorr
    Member
    Posted 10 months ago #

    Sure Harish, no problem, that would be great if you can find what's going wrong :)

  6. Alkorr
    Member
    Posted 10 months ago #

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

  7. Harish Chouhan
    Member
    Plugin Author

    Posted 10 months ago #

    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.

  8. Alkorr
    Member
    Posted 10 months ago #

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

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

  9. Alkorr
    Member
    Posted 10 months ago #

    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! :)

  10. Harish Chouhan
    Member
    Plugin Author

    Posted 10 months ago #

    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' );
    	}
    }
  11. Alkorr
    Member
    Posted 10 months ago #

    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?

  12. Alkorr
    Member
    Posted 10 months ago #

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

    I keep searching :)

  13. Harish Chouhan
    Member
    Plugin Author

    Posted 10 months ago #

    Hi

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

  14. Harish Chouhan
    Member
    Plugin Author

    Posted 10 months ago #

    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.

  15. Alkorr
    Member
    Posted 10 months ago #

    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 ;)

  16. Harish Chouhan
    Member
    Plugin Author

    Posted 10 months ago #

    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 ;)

  17. Alkorr
    Member
    Posted 10 months ago #

    Hi Harish, thanks for your help but I decided to change the Slider I use. Because I want to use your plugin and I can't find a way to make it work properly when the Slider is installer.

    Sure, I'm gonna leave a review! :)

  18. Harish Chouhan
    Member
    Plugin Author

    Posted 10 months ago #

    have you tried flexslider? Secondly I will release a slider plugin soon which is very simple to use and not many complicated options.

  19. Alkorr
    Member
    Posted 10 months ago #

    I heard of Flexslider but I installed Meta Slider. It does a lot of things (too many for the use I need) but at least it works with your plugin.

    I'm looking forward your slider plugin, if it's as good and simple as I recommend this, be sure I will install it and spread the word about it! :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.