=== Frontend Uploader === Contributors: rinatkhaziev Tags: frontend, image, images, media, uploader, upload, video, audio, photo, photos, picture, pictures, file Requires at least: 3.1 Tested up to: 3.4 Stable tag: 0.2.3 This plugin allows your visitors to upload User Generated Content. == Description == This plugin is useful if you want to power up your site with user generated content and give your users ability to easily upload it. Essentially, the plugin is a customizeable upload form that adds files with allowed MIME-type to your WordPress Media Library under a special tab "Manage UGC". There you can moderate your user submissions (cause, you know, you'd better moderate 'em): * Approve * Delete * Re-attach to other post/page/custom-post-type This plugin supports multiple uploads for modern browsers (sorry, no IE). It's enabled for default form. To use it in your custom shortcode add multiple="" attribute to input shortcode. Here's example of default form (you don't need to enter all that if you want to use default form, just use [fu-upload-form]): [fu-upload-form class="your-class" title="Upload your media"] [textarea name="caption" class="textarea" id="ug_caption" description="Description (optional)"] [input type="file" name="photo" id="ug_photo" class="required" description="Your Photo" multiple=""] [input type="submit" class="btn" value="Submit"] [/fu-upload-form] By default plugin allows all MIME-types that are whitelisted in WordPress. However, there's a filter if you need to add some exotic MIME-type. Refer to Other notes -> Configuration filters. = Translations: = * Se habla español (Spanish) (props gastonbesada) * Мы говорим по-русски (Russian) * Nous parlons français (Spanish) (props dapickboy) [Fork the plugin on Github](https://github.com/rinatkhaziev/wp-frontend-uploader/) == Installation == 1. Upload `frontend-uploader` to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. Tweak the plugin's settings in: Settings -> Frontend Uploader Settings 1. Use the following shortcode in post or page: [fu-upload-form] 1. You can moderate uploaded files in Media -> Manage UGC menu == Screenshots == 1. Screenshot of plugin's UI (It's looks like standard media list table, with slightly better Parent column and additional row action: "Approve") == Configuration Filters == = fu_allowed_mime_types = Allows you to add your custom MIME-types `add_filter( 'fu_allowed_mime_types', 'my_fu_allowed_mime_types' ); function my_fu_allowed_mime_types( $mime_types ) { $mime_types[] = 'weird/mime-type'; return $mime_types; }` = fu_after_upload = `add_action( 'fu_after_upload', 'my_fu_after_upload' ); function my_fu_after_upload( $attachment_ids ) { // do something with freshly uploaded files // This happens on POST request, so $_POST will also be available for you }` = fu_additional_html = Allows you to add additional HTML to form `add_action('fu_additional_html', 'my_fu_additional_html' ); function my_fu_additional_html() { ?>