Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • His patch doesn’t fix the common jQuery issue, only the mediabutton which I also posted in my previous post.

    Thread Starter Cerveza

    (@cerveza)

    Fix:

    Open up sponsors-coursel.php

    On line 369 you will find the following code:

    echo _media_button(__(‘Add an Image’), ‘images/media-button-image.gif?ver=20100531’, ‘image’,$scwp_plugin_name);

    replace with:

    echo media_buttons(__(‘Add an Image’), ‘images/media-button-image.gif?ver=20100531’, ‘image’,$scwp_plugin_name);

    This plug-in is out-to-date but there are several plugin fixes.

    Open up sponsors-coursel.php

    1. First fix: add media button not appearing
    On line 369 you will find the following code:

    echo _media_button(__(‘Add an Image’), ‘images/media-button-image.gif?ver=20100531’, ‘image’,$scwp_plugin_name);

    replace with:

    echo media_buttons(__(‘Add an Image’), ‘images/media-button-image.gif?ver=20100531’, ‘image’,$scwp_plugin_name);

    2. Second fix: common jquery issue (interfering with other jquery plugins within your installation)
    On line 68 you will find the function sponsors_carousel_enqueue_scripts, within this function delete the following code:

    // jquery
    wp_deregister_script(‘jquery’);
    wp_register_script(‘jquery’, ($plugin_url . ‘/jquery-1.4.2.min.js’), false, ‘1.4.2’);
    wp_enqueue_script(‘jquery’);

    This plug-in is out-to-date but there are several plugin fixes.

    Open up sponsors-coursel.php

    1. First fix: add media button not appearing
    On line 369 you will find the following code:

    echo _media_button(__(‘Add an Image’), ‘images/media-button-image.gif?ver=20100531’, ‘image’,$scwp_plugin_name);

    replace with:

    echo media_buttons(__(‘Add an Image’), ‘images/media-button-image.gif?ver=20100531’, ‘image’,$scwp_plugin_name);

    2. Second fix: common jquery issue (interfering with other jquery plugins within your installation)
    On line 68 you will find the function sponsors_carousel_enqueue_scripts, within this function delete the following code:

    // jquery
    wp_deregister_script(‘jquery’);
    wp_register_script(‘jquery’, ($plugin_url . ‘/jquery-1.4.2.min.js’), false, ‘1.4.2’);
    wp_enqueue_script(‘jquery’);

    Open sponsor-carousel.php

    On line 68 you will find the function sponsors_carousel_enqueue_scripts, within this function delete the following code:

    // jquery
    wp_deregister_script(‘jquery’);
    wp_register_script(‘jquery’, ($plugin_url . ‘/jquery-1.4.2.min.js’), false, ‘1.4.2’);
    wp_enqueue_script(‘jquery’);

    Try again.

Viewing 5 replies - 1 through 5 (of 5 total)