Boonex: Who's the HTML Purifier expert around here? ... is what I meant to title this.
I want to add another filter to allow embedding of Vimeo videos. I have the filter code, and it works for Vimeo, if I call it a YouTube filter, but I'm a little perplexed at how to completely implement the filter along with the YouTube filter. The documentation on htmlpurifier.org is probably crystal clear to them, but to me, it sucks.
I have added Vimeo.php to the directory: plugins/htmlpurifier/standalone/HTMLPurifier/Filter
I have added this line to inc/utils.inc.php: $oConfig->set('Filter.Vimeo', true); as shown below.
$oConfig = HTMLPurifier_Config::createDefault();
$oConfig->set('Filter.YouTube', true);
$oConfig->set('Filter.Vimeo', true);
When I post a news article with Vimeo embed code within, I get these php warnings:
Warning: Cannot set undefined directive Filter.Vimeo to value on line 1114 in file /plugins/htmlpurifier/HTMLPurifier.standalone.php on line 3483
Warning: Cannot modify header information - headers already sent by (output started at /plugins/htmlpurifier/HTMLPurifier.standalone.php:3483) in /inc/classes/BxDolTextData.php on line 170
Warning: Cannot modify header information - headers already sent by (output started at /plugins/htmlpurifier/HTMLPurifier.standalone.php:3483) in /inc/admin_design.inc.php on line 56
As far as I can tell, all configuration directives are stored in /plugins/htmlpurifier/standalone/HTMLPurifier/ConfigSchema/schema.ser, which is of a format I do not understand at all. I have no idea what the process is of definining a configuration directive, so this all works.
I could sure use some help on this because I'm ready to rip my eyeballs out of their sockets