WordPress.org

Support

Support » How-To and Troubleshooting » Can Pictures be posted in Comments

Can Pictures be posted in Comments

Viewing 15 replies - 1 through 15 (of 16 total)
  • i dont think so

    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.

    whooami

    @whooami

    Member

    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

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

    Then how did whoo do it?

    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.

    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….?

    (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.).

    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.

    whooami

    @whooami

    Member

    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.

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

    whooami

    @whooami

    Member

    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.

    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.

    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.

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

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Can Pictures be posted in Comments’ is closed to new replies.
Skip to toolbar