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

    (@chrishe)

    With thanks to Dave at wickman studios below, here is a slightly revised patch, to make compatible with earlier versions and reduce the size of the URL input box – see lines around 367 onwards in sponsors-carousel.php
    `
    <?php _e(“New (select *full size* before insert): “, ‘sponsors-carousel’); ?>
    <!– <input type=”text” name=”scwp_link_image” id=”scwp_link_image” size=”50″ value=”” style=”width: 80%” /> –>
    <!– if input box is too wide, change width to max-width as in the next line, and comment out the original line, as shown here –>
    <input type=”text” name=”scwp_link_image” id=”scwp_link_image” size=”50″ value=”” style=”max-width: 80%” />

    <?php
    if (get_bloginfo ( ‘version’ )>=”3.5″)
    echo media_buttons(__(‘Add an Image’), ‘images/media-button-image.gif?ver=20100531’, ‘image’,$scwp_plugin_name); // for v3.5
    else{ //for earlier WP versions
    if (get_bloginfo ( ‘version’ )<“3.3”)
    echo _media_button(__(‘Add an Image’), ‘images/media-button-image.gif?ver=20100531’, ‘image’);
    else
    echo _media_button(__(‘Add an Image’), ‘images/media-button-image.gif?ver=20100531’, ‘image’,$scwp_plugin_name);
    }
    ?>
    </div>

    Thanks Chris.

    I have inserted this section of the code and the Add Media button now appears on screen. However, after I add a logo and click Save Changes it does not get updated into the collection of logos to appear within the widget or even at the bottom of this page as shown in the screenshots.

    Any idea why this seems to be happening? I am unable to use the widget until I can solve this. Thanks.

    Thread Starter chrishe

    (@chrishe)

    @ctheory Hi, No, I don’t know.
    What version of wordpress are you using?
    I would try the basic troubleshooting methods:
    1. Disable all other plugins
    2.Switch theme to 2011/2012
    Does it still happen?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Media button missing in plugin page’ is closed to new replies.