WordPress.org

Ready to get started?Download WordPress

Forums

Form Manager
[resolved] How to show photos on the summary data (5 posts)

  1. Zilli
    Member
    Posted 2 years ago #

    Hi,

    Just one question. How can I display a photo (that was uploaded the user) when I show the summary data on a page?

    Thanks

    http://wordpress.org/extend/plugins/wordpress-form-manager/

  2. hoffcamp
    Member
    Plugin Author

    Posted 2 years ago #

    Somebody else on the forums asked this, they made a custom summary template to do this. If your file upload has the nickname 'whatever', you would do the following:

    <?php
    $file = fm_summary_get_item_value('whatever');
    $file = unserialize($file);
    ?>
    <img src="<?php echo $file['upload_url'].'/'.$file['filename'];?>"/>

    This assumes you are using default options for the upload directory.

  3. Zilli
    Member
    Posted 2 years ago #

    Thank you

  4. Good in Today
    Member
    Posted 1 year ago #

    Yeah except I get absolutely nothing back when I send this through. I believe I'm doing it correctly but probably not. Getting the stuff from the back end is a bit confusing. I do not see where I put in nicknames. But the label names I'm using are 'Select Image' ( for File Upload ), 'Image Caption' and a 'Category' dropdown with set options there. What I really need to know is what am I sending through with fm_summary_get_item_value? I mean I've tried 'Image Caption' and I get no page errors so I can only assume it's processing however the return is empty. I do love this for getting users to participate via image upload, just trying to get it all to work together. I need a single image view page, and a wall of images but one thing at a time, eh? ;) Also, once I get this single image view page working HOW / WHERE do I set it as the default so when someone uploads an image it is what is used to post it rather than the default one?

  5. Good in Today
    Member
    Posted 1 year ago #

    Yep. Got this part working. I actually found the part about adding nicknames. And since then have gotten pretty far. Stuck at getting the post ID of all things. I just can't seem to figure out why it won't give it up!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic