Recent Topics

1 Jan 24, 2008 07:00    

In the "RenderItemAsHtml" bit you add this:

	// Break:
	$content = preg_replace( '¤\[video:break:(.+?)]¤', '<div class="videoblock"><object width="464" height="392"><param name="movie" value="http://embed.break.com/\\1"></param><embed src="http://embed.break.com/\\1" type="application/x-shockwave-flash" width="464" height="392"></embed></object></div>', $content );


In the "AdminDisplayToolbar" bit you add this:

	// Break:
	echo '<input type="button" id="video_break" title="'.T_('Insert Break video').'" class="quicktags" onclick="videotag(\'break\');" value="'.T_('Break').'" />';

If someone can do it without embed and shares it back that'd be swell!

It's not easy to grab the bit you need to embed because it's not in the address bar and they don't seem to like it if you copy out just a bit of their "embed" code. So you copy it to your clipboard, paste it into your post, delete 90% of what they gave you until you get the secret code for the video. You then select and cut that bit from your posting textarea, click on the "Break" button on your video bar, and paste it in.

Probably be easier to just write a nice summary of the video eh?

3 Jan 24, 2008 08:57

This is what I converted all the VideoPlugins to
Embeds the Break video and passes Strict Validation if you want that as well....

// Break:
		   $content = preg_replace( '¤\[video:break:(.+?)]¤', '<div class="videoblock"><object type="application/x-shockwave-flash" style="width:464px; height:392px;" data="http://embed.break.com/\\1"><param name="movie" value="http://embed.break.com/\\1" /></object></div>', $content );

4 Jan 24, 2008 16:59

Yeah I played with it a bit. Copied how others did it without embed, and figured so what ... and that probably someone else would know how to get 'er done.

Cool!


Form is loading...