WordPress.org

Forums

Image tag in comments (4 posts)

  1. musicroad
    Member
    Posted 10 years ago #

    Hi,

    i had looked around in forums and add in the img array tag into kns.php

    I had manage to use img src tag in comment posting.

    But the bug are the width and height couldn't be add into kns or it will cause error.

    And the img src couldn't specify width height

    thus the image too big and my theme went haywire.

    *_*

    So now disable img tag.

    Would appreciate if someone could advise.

    Thanks

  2. moshu
    Member
    Posted 10 years ago #

    So now disable img tag.

    I guess you did the smart thing. I don't see any reason to let commenters to include a 1 MB picture in their comments :)

  3. ColdForged
    Member
    Posted 10 years ago #

    If you really want to allow images in your comments, add the following line into your kses.php file under, for instance, the 'i' => array(), line:

    'img' => array('src' => array(), 'alt' => array(), 'width' => array(), 'height' => array()),

  4. musicroad
    Member
    Posted 10 years ago #

    i had try that. Unfortuntaely it not working.

    anyway i had disable all the html tag in kns.

    so now only textile.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.