logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$15
Can users add images to comments?

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

This question has been answered.

Ross Gosling | 06/12/12 at 7:26am Edit


(6) Possible Answers Submitted...

See a chronological view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    06/12/12
    7:38am
    Daniel Yoen says:

    hello,

    Try this plugin :

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

    Hope this help,
    :)

  • avatar
    Last edited:
    06/12/12
    7:41am
    Francisco Javier Carazo Gil says:

    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

  • avatar
    Last edited:
    06/12/12
    7:43am
  • avatar
    Last edited:
    06/12/12
    8:16am
    Jatin Soni says:

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

  • avatar
    Last edited:
    06/12/12
    10:27am
    Kailey Lampert says:

    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 false
    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.

    • 06/13/12 7:11am

      Ross Gosling says:

      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

    • 06/13/12 11:02am

      Kailey Lampert says:

      Sure, you can message me through the site or email me directly at trepmal@gmail.com

    • 06/13/12 12:25pm

      Ross Gosling says:

      Thank You for completing the work Kailey :)

  • avatar
    Last edited:
    06/12/12
    11:00am
    Lawrence Krubner says:

    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.

This question has expired.



Gabriel Reguly, Ross Gosling, Francisco Javier Carazo Gil voted on this question.



Current status of this question: Completed



Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.