Diff for adding metacafe videos as a support type
111c111
< '/<video(?>\s+)type=(["\'`])((?>\w+))\1(?>\s*)>([A-Za-z\-_\d]+?)<\/video>/is',
---
> '/<video(?>\s+)type=(["\'`])((?>\w+))\1(?>\s*)>([A-Za-z\-_\d\/]+?)<\/video>/is',
143a144,145
> case 'metacafe' : return ('<embed src="http://www.metacafe.com/fplayer/'.$ID.'.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>');
>
What do you mean make it work? All you need to do is install the extended text formatter addon, then write a full URL into the comment box as so:
http://www.int0rw3b.com
then make sure your comment is formatted as text.
No?
heh, forgot to set the default settings back...
btw, if any of you want to mess with it (try to break it, etc.), you can test a live version of it at http://sirnot.110mb.com/htmlformatter.php
Comments
/>
, rather than just a>
? thanks!This is a <b>test</b>.
And the result was...
This is a <b >test</b>.
Note the space in the opening bold tag?