• Just above where a user would insert a new comment the following HTML code breaks through onto the web page

    Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title="" rel=""> <b><br />
    <blockquote cite=""> <em> <i> <strike> <strong>

    It seems to come from wp-comments.php

    <?php _e("Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed:"); ?>
    <code><?php echo allowed_tags(); ?>

    My php is not yet good enough to see what is wrong. What *should* be there?

Viewing 9 replies - 1 through 9 (of 9 total)
  • That should be there. It tells the commenters what tags they can use in their comments as they aren’t allowed to use everything (such as embedding evil codes or suspicious images)

    Thread Starter poppy

    (@poppy)

    How do I change wp-comments.php to correct it? I don’t know where to find allow_tags().

    Thread Starter poppy

    (@poppy)

    Just realised you mean it really should look like that. Mmm. Think I’ll make that nicer…

    What needs correcting?

    If you want to remove/add allowed tags you need to edit a file called kses.php. By doing a search here on ‘allowed tags’ will show threads on the syntax in that file (for example how to allow images). Or you can just inspect the structure of the file and add tags in a similar way.

    Thread Starter poppy

    (@poppy)

    I didn’t think you meant that
    <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> should actually appear on the page.

    I sure did 🙂 As I said, that lets your visitors know what sort of tags they are allowed to use

    Depending on my audience, I’d rather not display those lines. It looks cryptic to most people. I’d rather replace them with some quicktag buttons. Most people are more familiar with B, I, etc buttons found in word processor; so, those will make more sense to them

    There’s a plugin for that (making buttons instead of tags…) but I think it simply makes a similar row of buttons as on the post editing page so I don’t know if it’s any less cryptic. Now where did I see it… Ah, here it is, called Comment Quick Tags.

    Thread Starter poppy

    (@poppy)

    Great – I’ll have a look at that!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘HTML appears in comment insertion form’ is closed to new replies.