WordPress.org

Ready to get started?Download WordPress

Forums

Sponsors Carousel
Media button missing in plugin page (4 posts)

  1. chrisHe
    Member
    Posted 1 year ago #

    In WP 3.5 the media button does not appear.
    There is a patch in the supoprt forum,
    please release a new version

    http://wordpress.org/extend/plugins/sponsors-carousel/

  2. chrisHe
    Member
    Posted 1 year ago #

    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>

  3. ctheory
    Member
    Posted 1 year ago #

    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.

  4. chrisHe
    Member
    Posted 1 year ago #

    @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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic