WordPress.org

Ready to get started?Download WordPress

Forums

User Submitted Posts
[resolved] No custom field for the images (10 posts)

  1. karpediem
    Member
    Posted 1 year ago #

    Hello,
    When I post a message, it is recorded well but I have no custom field for the images. I verified that I have all the rights on the upload file. Would anybody have an idea to resolve this problem?
    Thank you very much (I'm sorry for my bad English)

    http://wordpress.org/extend/plugins/user-submitted-posts/

  2. Jeff Starr
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, are you able to upload images via the Media Library in the WP Admin?

  3. ES Neubauer
    Member
    Posted 1 year ago #

    I am having the same problem with custom fields. On the submitted post I noticed there are the custom fields is_submission, user_submit_ip, user_submit_name, and user_submit_url and the values are there but user_submit_image is missing and its not even an option in the drop-down that says "add new custom fields." Did I do something to the code or the settings to make this custom field disappear? I have no problem uploading images via the Media Library in WP admin.

    Here's the page that the code is on:
    http://www.dernet.co.uk/TempAYL/?page_id=84

    Any help would be greatly appreciated!

  4. Jeff Starr
    Member
    Plugin Author

    Posted 1 year ago #

    It's difficult to try and guess what might be the issue, but I'm glad to log in and take a look to see what's up. Contact me directly @ http://perishablepress.com/contact/

  5. bathamrenu
    Member
    Posted 1 year ago #

    I am facing the same prob. Even in custom field there is a dropdown menu for user_submit_image, but it is not showing any image info in custom textarea. I am able to upload images from media. On local its working fine, i checked all settings and permissions...

  6. Jeff Starr
    Member
    Plugin Author

    Posted 1 year ago #

    It's difficult to try and guess what might be the issue, but I'm glad to log in and take a look to see what's up. Contact me directly @ http://perishablepress.com/contact/

  7. bathamrenu
    Member
    Posted 1 year ago #

  8. Jeff Starr
    Member
    Plugin Author

    Posted 1 year ago #

  9. ES Neubauer
    Member
    Posted 1 year ago #

    I just wanted to say, I managed to get it working by re-setting all the options to the defaults. Then the custom field for the images showed up, the image had uploaded to the media library, and it even published with the post (I had used this code <?php if (function_exists('usp_post_attachments')) usp_post_attachments(); ?> from this support question: http://wordpress.org/support/topic/still-having-issues-getting-a-template-tag-or-custom-field-for-images?replies=10).
    I realize now that I had my maximum image width and height set way too small (on the options panel, the default value was 1500 by 1500 and I set it to something like 638 by 300). Then when I went to test it, I selected any old photo on my computer and they must have always been bigger than that. My thinking was that setting the max width and height would resize the image to fit in the available space, which it obviously doesn't. So it seems if the image selected is too wide/high, it didn't get included at all and there was no custom field for it.

    Perhaps for uninitiated people like me, it would be helpful if there was a little note next to the option in the setting panel explaining what will happen when you set the width/height too small (i.e. possibly making it not possible for users to submit images). Also, maybe an error message displaying to the user when they've selected an image that is too large? And it would be nice if images that are bigger could be auto-resized to fit in the available space, though there is probably a way to do that already that I haven't figured out yet.

    Thanks anyway, I think the plugin is really great and I'm going to give it 5 stars.

  10. Jeff Starr
    Member
    Plugin Author

    Posted 1 year ago #

    Excellent feedback, ES Neubauer - Thank you! I'll use this info to improve future versions, make things clearer, etc. Thanks for taking the time to explain, and I'm glad to hear you got it working :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic