• How do I change HTML permissions for my blog, specifically, how would I allow people to use the IMG tag in comments?

Viewing 3 replies - 1 through 3 (of 3 total)
  • yourwordpressfolder/wp-includes/kses.php

    Find:

    $allowedtags = array

    and just below

    'i' => array(),

    add

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

    I haven’t actually done this – I would be leary of allowing the image tag in the comments…. I’m not positive about the ' /' => array() part but I believe that will give you correct output.

    I hope that came out correctly and that it helps.

    Thread Starter Syd_Lexia

    (@syd_lexia)

    Thanks, that worked great. I played around with it a little bit and it appears that src in the only subtag that you *need* to define. Of course, the others obviously won’t work if you don’t define them….

    Thread Starter Syd_Lexia

    (@syd_lexia)

    Alternatively, I tried to add a MyPolls.net poll to my blog:
    https://www.sydlexia.com/news

    But it is not working right. Specifically, the Vote button is absent. Is there anyway I can define tags for my own use so it works? The poll code is right here:

    ‘<FORM ACTION=”https://1506.mypolls.net/&#8221; METHOD=POST>
    <TABLE CellPadding=3 Border=0 CellSpacing=0>
    <TR><TD BgColor=”#9598FF”><FONT Color=”#000000″ face=”verdana” size=2><B>SydLexia.com – The First Movie Review</B></font></TD></TR>
    <TR><TD BgColor=”#C0C0FF”><FONT Color=”#000000″ face=”verdana” size=1><B>Which of the following movies would you *most* like to see reviewed on the site?</B></font></TD></TR>
    <TR><TD BgColor=”#C0C0FF”><input type=radio name=answer value=a1><FONT Color=”#000000″ face=”verdana” size=1>Suburban Commando (1991)</font><BR><input type=radio name=answer value=a2><FONT Color=”#000000″ face=”verdana” size=1>Cobra (1986)</font><BR><input type=radio name=answer value=a3><FONT Color=”#000000″ face=”verdana” size=1>Raw Deal (1986)</font><BR><input type=radio name=answer value=a4><FONT Color=”#000000″ face=”verdana” size=1>Demolition Man (1993)</font><BR><input type=radio name=answer value=a5><FONT Color=”#000000″ face=”verdana” size=1>Escape From New York (1981)</font><BR><input type=radio name=answer value=a6><FONT Color=”#000000″ face=”verdana” size=1>Scanners (1981)</font><BR><input type=radio name=answer value=a7><FONT Color=”#000000″ face=”verdana” size=1>Labyrinth (1986)</font><BR><input type=radio name=answer value=a8><FONT Color=”#000000″ face=”verdana” size=1>Stay Tuned (1992)</font><BR><input type=radio name=answer value=a9><FONT Color=”#000000″ face=”verdana” size=1>Encino Man (1992)</font><BR><input type=radio name=answer value=a10><FONT Color=”#000000″ face=”verdana” size=1>These are all horrible! ANY other movie would be better than one of these!</font><BR></TD></TR>
    <TR><TD Align=Center BGColor=”#9598FF”><Input type=button value=Vote!></TD></TR>
    <TR><TD Align=Center BGColor=”#9598FF”><A HREF=”https://1506.mypolls.net/&#8221; target=”_blank”><Font Face=verdana size=1 color=”#000000″>View Result</font></A></TD></TR>
    <TR><TD Align=Center BGColor=”#9598FF”><A HREF=”https://mypolls.net&#8221; target=”_blank”><Font Face=verdana size=1 color=”#000000″><b>Free Web Polls</b></font></A></TD></TR>
    </TABLE><Input type=hidden name=pid value=1506></FORM>’

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I change allowed tags?’ is closed to new replies.