WordPress.org

Ready to get started?Download WordPress

Forums

Magic Fields
[resolved] fix for image upload in wp 3.6 (6 posts)

  1. michapixel
    Member
    Posted 11 months ago #

    In RCCWP_WritePostPage.php

    ~ line 1763
    replace
    endif; (that's from if(!is_wp30()): some lines earlier)
    with

    else : ?>
    <script>
    jQuery('a#thumb_<?php echo $idField ?>').click( function(){
     window.mf_field_id = jQuery(this).attr('id');
    });
    </script>
    <?php	endif;
    ?>

    that should insert the required "mf_field_id" and you got your "Set image in field"-button back.

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

  2. dc23
    Member
    Posted 11 months ago #

    Great! Do you have any similiar idea for v2? Thx a lot.

  3. michapixel
    Member
    Posted 11 months ago #

    Should be similar i guess. I don't use v2.

  4. Motion FM
    Member
    Posted 11 months ago #

    It worked! Thank you much.

    I have version 1.6.1.

  5. another13
    Member
    Posted 11 months ago #

    For Mafic Fields 2, in magic-fields-2/field_types/image_media_field/image_media_field.php.

    After:
    $out .= sprintf('%s',$field['input_id'],$link,__('Set Image',$mf_domain));

    Add:
    $out .= "<script>
    jQuery('a#thumb_".$field['input_id']."').click( function(){
    window.mf_field_id = jQuery(this).attr('id');
    });
    </script>";

    It work for me. :)

  6. hunk
    Member
    Plugin Author

    Posted 10 months ago #

    fixed in new version MF 1.6.1.1, thanks

Reply

You must log in to post.

About this Plugin

About this Topic