Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Paul
    I have same problem with wp-polls and all Jquery features.
    Since wp-poll write additional header to all wp pages and those header generating conflict with all jquery on the system.

    I hope the author notice with this problem.

    I’m trying to localize the problem or event find the solution, ill update you I find the solution.. (I hope soon)

    Thread Starter Paul Kerins

    (@paul-kerins)

    Hi Wigid
    Thanks for replying. I would be interested in a solution if you find one, let me know. Due to the nature of my blog wp-jquery-lightbox is far more important to me than WP-Polls, so I can live without WP-Polls, but it would be nice to be able to use it to.

    … this seems to be a problem with WP-Polls so you should perhaps tag the thread with the correct plugin?

    Hi Paul, because of time constraints, I just had time trying to find a solution of this problem.
    There are two possibilities that causing jquery fails in execution:
    1. If you add the javascript library directly in header.php, there is likely a reference jquery called twice.
    2. Jquery Reference was called after the lightbox or wp-poll javascript , you can check it via view source.

    because my limited skill of javascript management order on the header, then my solution are :
    1. Add the jquery reference into header.php manually.
    After <head> i put <script type='text/javascript' src='/wp-includes/js/jquery/jquery.js?ver=1.7.1'></script>

    2. Modifying/removing scripts that generate jquery reference.
    open wp-polls.php
    line 202 delete wp_print_scripts('jquery');
    line 224
    from wp_enqueue_script('wp-polls', plugins_url('wp-polls/polls-js.js'), array('jquery'), '2.50', true);
    into wp_enqueue_script('wp-polls', plugins_url('wp-polls/polls-js.js'), array('jquery'), true);
    line 243
    wp_enqueue_script('wp-polls-admin', plugins_url('wp-polls/polls-admin-js.js'), array('jquery'), '2.50', true);
    wp_enqueue_script('wp-polls-admin', plugins_url('wp-polls/polls-admin-js.js'), true);

    its not perfect, but hopefully it helps

    good stuff, now to find what the other plugin i have that’s loading an old jq version

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP-Polls breaks wp-jquery-lightbox’ is closed to new replies.