Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Can users add images to comments? WordPress

  • SOLVED

I have a wiki site that only logged in users will be able to access.

I would like to be able to allow logged in users to easily add images to their comments.

I have found a plugin which is good, but only allows the image URL to be added.
Is there a way to allow images to be uploaded via an image upload form?

All users will be logged in, no-one will be able to see the site without logging it, but I am trying to keep everything done on the front end of the site without the need of logging into the wordpress admin.

This is the plugin that is the closest so far:
http://wordpress.org/support/plugin/wordpress-comment-images

Answers (6)

2012-06-12

Kailey Lampert answers:

I've been using this to get not only an upload/insert button, but also some formatting buttons:

add_filter( 'comment_form_field_comment', 'cffc_test' );
function cffc_test( $field ) {
if (!is_single()) return $field; //only on single post pages.
global $post;
ob_start();
wp_editor( '', 'comment', array(
'tinymce' => false,
'textarea_rows' => 5,
'quicktags' => array(
'buttons' => 'em,strong,link,img,code',
)

) );
$editor = ob_get_contents();
ob_end_clean();
//make sure comment media is attached to parent post
$editor = str_replace( 'post_id=0', 'post_id='.get_the_ID(), $editor );
return $editor;
}

If you don't want the extra buttons, you can just change the value of 'quicktags' from the array to <em>false</em>
Mine also loads only on is_single() because of the way some js is used on my site - this can likely be removed if needed.


Ross Gosling comments:

Thanks Kailey, this looks like a good way of doing it. Would you be able to implement this to my site if I was to supply FTP details?

Thank You


Kailey Lampert comments:

Sure, you can message me through the site or email me directly at [email protected]


Ross Gosling comments:

Thank You for completing the work Kailey :)

2012-06-12

Daniel Yoen answers:

hello,

Try this plugin :

http://codecanyon.net/item/comment-image-upload-images-with-comments/112119

Hope this help,
:)

2012-06-12

Francisco Javier Carazo Gil answers:

I knew a plugin that allow what you want, but now this not exists: Easy Comment Uploads.

Now there is a premium plugin: http://codecanyon.net/item/comment-image-upload-images-with-comments/112119

2012-06-12

Rashad Aliyev answers:

I suggest you other free system. [[LINK href="http://wordpress.org/extend/plugins/re-vu-comment-system/"]]http://wordpress.org/extend/plugins/re-vu-comment-system/ [[/LINK]]


Rashad Aliyev comments:

[[LINK href="http://wordpress.org/extend/plugins/re-vu-comment-system/screenshots/"]]Screen Shoots here. [[/LINK]]

2012-06-12

Jatin Soni answers:

Try this free plugin
http://wordpress.org/extend/plugins/easy-comment-uploads/

2012-06-12

Lawrence Krubner answers:

Interesting. I was working on something similar for the TMA blog, and had some written some code a little like what Kailey Lampert has done, but I like her implementation more.