WordPress.org

Ready to get started?Download WordPress

Forums

WP Splash Image
Please use a version of jQuery Tools without JQuery library included (9 posts)

  1. Martin Tod
    Member
    Posted 1 year ago #

    Please can you use an installation of jQuery Tools that doesn't include the jQuery library.

    It would make life easier for other developers since reloading your version of jQuery instead of the WordPress version of jQuery breaks any plug-in that's called before yours and that relies on jQuery.

    If you could then replace:

    wp_enqueue_script('jquery.tools.front');

    with something like:

    wp_enqueue_script('jquery');
    wp_enqueue_script('jquery.tools.front',array('jquery'),FALSE,FALSE);

    It would fix some of the bugs being reported here.

    http://wordpress.org/extend/plugins/wsi/

  2. keeperbay
    Member
    Posted 1 year ago #

    which bugs?

  3. Martin Tod
    Member
    Posted 1 year ago #

    This one and this one for example.

  4. keeperbay
    Member
    Posted 1 year ago #

    Thanks

  5. micahgallant
    Member
    Posted 1 year ago #

    a) helps to list the page this is on for editing. I think its this one:
    wsifront.class.php in this folder: plugins/wsi/wsi/front (if using the splash in front option as opposed to the splash after page load)

    b) it does appear as I found in another post that mailchimp plugin adds to the issue. If you load mailchimp and this plugin, dropdown menus stop working out of the default dropdown wordpress structure. Disabling this one OR mailchimp resolve it. For now I disabled mailchimp cause I need this one more than the mail chimp plugin I'm using.

    How do you code around this and other conflicts, no idea :/ Par for the course with wordpress plugins I guess.

  6. Martin Tod
    Member
    Posted 1 year ago #

    Very often this happens because people aren't using the standard jQuery installation or are overwriting it somehow.

    The best way to fix the problem is to rewrite the plug-in to use the standard WordPress version of jQuery.

  7. Martin Tod
    Member
    Posted 1 year ago #

    For the record, this is on line 100 of /wsi/front/WsiFront.class.php.

  8. Martin Tod
    Member
    Posted 1 year ago #

    Solution (assuming no bespoke code in the min file) is to change lines 94-98 of /wsi/front/WsiFront.class.php to:

    // D├ęclaration des scripts de la partie front end.
    			wp_register_script('jquery.tools.front', WsiCommons::getURL().'/js/jQueryTools/jquery.tools.min.wp-front.v'.JQUERY_TOOLS_FILES_VERSION.'.js'); /*[overlay, toolbox.expose]*/
    
    			// JQuery Tools
    			wp_enqueue_script('jquery.tools.front');

    to:

    // D├ęclaration des scripts de la partie front end.
    			wp_register_script('jquery.tools.front', 'http://cdn.jquerytools.org/1.2.7/all/jquery.tools.min.js'); /*[overlay, toolbox.expose]*/
    
    			// JQuery Tools
    			wp_enqueue_script('jquery');
    			wp_enqueue_script('jquery.tools.front',array('jquery'),FALSE,FALSE);

    Also need to change any reference to $jwsi( in /wsi/front/splash/overlay.inc.php to jQuery(.

  9. Martin Tod
    Member
    Posted 1 year ago #

    Also need to change any reference to $jwsi( in /wsi/front/splash/content.inc.php to jQuery(.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic