• Trying to unsuccesfully edit “kses.php” in order to give commenters access to more allowed HTML tags, I notice a comment line saying you can modify the tags allowed in the “my-hacks.php” file.

    Trouble is I cannot find this file. Does it have to be created? If so, is there a sample I can get hold of, with some explanation of the syntax?

    My aim is to give commenters acess to a lot more tags than the very basic ones allowed to them by default.

Viewing 3 replies - 1 through 3 (of 3 total)
  • my-hacks.php is created by you, yes, and using it requires nothing more than creating it, and putting some php in it. The file also needs to go in the root of your WP install, ie, where your wp-config.php is.

    One other thing you do need to do though, is enable it in your wp-admin area. It should be under Options –> Miscellaneous:

    Use legacy my-hacks.php file support

    Thread Starter WhyNot

    (@whynot)

    Ok, thank you. When you say “use legacy my-hacks.php file support” … what does it mean exactly?

    I’m no php programmer, but there are a few things which, when I see a php file I can hope, praying hard, to modify, and many others where I have no clue whatsoever.

    I am hoping with something with some examples of code. I tried to fiddle around with the 2 lines in the kses.php files, leaving the first one alone, and trying to copy bits and pieces of it to the second line, and even tried to copy the entire first line replacing the second line with it but causes the blog to start with an error on line such and such.

    What I am getting at is that if there isn’t some kind of basic tutorial on the syntax to do what I want, I will be helpless.

    I mostly want to be able to give commenters the ability to add pictures (img src= ….) , font size choice, and ordered/unordered lists.

    I would be interested in an example my-hacks.php file that adds back the class and styling.

    thanks,
    nada

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘my-hacks.php’ is closed to new replies.