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

  1. Old
    Posted 3 years ago #


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



  2. hoffcamp
    Plugin Author

    Posted 3 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:

    $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. Old
    Posted 3 years ago #

    Thank you

  4. Good in Today
    Posted 3 years 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
    Posted 3 years 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

  • Form Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic