WordPress.org

Ready to get started?Download WordPress

Forums

Multi Image Metabox
Image does not show up on the photos box of admin page (2 posts)

  1. dknman
    Member
    Posted 1 year ago #

    Hello,

    How to fix adding a photo which do not show on photo box of the admin page. It will just show after update button was click.

    http://wordpress.org/extend/plugins/multi-image-metabox/

  2. zyrobs
    Member
    Posted 4 months ago #

    The quick fix: In the plugins get-images.js file, find this line:

    var imgfull = $(html).find('img').css({width:"100px", height:"100px"});

    And change it to this:
    var imgfull = $(html).css({width:"100px", height:"100px"});

    The proper fix:
    Make the plugin do an admin ajax call to return the proper thumbnail url. I had it half done when I realized that the imgfull variable is just not getting the proper image object...
    (proper as in, this one returns the required url all the time instead of mucking in javascript, and it doesn't push a possibly 1000px big image into a 100px thumbnail box)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.