WordPress.org

Ready to get started?Download WordPress

Forums

Can Pictures be posted in Comments (17 posts)

  1. Tignarius
    Member
    Posted 7 years ago #

    How can Authors and Contributors post pictures into their own Comments?

  2. LaaTINO
    Member
    Posted 7 years ago #

    i dont think so

  3. Tignarius
    Member
    Posted 7 years ago #

    With the greatest respect to LaaTINO's thoughts, does anyone have a definative answer to this question. I ask because, I want my registered users (above the level of author)to be able to debate design ideas with illustrations in their posts.

  4. whooami
    Member
    Posted 7 years ago #

    yes they can. its as simple as providing <img src=... in the comment content.

    example: http://www.village-idiot.org/archives/2007/03/20/gimmick/#comments

    6th comment.

    Granted the images have to be hosted already

  5. pizdin_dim
    Member
    Posted 7 years ago #

    "yes they can. its as simple as providing <img src=... in the comment content."

    No, they can't. At least not without a plugin of some type or maybe some hacking of the core. I've just tried it and the image tag gets stripped off.

    By default, only basic XHTML is allowed.

  6. Samuel B
    moderator
    Posted 7 years ago #

    Then how did whoo do it?

  7. pizdin_dim
    Member
    Posted 7 years ago #

    If you login, you can edit the comment and insert the image tag but I can't get it to work via the public comment form.

  8. Tignarius
    Member
    Posted 7 years ago #

    The 'villageidiot' site appears to be whooami's own site so he does presumably know how his site works. The operative as far as his option working seems to be that the picture is "hosted already" which I asume to mean that the image is alread in his database but used in another thread. What I am trying to do is give users above a certain degree the caperbility of posting/uploading a new image into a comment.

    I suppose essentially I would like to give the user (above that certain degree)the loggin 'write a post' posting screen. Alternatively is is possilbe to use the loggedin' Write a new posting' page to write a comment....?

  9. Chris_K
    Member
    Posted 7 years ago #

    (whoo is a her)

    The operative as far as his option working seems to be that the picture is "hosted already" which I asume to mean that the image is alread in his database but used in another thread.

    No, that's probably not what she meant. Hosted already, to me, would mean that the image is on a webserver and can be linked (flickr, photobucket, your own site, etc.).

  10. Tignarius
    Member
    Posted 7 years ago #

    Yes, I see your point Handysolo, but essentially the image is aready up on the web in the Whooami case. In my instance I am looking to post the image into the blog from ones machine rather than 'link' it.

  11. whooami
    Member
    Posted 7 years ago #

    pizdin_dim,

    I posted that image via a comment. The allowed tags within comments are clearly defined via a file (the name of which escapes me now).

    Note that the OP said contributors and authors, also.

    Tignarius, yes thats the operative phrase, "hosted somewhere" -- I obviously can and did upload that pic prior to embedding it.

  12. Tignarius
    Member
    Posted 7 years ago #

    Thank you Whooami. Does anyone else have a view or indeed, better still, a solution to my problem?

  13. whooami
    Member
    Posted 7 years ago #

    Im going to revisit this topic, since it came up again within another thread.

    You do not need a plugin to allow images to be displayed within comments.

    1. Crack open wp-includes/kses.php

    Locate the following line:

    $allowedtags = array ('a' => array ('href' => array (), 'title' => array ()), 'abbr' => array ('title' => array ()), 'acronym' => array ('title' => array ()), 'b' => array (), 'blockquote' => array ('cite' => array ()),

    Edit that line to read, as follows:

    $allowedtags = array ('a' => array ('href' => array (), 'title' => array ()), 'abbr' => array ('title' => array ()), 'acronym' => array ('title' => array ()), 'b' => array (), 'blockquote' => array ('cite' => array ()), 'img' => array ('alt' => array (), 'align' => array (), 'border' => array (), 'height' => array (), 'hspace' => array (), 'longdesc' => array (), 'vspace' => array (), 'src' => array ()),

    Save the changed file, upload.

    And as I stated earlier, the images MUST already be hosted somewhere. This does NOT address anyone being able to UPLOAD an image.

  14. Tignarius
    Member
    Posted 7 years ago #

    Hi Whooami

    Thank for the comeback. I spent a lot of time trying to find an easy solution for this. In the end I installed a Coppermine gallery alongside WordPress and found a theme for WordPress that had been ported for Coppermine. I tried to get the Coppermine Intergration plug-in to work, but it has been too long abandoned in previous versions and have resorted to the CoppermoneSC plug-in which works splendidly easily for myself. I hope my users will find it equally easy.

  15. flashbuddy
    Member
    Posted 7 years ago #

    Can't wait to see the fruits of your labor. It appears to me that flickr and photobucket are becoming the norm for hosting images where the user then has control to keep them available or not.

  16. revritamarie
    Member
    Posted 7 years ago #

    I would like to unpload picture on site. anyideas concerning this please email me at bancroftcentre@sympatico.ca

  17. Tignarius
    Member
    Posted 7 years ago #

    Hi Flashbuddy

    The blog is at http://www.scotsheraldry.com/blog and the gallery is at http://www.scotsheraldry.com/Gallery I will move the blog to the root URL shortly and link to coppermine from the blog only.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags