Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author DBAR Productions

    (@dbar-productions)

    That is not the case. My plugin does NOT bundle its own version of jQuery, and that is the “fact”. In that other support thread you referred to, he said “many plugins” bundle jQuery. He did NOT specifically say that mine did, and I assure you mine does NOT.

    My plugin uses a few small scripts on the ADMIN side only. It uses Datepick, Timepicker, and some custom javascript/jQuery functions on the add/edit tasks page. When I enqueue my own scripts I state jQuery as a dependency, exactly the way it says to do in the WordPress codex, but I do NOT load my own copy of jQuery.

    I follow best practices, to the best of my knowledge, and my plugin has not caused issues with many many other plugins which also use a variety of jQuery scripts.

    If you want to turn things around, you could probably disable that other plugin and then mine will work just fine. So, who is to say that they are not doing something wrong in their plugin?

    Unfortunately, with lots of different plugins running lots of various jQuery/javascript functions, there is always the possibility of a conflict. I have not experienced and conflicts yet with my Volunteer plugin, but there have been plugins and themes which I have purchased for use on my own sites that sometimes cause conflicts with each other. There is simply no way for each developer to test for every possible combination, and with jQuery/javascript becoming used more and more in plugins and themes, the chances for conflicts keep going up.

    If you can explain exactly what the issue is, I can try to download that other plugin and see if I can figure out what may be causing the conflict. I do not appreciate, however, other people or developers quickly blaming others and calling it a “fact”, when they have not verified the facts, and when it could be their own code that is causing the conflict. What you have stated as a “fact”, is simply not true in this case.

    I am certainly not perfect, and there could possibly be some problems in my code, especially since this particular plugin started life as another plugin which I forked into this build to modify to fit the needs of our school. So far, however, you are the only one who has reported any conflicts, and my plugin uses very minimal jQuery/javascript functions, and ONLY on the admin side.

    Plugin Author DBAR Productions

    (@dbar-productions)

    I have quickly found the conflict with Events Made Easy. We are both using the same Datepick jQuery script for entering dates on the admin side, and registering it with the same name, but the versions are different. Mine must be getting registered before theirs, causing theirs to not work properly due to differences in the versions. That is a third party, open source script, that neither of us wrote ourselves, but that makes it easier to enter dates in the proper format by allowing users to select the dates from a calendar.

    I did a quick test on my local machine of renaming mine from the standard jquery-datepick, to pta-datepick, and the conflict went away.

    This is not a case of either of us doing something “wrong”, it’s just a conflict of two different versions of the same script registered with the same name.

    I will update my plugin later today.

    Thread Starter Uobet

    (@uobet)

    First of all sorry for wrongly accusing your plugin. I am going to clear that in the eme-support-forum.

    Thank you very much for solving the problem.

    Hi, as the author of EME I came to clarify things a bit. I was the one who told Uobet that it might related to another plugin causing some jquery interference, of course as you know javascript is very touchy sometimes and some plugins do provide their own jquery version. In our case here it was luckily not the case (as both you and I try to do it cleanly and let wordpress take care of the jquery versions). You were faster than me for testing this out and figured out the problem correctly too.
    So, if by any chance I offended you in any way, I do apologize.

    Plugin Author DBAR Productions

    (@dbar-productions)

    Thanks Franky, I appreciate it!

    No worries, it was about time I got around to making another update anyway, and so I also went ahead and updated datepick to version 5.0.0.

    Even though I was only queuing datepick on the specific admin page of my plugin I was using it on, it appears that if you register a script first on admin_init, as has been suggested by others and the wordpress codex, that can cause conflicts, as it happened between the version of datepick that I was registering, and the version your plugin was using. So, since that is the case, I don’t see what the point is of even registering a script first if it can also cause issues even if the script is never queued for a page. It was the first time I have encountered that problem anyway.

    So, instead of renaming the script (my first quick fix), I just decided not to register the script, and do the full enqueue of the script on the specific page load. That worked just fine when tested against your plugin and one other plugin that was also using another version of datepick, even with them all using jquery-datefix as the plugin handle.

    I’m assuming that was the only conflict, as Uobet didn’t mention any other issues, and datepick and timepicker are the only two public jQuery scripts I am using in my plugin.

    Thread Starter Uobet

    (@uobet)

    I confirm that with the new version of PTA Volunteer Sign Up Sheets the conflict with Events Made Easy has disappeard.

    Thank you very much for your quick and professional help!

    S

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘conflict with other plugins due to jquery’ is closed to new replies.