• Resolved takuya

    (@takuya)


    This plugin is not compatible with 2.9.2 as drag & drop doesn’t work due to conflicts with javascripts within wp-admin.

    Error: element.tagName is undefined
    Source: http://example.com/wp-admin/load-scripts.php?c=1&load=sack,prototype,jquery,farbtastic,colorpicker,utils,scriptaculous-root,scriptaculous-builder,scriptaculous-effects,scriptaculous-dragdrop&ver=ccec49505f0b7159b00f28007212e5d0
    Line: 6461

    Error: element.dispatchEvent is not a function
    Source: http://example.com/wp-admin/load-scripts.php?c=1&load=sack,prototype,jquery,farbtastic,colorpicker,utils,scriptaculous-root,scriptaculous-builder,scriptaculous-effects,scriptaculous-dragdrop&ver=ccec49505f0b7159b00f28007212e5d0
    Line: 3937

    http://wordpress.org/extend/plugins/ozh-who-sees-ads/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter takuya

    (@takuya)

    This error was from Editor Tabs. Marking resolved.

    I have the same problem: drag and drop doesn’t work, and I don’t use Editor Tabs. Running WordPress 3.0-beta-2

    The problem is with the new prototype and scriptaculous being bundled with WP 3.0.4.

    I did some digging around and found that WP 2.3 used to come bundled with Prototype 1.5.1, and script.aculo.us 1.7.1 beta 2. So I downloaded these specific versions of prototype.js, scriptaculous.js, dragdrop.js and effects.js. I then commented out this line:
    //wp_enqueue_script('scriptaculous-dragdrop');
    and replaced it with:

    1.
          wp_enqueue_script( 'pro', 'yourURL/wp-content/plugins/ozh-who-sees-ads/js/prototype.js');
       2.
          wp_enqueue_script( 'scrp', 'yourURL/wp-content/plugins/ozh-who-sees-ads/js/scriptaculous.js' );
       3.
          wp_enqueue_script( 'ef', 'yourURL/wp-content/plugins/ozh-who-sees-ads/js/effects.js' );
       4.
          wp_enqueue_script( 'drgdr', 'yourURL/wp-content/plugins/ozh-who-sees-ads/js/dragdrop.js' );

    With this change, everything is working like the good old days :). I know that my method could be better as I shouldn’t reference direct links to local files, but I’m sure someone smarter than me can fix that. Just wanted to post to let people know how to get this great plugin working with WP 3.0.4 🙂

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Ozh’ Who Sees Ads] drag&drop doesn’t work, conflicting with 2.9.2’ is closed to new replies.