Viewing 9 replies - 1 through 9 (of 9 total)
  • Why not just type it out?

    Thread Starter linuxawy

    (@linuxawy)

    looks like wordpress is filtering the HTML you enter in a post, so the video won’t show up. tell me where to hack and I’ll play with it and submit a patch

    Are you sure you’re a blog administrator who has unfiltered_html capabilities?

    Thread Starter linuxawy

    (@linuxawy)

    I’m the blog administrator in WPMU and I still can’t do that, I also want to give this feature to those who can post in blogs, it should be really easy, no?

    I’ll take a look at the code when I get some free time

    Oh, WPMU? You didn’t mention that. That would be the problem. Due to the nature of WPMU, only certain HTML tags are allowed.

    You need to use the edit_allowedposttags filter to allow the the additional tags. ??

    Thread Starter linuxawy

    (@linuxawy)

    1- I don’t know how to do that, but I took a look at kses.php and I think this is where I should hack, but that would vanish upon my next update.
    2- It would be really much prettier if it’s in the plugin, no?

    No editing of the core files. Use the filter.

    add_filter( 'edit_allowedposttags', 'LiNuXaWy_kses' );
    
    function LiNuXaWy_kses( $allowedposttags ) {
    	$allowedposttags['video'] = array();
    	$allowedposttags['video']['src'] = array();
    	$allowedposttags['video']['controls'] = array();
    
    	return $allowedposttags;
    }
    Thread Starter linuxawy

    (@linuxawy)

    and where should I put that?

    In a file in mu-plugins.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Viper’s Video Quicktags] Support for HTML 5 Video Tag’ is closed to new replies.