WordPress Plugin: User Submitted Posts

Posted on February 17, 2011 in WordPress by

[ User Submitted Posts ] User Submitted Posts lets your visitors submit posts and images from anywhere on your site and from anywhere on the page. User-submitted posts optionally include tags, categories, post title, and author name & URL. Submitted-post status can be set to draft, publish immediately, or publish after some number of approved posts. User Submitted Posts (USP) also handles multiple image uploads, custom URL redirects, and much more. And the easy USP Settings Page makes setting up and fine-tuning a breeze.

Let your visitors submit content

User Submitted Posts makes it easy to display a public post-submission form virtually anywhere on your site. Use the USP shortcode to display the submission form in any post or page, or use the USP template tag to include the form anywhere in your theme design. Visitors may then use the form to submit posts to your site. Depending on your preferences, user-submitted posts may include the following input fields:

  • Author Name
  • Author URL
  • Post Title
  • Post Tags
  • Post Category
  • Post Content
  • Image upload(s)

Using the Settings Page, you choose which fields to display, min/max number of images, min/max image size, redirect location, error messages and more. User Submitted Posts makes it easy to setup just about any type of user-submitted functionality for your WordPress-powered site. Here are some examples of how the USP plugin could be used:

  • Public Submit a Link form with tags
  • Simple Submit News form with post, title & author
  • Use as Contact Form that allows image attachments
  • Use as an Image Uploader, maybe with tags, title or whatever

Once a user has submitted a post, it’s saved as a “Draft” by default, but may optionally be set to “Publish Immediately” or even to publish if the author has “x” number of approved submissions. The plugin also displays a User Submitted Posts button at the top of the Posts Page that lets you filter all user-submitted posts/drafts with the click of a button.

Features

  • Let visitors submit posts from anywhere in your site
  • Posts may include title, tags, category, author, url, content & image(s)
  • Display submission form anywhere on the page via shortcode or template tag
  • Redirect user to anywhere or return to current page after successful post submission

Image Uploads

  • Optionally allow/require visitors to upload any number of images
  • Specify minimum and maximum width and height for uploaded images
  • Specicy min/max number of allowed image uploads for each post
  • Includes jQuery snippet for easy choosing of multiple images

Customization

  • Control which fields are displayed in the submission form
  • Choose which categories users are allowed to select
  • Assign submitted posts to any registered user
  • Customizable error and upload messages

Post Management

  • Includes template tags for easy display of post attachments and images
  • One-click post-filtering of user-submitted posts on the Admin Posts page
  • Saves as custom-fields with each post: name, IP, URL, & path info for each uploaded image
  • Set submitted posts to any status: Draft, Publish, or publish after some number of approved posts

Installation

  1. Upload the user-submitted-posts directory to your plugins folder
  2. Activate the plugin in the WordPress Admin via the Plugins Page
  3. Go to the User Submitted Posts Settings page to customize the plugin
  4. Display the submission form using template tag or shortcode:
    • To display the form on a post or page, use the shortcode:
      [user-submitted-posts]
    • To display the form anywhere in your theme, use the template tag:
      <?php public_submission_form(true); ?>
  5. By default, the form width is 300px. To change the width, do the following:
    1. Open the CSS file: /resources/user-submitted-posts.css
    2. Edit the first rule block with the desired width, like so:
      div#usp { width: 300px; } /* <- CHANGE FORM WIDTH */
    3. All other styles are relative to that width, so no other changes should be required (continue reading for more info about styling the form)

USP Template Tags

The User Submitted Posts plugin provides several additional template tags for greater flexibility.

Display image attachments for submitted posts

This template tag displays the images attached to user-submitted posts:

<?php post_attachments(); ?>

The post_attachments template tag prints the URLs for the specified image attachments. It accepts the following parameters:

<?php post_attachments($size, $beforeUrl, $afterUrl, $numberImages, $postId); ?>

$size         = image size as thumbnail, medium, large or full -> default = full
$beforeUrl    = text/markup displayed before the image URL     -> default = <img src="
$afterUrl     = text/markup displayed after the image URL      -> default = " />
$numberImages = the number of images to display for each post  -> default = false (display all)
$postId       = an optional post ID to use                     -> default = uses global post

Return an array of attached images

This template tag returns an array of URLs for the specified post image:

<?php get_post_images(); ?>

Check if a post is a public submission

This template tag returns a boolean value indicating whether the specified post is a public submission:

<?php is_public_submission(); ?>

Styling the Submission Form

By default a CSS file is included with the submission form. It includes some basic styles for uniform structural and font display, but you will probably want to customize the look and feel of the form by adding a few styles of your own. The stylesheet includes all available selectors and is located in the following directory:

/user-submitted-posts/resources/user-submitted-posts.css

jQuery/JavaScript

Along with the stylesheet, an external JavaScript file is included on any page that displays the submission form. This file is located in the following directory:

/user-submitted-posts/resources/user-submitted-posts.js

By default, this file contains only a jQuery snippet for multiple image uploads. If you are customizing the form with additional jQuery/JavaScript, this is a convenient place to do so.

Screenshots

Here are some screenshots of the USP Settings Page, Posts Page, and Edit Post page:

Demo and Download

Download USP from the Plugin DirectoryCheck out the USP Demo

105 Responses

  1. Josiah says:

    Is there any way to set up Verve Custom Fields style boxes for user-submitted stuff? One could conceivably create a completely user generated site of any kind, anything from Yelp-type reviews to Craigslist-type classifieds.

  2. BP72 says:

    So would the admin be emailed when a user submits a post?

    Could a terms and conditions check box be added to the submit form before any images or content could be uploaded? (They own or have rights to the image, no affiliate links in article, article is original not PLR content, etc.)

    This could really open up Guest Posts to all WP sites.

    Thank you for posting this.

    • Jeff Starr says:

      So would the admin be emailed when a user submits a post?

      USP doesn’t send emails by default, but I’ve seen other plugins that should enable that sort of functionality.

      For the “Terms and Conditions”, there is a field in the Settings that may be used to include some text/markup, but the plugin would need modified to include a checkbox.

      I like the idea and will see about including it in the next update. Thanks :)

  3. Lee C says:

    Just about to try out this plugin as I think it may finally help me achieve the functionality I’ve been fighting for for nearly a year (wordpress may be flexible, but it’s bloody stubborn at times! X-D )…

    I do have a question though – could it also be used to upload video files? I’m assuming this would only require the addition of an extra upload field configured to upload various video files, but my enthusiasm has a habit of breaking my toys so thought I should check with you first… :-D

    • Jeff Starr says:

      Awesome, great to hear :)

      The plugin is designed for image uploads, and includes a variety of mechanisms to ensure min/max size, upload limits, and so on. I’m sure it’s possible to enable uploads of other file types, but maybe not as straightforward as adding a custom/input fields.

  4. WebMama says:

    Hi!
    Try to use it, but i see strange simbols instead category in admin panel, and autors name too, when I submit post. It is becouse I use cyrillic simbols (utf-8). How i can fix it? Thanks in advance!

  5. Scot says:

    Hi

    I’m getting an error saying the plugin doesn’t have a valid header. Using Genesis theme framework.

    Thx

    • Jeff Starr says:

      The only thing I can think of is maybe the /user-submitted-posts/ directory is nested within the extra plugin directory created by WP Plugin Directory for the zip file..

      • AJ Morris says:

        Hi Jeff, Just wanted to let you know that I get the same error when using the Headway Theme framework as well. Would be great if you could fix this. If you need a copy of Headway to test against, please let me know.

        Great work so far!

        -AJ

      • Jeff Starr says:

        Yes, thank you – the issue was with an extra/outer user-submitted-posts folder that the repository was wrapping the existing plugin with when creating the downloadable zip file. This has been fixed and should resolve in the Plugin Directory within the hour.

  6. Shawn says:

    Is it possible to add default post content?

    Also, does this image uploader resize images to the dimensions specified or is it up to the user to resize before uploading?
    thanks,
    - Shawn

    • Jeff Starr says:

      No option for default post content at this time. Interesting idea though :)

      The plugin lets WordPress do most of the work for image uploads, and will resize images according to your Media Settings. Users can upload any size image you allow, and then WordPress will create resized copies for you.

  7. BrenFM says:

    Howdy. As per Scot, I got the headers message when installing via the dashboard. The plugin does indeed nest itself too deeply. Probably a good idea to get that fixed unless you wanna turn off slightly less tech users.

    • Jeff Starr says:

      Thanks, this should be resolved within the hour (next time WP SVN updates). The current version should contain all files within one /user-submitted-posts/ folder.

  8. BrenFM says:

    Looking good so far, Jeff.

    Have tried image uploading too which has one minor bug on my end. If I select 0 as the minimum number of images to upload and I don’t select any images when using the form I get the following errors:

    Warning: getimagesize() [function.getimagesize]: Filename cannot be empty in /home/fruitbow/public_html/wp-content/plugins/user-submitted-posts/user-submitted-posts.php on line 280

    Warning: Cannot modify header information - headers already sent by (output started at /home/fruitbow/public_html/wp-content/plugins/user-submitted-posts/user-submitted-posts.php:280) in /home/fruitbow/public_html/wp-includes/pluggable.php on line 890

  9. BrenFM says:

    Had a bit more of a play with your plugin and it’s looking pretty solid so far.

    Re: the images: I tried using the post_attachments() function to display all images, but this simply broke an existing posts I had (the site I’m testing it on already has well over 600 posts, alot with images). Perhaps you could tie the following into an option in the plugin settings to automagically show all attached images? (scuse the messy cut and paste)

    add_filter('the_content','ups_show_images',1);
    function ups_show_images($content = '') {
         global $wp_query;
         $thePostID = $wp_query-&gt;post-&gt;ID;
         $ups_images_output = $content;
         $ups_images = get_post_meta($thePostID,'user_submit_image',false);
         if($ups_images) {
              foreach ($ups_images as $ups_image){
                   $ups_images_output .= "\n";
              }
         }
         echo $ups_images_output;
    }

    • Jesse says:

      Hi @BrenFM where would YOU plug this code in. I’m trying to make it so that the image attachment automatically gets posted everytime.

  10. Jason says:

    Hey Jeff, this sounds great, thanks! I had looked for something exactly like this… Photosmash is very similar but recently had it’s support dropped. This seems much simpler and will definitely give it a try. Also – love the DiW book. Thanks again.

  11. Steve says:

    Would it be possible for the first image uploaded to automatically become the featured image, ie post thumbnail?

    Thanks

  12. Constantin Weber says:

    Hi! Great plugin! Thanks for that!
    Is there a way that you display the actual (logged in) user as author without making them type in their name?

  13. I’M SORRY, MY ENGLISH NOT GOOD!! “/

    I would like to clarify some doubts … that in my first wordpress (perhaps by thema) does not hold the “custom fields” and believe that for this to occur the problem itself … even the person filling out the name and URL, in the view of the post ae displays the name of the person, but the link is directed to my administrator profile, why?

    Another doubt is that in my wordpress not insert images on my server, I wonder if there is the possibility of inserting an extra field for “url of image” for external images, it is possible?

  14. Tommy says:

    is it possible to restrict a user from posting in a particular cat… eg this is what i would like to do have 3 categories…..
    Admin
    User
    Anonymous…

    they will all be able to reach each post, but i want people to have to register to post as a user, do you understand?

  15. Tommy says:

    Also can i have users submit to pages also? like i want all submissions to goto the Browse page

  16. Azree says:

    Hi, how can i show the url of the post? There’s a field of URL but how to show it in the post?

    And, how to change the post to be owned by it’s respective poster?

  17. Jason says:

    Hi, I got around the error:

    Warning: getimagesize() [function.getimagesize]: Filename cannot be empty in /home/fruitbow/public_html/wp-content/plugins/user-submitted-posts/user-submitted-posts.php on line 280

    Warning: Cannot modify header information - headers already sent by (output started at /home/fruitbow/public_html/wp-content/plugins/user-submitted-posts/user-submitted-posts.php:280) in /home/fruitbow/public_html/wp-includes/pluggable.php on line 890

    by adding this line of code:

    if((count($fileData['tmp_name'][$i]) > 0) && ($fileData['tmp_name'][$i] != '')){

    Find this line of code in user-submitted-posts.php:

    for ($i = 0; $i < count($fileData[&#039;name&#039;]); $i++) {
    Add the new code after this line

    Find this line:

    if ($imageCounter == $settings[&#039;max-images&#039;]){ break;
    }

    After this code add:
    }

    An example of this form functioning can be found by visiting: http://www.wpinsite.com/contribute

    Thanks for an awesome plugin

  18. Susan says:

    I would love to use this, but I’m wondering how secure is it (spam, etc.)?

  19. Julian says:

    i think it’s good for guest posting

  20. scott says:

    I was wondering if a user can copy-paste YouTube Embed text into the field and will it later work? Or is there a way to handle this?

  21. Monika says:

    Hi
    this plugin works like a charme for me,
    but I need it in another language, how can I translate this and is it possible to show the min height or min width for images near the uploadbutton?

    thanks Monika

  22. sriganesh.M says:

    Hi , thanks for the Plugin!
    -=-=-=
    Can we use this to publish as a user submitted links in a page and not in a post.
    I mean to say work like a Community news section. i watn the user to submit with email and when i approve it should apper in a single page(not in homepage or post).

    any help ?

  23. My ‘post content’ box is limited to a certain height/size, and I may have users inputting long chunks of text. How do I make it unlimited?

    • Jeff Starr says:

      Add a height:500px declaration to the plugin’s CSS file, located at /resources/user-submitted-posts.css. Add it to this selector:

      #usp textarea#user-submitted-content

      Then change the 500px to whatever you prefer.

      • Hey Jeff, Thanks for the reply. Unfortunately, I had already played with those values. What I am trying to do is get an unlimited area, which means when the user hits the bottom of the content area and tries to keep going, a scroll bar appears (or something less complicated) occurs.

        Any guidance would be appreciated. Thanks again Jeff.

      • Jeff Starr says:

        My pleasure Jeff. I would maybe try adding overflow:auto to the same selector. That tells browsers to add the scrollbar when the number of lines exceeds the vertical space. I think that should do it, let me know if not.

  24. josh says:

    i installed your plugin and I was able to get the submit form to appear on the page i wanted. However, during my test post the image I selected does not show up in the post. What can I do to fix this?

    I am using wordpress 3.1

    Thanks.

  25. stephen says:

    Hi Jeff, nice work and it is looking very straightforward for both users and admin.

    However, I’m having a similar problem to Josh: the form appears, the post submits, but the image is not uploaded. Also, even though the number of images allowed for upload is set to ’1′ in the admin, I can merrily add as many as I like on the submit page.

    I’m guessing that a successfully uploaded image would be inserted into the post as a thumbnail and would also be available in the wordpress media library?

  26. IsraelWebDev says:

    @stephen I think the images are not automatically inserted into the post until you modify the theme.
    The files will be in the media library, and noted as attached to your post.
    You can see the image paths in the post’s custom fields.

    If your image dimensions exceed your max height/width, the images are not saved, and no notice is given. There should be an error message, and this might the cause of your problem. Not sure if setting to 0 causes pass or fail, but setting max dimensions to a really big number will certainly allow almost all images.

  27. Hi Jeff,

    Great plugin, should just about do what I’m wanting it to. Have you put any thought towards enabling this to work with Custom Post Types? Possibly having a text box, or drop down in the admin area to enter one?

  28. Hey Jeff, that worked perfectly!!! Thank you very much. I have one other question, I know there is a ‘redirect’ URL option, is there an element I can put in there that will redirect the user to the post they just uploaded (as I have moderation off)

    Thanks again, Jeff!!!

    • Jeff Starr says:

      Awesome, great to hear it :)

      Currently there is no option for redirecting to the current submitted posts, but it’s a great idea that I will look into for future updates. Thanks for the idea!

  29. This plugin has all the functionality I was looking for for my next project, which is a classifieds webiste.

    I have one query though – Is it possible to add extra fields (like location and price in my case) which will then be saved as the post meta so that they can be retrieved from within the loop?

  30. yiou says:

    How can add the post date on the form, I want the user to enter a date and this is published on that date only, it is kind of events that users submit, title, image, text and date of the event … I await your comments.

  31. THeath says:

    Hi Jeff, love this plug-in – it is exactly what I needed.
    Except, no images are showing up in the new posts. I know the intructions indicate to add this code to the template:
    But where would you add it – my theme has code for a SinglePost.php – is that where it goes?
    Thanks for your help!

    • Jeff Starr says:

      Place the template tag in the loop of any theme template file (such as page.php and you should be good to go. Note that there are more than one template tag for the plugin. One displays the form, and another is used to display the images in your loop. See the documentation for more information.

  32. THeath says:

    Hi Jeff, I have tired getting the images to show up for hours – no luck – please help – where does the template tag code go?

    • Jeff Starr says:

      You can include the shortcode into any post or page via the Admin, or you can use the template tag in the loop of any of your theme template files (e.g., page.php).

  33. Shannon Hilker says:

    I too have been trying for hours to get the images to show up in 3.1 to no avail, can you tell us in what php file the template tag should go and if anything else is required. I tried upping my image size as was previously stated but it doesn’t seem to be a file size issue. The plugin looks great otherwise, I just really need it to work, any help is greatly appreciated.

  34. Jeff Starr says:

    Hi Shannon, the template tag should be placed within the WordPress loop in any of your theme template files. I will test further on WordPress 3.1 to see if there are any issues specific to that version.

    • Shannon Hilker says:

      It turns out my theme had separated out the loop from the theme files so that is why it was not working when I added it to page.php I added it to all four files with loop in the name and now I have photos. Thanks for such a great plugin.

      • dp says:

        Shannon:

        How did you figure this out? I am trying and trying to get images to display. I have tried to add the to my single and page php. But, still cannot get images. I am not experienced with the terms everyone is using as far as loop. So, please help a rookie out. Thanks

  35. Would really like to see the first attached image set as the featured image. I’ve been searching for a front end post plugin that will allow only registered users the ability to post from the front end with the ability to upload a photo to their post and a bonus to be be able to edit their posts. All of the front end post plugins lack one of the two. This is the best plugin so far, yet I don’t like the idea that anyone can post without registering, there will definitely be problems with spam.

  36. eric says:

    Testing it now – works great but what about security? allowing users to send any type of file…

    what about allowing users to just send text instead of html?

    what about allowing certain html tags?

  37. Rohan says:

    Hi i tried this plugin in my blog. I find an error i wanna know how to fix it.

    In image upload there is link (Add another image) when i click it it taking me to top instead adding new box. But in your demo it add another box.

    How can i fix it so it add another box.

  38. Joseph Dowdy says:

    I would love to see uploaded images go straight into the library so that I can add them where I want in the post.

    Is that possible?

    • iCosmin says:

      I second this.

      Images should be uploaded as attachments, not as custom fields.

      And speaking of custom fields Jeff, have you considered allowing user defined custom fields?

      i.e. I have a classifieds site and want to use some custom fields in the form to let users select some options when submitting a post.

      Btw, here’s what I was working on lately.
      http://pastebin.com/1XAZvKz5

      It uploads the image as an attachment, sets the first uploaded image as the featured image and also, it checks the database to see if an exact post has already been submitted (not allowing the same post to be inserted again)

      Thanks for the plugin, I think I’ll mingle with it for a while :)

  39. silvercover says:

    Thanks for this valuable plug-in. How can we fully localize this plug-in without tweaking php source. I mean using PO files. there are _e and __ functions but I don’t see any load_plugin_textdomain() function. what should I do?

    Thanks in Advance.

  40. Vivek Parmar says:

    Great plugin. one question though but it would be great enough if you guide us on without using plugin (you know better using too many plugins will burden your blog)

  41. Charlie says:

    First of all, great plugin. Just what I was looking for.

    Couple of things:

    Not sure whether there is actually a functionality already built in to restrict the upload-able file types? I’d like to restrict it to just .png and .jpg images, not sure how easy this is to build into the plugin, my PHP knowledge isn’t up to much.

    I’d also love a functionality to automatically set an uploaded image to be the featured image, the system i’m using sets featured images of posts as thumbnails on a gallery page, so at the moment using this plugin nothing appears in the thumbnail area.

    Would it be possible to modify the plugin to use a smaller (than real size) image in the post body, but when clicked, the user is taken to the original image size? I managed to edit the plugin to allow the uploaded images to be links to the isolated image file, but i’m looking to have the post body contain the uploaded image as a thumbnail, that when clicked will open up the full-size image (and with floatbox functionality, but that is a seperate issue and probably easy to work into the plugin).

    Once again thanks for a great plugin, I know its still in the early stages, so I hope you appreciate this feedback and consider adding some of these features into new releases :) in the meantime, if you have any idea how I can do any of the above, that would be great.

  42. Ally says:

    I am very interested in using this plugin for a fundraiser site; is there a way to set the form where the site user posts text in the form fields, uploads one photo, and must make a payment using paypal before the post is submitted to the Admin for moderation/approval? Please advise, thank you!

  43. Hi dear Jeff

    How to add custom fields ?

  44. Charlie says:

    In follow up to my previous comment, I managed to fix some of the issues I outlined. However i’m having trouble automatically setting the uploaded image to be the ‘featured image’ (thumbnail) for the post.

    I’ve tried combining plugins such as Auto Post Thumbnail (http://www.sanisoft.com/blog/2010/04/19/wordpress-plugin-automatic-post-thumbnail/), which works great, but only if the image is actually embedded in the post content (ie, the post content field in the wordpress backend). As this plugin inserts the image as part of the loop as an ‘addition’ to the post’s content, the Auto Post Thumbnail doesn’t find the image to set as the featured image.

    I’m pretty sure it would be fairly simple to combine these two plugins by modifying this plugin so that the image code is actually embedded in the post’s content rather than inserted after using the template tag in the loop (so if you then went to edit a user submitted post in the wordpress backend, you’d see the code generated, and thus the image, by the template tag in the content field).

    Another way could be to somehow grab the first ‘gallery’ image (it would be the first image that is attached using this plugin) and set that automatically to the featured image. I couldn’t find a plugin or code to do this anywhere though.

    Seems a lot of people would like the image uploaded to be set as the featured image… Perhaps the plugin posted above could help you on your way to adding that into a future version. I’d try myself but I know almost nothing about coding :)

    • Jeff Starr says:

      Thanks for all the ideas. I would jump on this like right now and add some of these requested features, but I’m extremely busy these days and don’t have a lot of extra time to pour into free plugins.

      If/when my schedule clears, I’ll maybe revisit USP and see what I can do. Until then, you can hire me at Monzilla Media for modifications, enhancements, and implementations.

      Thanks.

      • Charlie says:

        No problem. Would be great to see an update at some point, but it’s understandable that you have more important things to focus on than a free plugin such as this. I might get in touch with you RE some mods on the plugin, though it’s for a personal project so I don’t have a budget per se. I suspect it’s a fairly easy fix (an auto-set featured image functionality that is) for someone in the know with PHP etc, which isn’t me, but if I figure out of a quick fix I will post it up here for anyone else interested.
        Thanks

  45. Gideon says:

    I was wondering if I can use this plugin to allow the user to submit a custom post type instead of a normal post?

  46. Nice plugin!

    Would be good to have the input box be a WYSIWYG editor.

  47. I also had a bit of trouble getting the images to display using the tags. So I wrote my own code to fetch the images. Include the following code within the loop in your single.php or page.php or any template file (or wrap it in a function):

    <?php global $wpdb;
         $query = "SELECT `ID`, `guid` FROM `$wpdb->posts` WHERE `post_type` = 'attachment' AND `post_parent` = '{$post->ID}'";
         $adimages = $wpdb->get_results($wpdb->prepare($query), OBJECT);
    // To display the first image.. ?>

    <img style="float: left; height: 100px;" src="<?php if(is_public_submission()){echo $adimages[0]->guid;} ?>" />

    <?php //And to display all the images...
         if($adimages) {
              foreach($adimages as $adimage) {
                   echo '<img style="border: 0px solid #E8E8E8; width: 110px;" src="' .$adimage->guid . '"/>';
                   //echo "<br />ID: " . $post->ID;
              }
         }
    ?>

    (The style tag isn’t necessary but you can use it to style your image and set height and width, etc).

    I hope that helps..

    • Joseph Dowdy says:

      Bonzy, This is really fantastic, but I’m pretty inexperienced with handling code. I can see that the tag didn’t come through right, so I’m wary of using this.

      Isn’t there some way we can just get the plugin updated with these fixes??

    • Charlie says:

      Only just saw your code snippets Bonzy!

      Looks great, though like you said there is a problem with the code displaying properly on this comment thread. You can use http://www.pastebin.com to post snippets and link them, would massively appreciate it if you could do that just so that there won’t be any syntax errors when using them.

      The restricted form for logged-out users looks useful too, I was using a secondary widget to block my submission page from unregistered users before, but there were some issues with that so it would probably be much better to use your code. Where exactly does that need to go (what file+where)?

      Thanks massively in advance, this will be an amazing tweak to the plugin!

    • Jesse says:

      Thank you! This is exactly the problem I was having and this is a great solution. It would be great to see this optioned out in the plugin.

  48. Charlie says:

    Misunderstood what you were trying to do with your code, Bonzy, seems its just an alternative to using the code included with this plugin.

    Is there a way of using the template tag to append the image attachment’s code to the content field, instead of generating the image code within the loop of the page?

    To clarify, an example of the fields of the submission form, and then the generated output:

    Form
    field: Title
    field: Content/description (the main post content)
    field: Image upload

    Output
    field: Title (as usual)
    field: Content + [img src code linking to attached file URL]

    Of course, the image could be automatically appended before the user-entered text input in the content field, or after their text input.

    That way, no existing posts with normally placed images (‘img src’ code within the content field) have duplicates (as the loop generates another copy of the attached image to the post).

    I think this is fairly simple, just a case of shuffling some code around? This would also allow the featured image to automatically be set, as there are plugins which scan the post’s content for an image tag and automatically generate the post thumbnail (featured image) but these don’t work for images placed on a page via the loop.

  49. sizi says:

    Hi! I have a problem with utf-8:
    the category name, in the admin panel and in the form doesnt works.

    How can i fix this?

    Thanks.

  50. carlos says:

    i just installed the plugin, because it seems to be perfect for my site.
    create the page to allow users to upload their own images, im all the tests i did, all worked perfect but it cant create or read the image, adding the file and then calling the image via HTML tags in the Post content.
    i’m using WordPress 3.1. php up to date, also it is a wordpress.org and not .com…
    hope to find a solution!
    thanks for this great plugin, do you have translated to spanish?

  51. Shannon Hilker says:

    Hi Jeff, are the photos supposed to display when you view the pending posts in the admin. I have gotten mine to show up once approved but we can’t see what we are approving until it posts live. Just wondering if there is an easy fix.

  52. MIke Bird says:

    Hi
    At the bottom of the “Plug-in” page there’s a picture of a feature to create custom fields – usp_custom-fields, but I can’t find it in admin?
    I’d like to be able to put more fields into the form so I can call them in the posts page (index.php)
    thanks
    Mike

  53. Hans says:

    Hi, Jeff

    The author’s url is stored in custom fild user_submit_url. Can it be anchored in the title of page or somewhere automatically. I saw no place to display the url in the post.

  54. Shaun says:

    I’d love to use this in conjunction with the plugin “Magic Fields” to allow visitors to a site to fill in posts, and to have custom fields in those posts.

    Do you have any plans to get this plugin working with Magic Fields?

  55. yaron says:

    Thanks for the plugin. Is there a way that the plugin will support Hebrew. When I write the name of the post author it come as an X in the admin panle

    Thanks

  56. Aaron says:

    I just installed the plug-in, but I don’t have the “settings” option available. All I have is “edit” and “deactivate.” Any thing I need to do?

  57. octopus-ride says:

    H)i Jeff,
    thanks for tour plugin.
    I added the featured image (it works on 3.1).
    Simply add in create_public_submission when you get attachmentId set_post_thumbnail(newPost,attachmentId);

    Sorry I can’t use dollar symbol.
    marco

  58. jeff says:

    Hello,

    I love the idea of this plug-in but am having an issue that doesn’t seem to be discussed above. I have installed the plug-in and customized to only have the persons name and their message, but when I test it, I get the default error message. Am I doing something wrong?

    Much appreciated

    Jeff

  59. Gabriel says:

    This plugin is great. Maybe you should add option to parameters the plugin.

    I’ve modified your code so that I’ll be able to post in any category pages and the content is automatically set up to the corresponding category.

    Also, I’ll be looking to add ajax in the forthcoming days.

    Thank you for your work ! Any git repo ? or SVN ?

  60. Elizabeth says:

    Thanks for this awesome plug-in!

    What is the simplest way to add custom fields?

    Thank you!!!!

  61. Gibb says:

    can you put some wysiwyg editor in this plugin?

    is it posible to have a standard wordpress media upload button for this plugin?

  62. Elizabeth says:

    How do you display in a post the URL that the user inputs?

    Thank you!!!

  63. Bryce says:

    My user uploaded photos go to the page with the shortcode and not the post itself. Anybody have any ideas about that? I will insert it into the post but would like it to be attached the the post so I don’t have to look for it.

  64. Jesse says:

    I can’t seem to get images to automatically get posted. Is this common? What could I be doing wrong?

  65. Sydney M says:

    Jeff,
    I have just the Name, URL & IMage upload fields enabled with the maximum img dimensions set to 800×800 & limit set from minimum = 1 to max = 2.
    However on submission, i get an error, i.e. no error message but the redirected URL reads ?submission-error=1. Are there are directory permissions I need to modify?
    Any insights/suggestions are appreciated.
    Thanks.

  66. msk says:

    great plugin thanks! one thing – how to set up redirect to submitted/published post (if it’s auto-approved)? Is this possible at all?

  67. msk says:

    huh, just found it. All I need is this string
    $redirect = get_permalink($publicSubmission);

    before this part of code

    $redirect = add_query_arg(array(‘success’=>1), $redirect);
    wp_redirect($redirect);
    exit();

  68. Amanda Wolfe says:

    Hi there! Great plugin–thank you! I need to be able to capture email addresses of users who submit posts (just like a comment form, I’d like to make that required). I thought about just changing the label on the URL field but I’d rather do it the “right” way if that exists. (Is this functionality that you may be planning to include on a future version? If not, any suggestions on how to accomplish?) Thanks so much!

  69. Scott says:

    Awesome plugin does everything I need and more. One question, any idea how to make the authors of these user submitted posts searchable within the site, currently when you click the authors name you just get a 404 error. I have lots of users posting on many occasions and I’d like to see see all that authors content pop up. Just thought I’d ask. Thanks again for this plugin!

  70. Kilwag says:

    Great plugin, exactly what I needed. Works good with the exception of a few things:

    If you click the “add another image” button and don’t actually add an image, it returns an error.

    Category names with an ampersand in them are not displayed properly in the dropdown menu.

    That being said, requests like min are the exact reason I am afraid to publish a plugin. “Hey… love this plugin but fix this and add this…..”

    Add this to the wish list. I’d like to be able to add a couple extra fields to the form, and designate some fields as “required.”

    But hey man, thanks for this. I’m going to deploy it almost as is, and as soon as I get a positive balance in that Paypal account I’m gong to fork over for the book. Good site.

  71. Kilwag says:

    I was having the same problem as Jason – Zero images set as minimum, but error message if you don’t upload an image. His fixe worked for me too, thanks Jason.