WordPress.org

Ready to get started?Download WordPress

Forums

J Shortcodes
[resolved] Conflict with LBAK User Tracking (4 posts)

  1. Sam Rose
    Member
    Posted 3 years ago #

    Hi gesman,

    I'm the author of LBAK User Tracking and I've recently run into a conflict between our plugins with one of my users.

    The conflict is with some external javascript libraries that we use. I'm using a jQuery plugin called Tooltip (http://flowplayer.org/tools/download/index.html) and you're using the jQuery ui (jquery-ui-1.8.9.custom.css). They seem to be in conflict on the admin dashboard, causing some AJAX queries to not process correctly. I'm open to the possibility that I'm wrong, though :)

    If you were to download my plugin and activate it alongside yours you will notice that some dashboard widgets just stay on the "Loading..." stage and the javascript console will display this error: "Uncaught TypeError: Cannot read property 'mouse' of undefined".

    The problem seems to be in the "JAY__Get_Extra_Header_HTML" function. You're echoing all of your Javascript directly into the headers. I'd recommend that you use the wp_enqueue_scripts functions and attach your script insertions into the appropriate admin_print_scripts-<page name> actions :)

    Do you need to use the jquery ui stuff in the dashboard? If not, it would stop the conflict if you didn't insert it into the dashboard.

    Hope to hear back from you soon,
    Sam

    http://wordpress.org/extend/plugins/j-shortcodes/

  2. Sam Rose
    Member
    Posted 3 years ago #

    Thank you for addressing this :)

  3. Sam Rose
    Member
    Posted 3 years ago #

    Hm, I read into your code slightly wrong before. You weren't printing <script> tags directly into the header, my bad. I'm sorry.

    Again, thanks for getting this fixed.

  4. gesman
    Member
    Plugin Author

    Posted 3 years ago #

    J Shortcodes 1.302 fixed that.

    And thanks for the tip re:loading scripts for admin pages.

    Gleb

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic