WordPress.org

Ready to get started?Download WordPress

Forums

Upload Images to Comments (10 posts)

  1. scripter
    Member
    Posted 7 years ago #

    I have searched through here and have found ways to embed images to comments but have yet to find a way to upload an image to a comment. Basically all I am wanting to do is create a section of my site that will be for people to upload images to. and have them displayed in the comments section.

    so does anyone know of a plugin that does this or a hack that can accomplish the same thing?

  2. imagiscapeca
    Member
    Posted 6 years ago #

    scripter, I can't answer your question, but:
    I have searched through here and have NOT found ways to embed images to comments. I've found people asking that question, but no answers. Do you know how I can let users embed images in comments?

  3. Kafkaesqui

    Posted 6 years ago #

    "Do you know how I can let users embed images in comments?"

    http://wordpress.org/support/topic/112697#post-552631

  4. fitztrev
    Member
    Posted 6 years ago #

    I just created a plugin that allows for comment image embedding with no core code modifications. :)

    http://www.trevorfitzgerald.com/projects/wordpress-comment-images

  5. imagiscapeca
    Member
    Posted 6 years ago #

    I should have specified that I had seen whoami's edit of kses.php and rejected it because, as written on this thread:

    http://wordpress.org/support/topic/107538

    - whooami's suggested change to the kses.php file only allows my commenters to post ONE image ...
    - in fact users can't even include text or a link along with the image - the comment can only include an image.
    - (If, after posting, I click "edit comment", I am brought to an editor wherein I can paste multiple images, links and text, and it will save properly - can I set the default "post comment" textarea to be an inframe of this editor?)
    - would it help to disable kses.php?

    Better yet:
    Can I give comments a visual editor so users can click a button that prompts for the image url and description - I don't expect my users to use even simple code.

    Best of all, how can we enable users to:
    copy and paste images and videos from webpages into the comments?

  6. fitztrev
    Member
    Posted 6 years ago #

    I just made the plugin a little easier for your visitors.

    When a commenter wants to add an image, she clicks a link and a window pops up prompting her for the URL.

    This gets around the issue of the visitor having to use any markup code.

    Hope it helps.

  7. imagiscapeca
    Member
    Posted 6 years ago #

    Comparison of Fitztrev's plugin to editing kses.php:

    Does your plugin allow users to include text and links along with the image?
    Does your plugin allow users to include more than one image?

    If so, your plugin is what I need.

    (I like that your solution means users can click a button instead of typing in markup code.)

    (Still, it would be nice if users could just copy and paste multiple items including images and video and links and formatted text. Why is that not possible?)

  8. fitztrev
    Member
    Posted 6 years ago #

    imagiscapeca:

    >>Does your plugin allow users to include text and links along with the image?

    Yes.

    >>Does your plugin allow users to include more than one image?

    Yes.

    >>Still, it would be nice if users could just copy and paste multiple items including images and video and links and formatted text. Why is that not possible?

    Because the comment form is not a rich text editor. It will only accept plain text.

  9. imagiscapeca
    Member
    Posted 6 years ago #

    Thanks FitzTrev, your plugin is very good, perhaps the best that can be.

    You wrote that "the comment form is not a rich text editor, it will only accept plain text." Why? Why can't the comment form be a rich text editor?

    I will post three 'possibly possible' minor improvements to your plugin on your website
    http://www.trevorfitzgerald.com/projects/wordpress-comment-images

    Thanks again.

  10. imagiscapeca
    Member
    Posted 6 years ago #

    (I'm pasting my suggestions here as well as on Trevor's website, since people who can reply to these questions may come to wordpress but not Trevor's site.)

    Three possible minor improvements to your plugin:

    (a) instead of the "you can add images to your comment" text appearing after the "submit" button and the "notify me of responses to this post" checkbox, and in my case also after the cocomment 'cocobar' which appears directly under the textarea,
    can yours be inserted directly under the "code allowed" line, above the textarea?

    (b) enable multiple image insertion "one image per line", so if I have a collection I can copy and paste them all in one step

    (c) users can already right-click images and select "copy link location" and then paste that into the comment plugin, but for most people that requires too many clicks and scrolls. In Excel and OpenOffice, there is "Paste Special" which allows you to choose if you want to paste the text or the link (...). Can something similar be done on the web?

Topic Closed

This topic has been closed to new replies.

About this Topic