WordPress.org

Ready to get started?Download WordPress

Forums

Magic Fields 2
[resolved] Image Media=>Set Image=>From URL=>Insert into Post does nothing (5 posts)

  1. Magenta Cuda
    Member
    Posted 1 year ago #

    For an Image Media Magic Field doing a "Set Image" using the "From URL" tab clicking the "Insert into Post" button does nothing. The image URL is valid since a green check mark is displayed before it. I have monitored the network traffic and no GET/POST request is sent from the browser. I have verified this error on both the WordPress version 2.1 and the GitHub version 2.0.1 (downloaded on Jan 9, 2013, isn't the version number wrong on the GitHub version?) However, the "Media Library" tab is working. Also should not the button label be "Insert into Field" instead of "Insert into Post"?

    http://wordpress.org/extend/plugins/magic-fields-2/

  2. hunk
    Member
    Plugin Author

    Posted 1 year ago #

    is correct, I did not know that the new media upload pictures had this option, I need to investigate how to use it

  3. Magenta Cuda
    Member
    Posted 1 year ago #

    I also noticed that the "Media Library" tab is working in the WordPress version but broken in the GitHub version. The problem seems to be that the WordPress version displays the ".../wp-admin/media-upload.php?..." page in an iframe hosted by an overlaid div whereas the GitHub version loads a new page and consequently the global window.mf_field_id is undefined.

  4. hunk
    Member
    Plugin Author

    Posted 1 year ago #

    the github version work fine.

    Magic Fields unfortunately can not make use of the option "from URL" that WP never saves the image in the library, Magic Fields uses the attachmentID, there is no way of knowing that image is being used

  5. Magenta Cuda
    Member
    Posted 1 year ago #

    I just checked out the latest github version and "Media Library" tab is now working. The line added to function mf_use_new_image_gallery()

    if (typeof wp === 'undefined' || typeof wp.media === 'undefined') return;

    I think fixed the problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic