Recent Topics

1 Jan 17, 2008 15:24    

I would really appreciate it... of if someone could let me know where to make a tweak so that my blog allows me to embed videos.

2 Jan 17, 2008 15:58

<object type="application/x-shockwave-flash" 
  data="http://www.metacafe.com/fplayer/1041454/dolphin_play_bubble_rings.swf" 
  width="400" height="345" id="VideoPlayback">
  <param name="movie" 
    value="http://www.metacafe.com/fplayer/1041454/dolphin_play_bubble_rings.swf" />
  <param name="allowScriptAcess" value="sameDomain" />
  <param name="quality" value="best" />
  <param name="bgcolor" value="#FFFFFF" />
  <param name="scale" value="noScale" />
  <param name="salign" value="TL" />
  <param name="FlashVars" value="playerMode=embedded" />
</object>

3 Jan 17, 2008 16:00

thanks

I also took as hack at it myself. This is what I came up with...(following the same format as the others.)

Add this entry to: plugins/videoplug_plugin/_videoplug.plugin.php

// Metacafe:
$content = preg_replace( '¤\[video:metacafe:(.+?)]¤', '<div class="videoblock"><object width="400" height="345"><param name="movie" value="http://metacafe.com/fplayer/\\1.swf"></param><param name="wmode" value="transparent"></param><embed src="http://metacafe.com/fplayer/\\1.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object></div>', $content );

4 Jan 17, 2008 16:13

Kick out the <embed> tag and what goes with it.. That's causing the problem in the first place. For the rest it looks ok to me. It works I presume?

5 Jan 17, 2008 16:55

in the list goes:

// Metcafe
$content = preg_replace( '€\[video:metcafe:(.+?)]€', '<div class="videoblock">
<object type="application/x-shockwave-flash" data="http://www.metacafe.com/fplayer/\\1" 
width="400" height="345" id="VideoPlayback">
<param name="movie"
value="http://www.metacafe.com/fplayer/\\1" />
<param name="allowScriptAcess" value="sameDomain" />
<param name="quality" value="best" />
<param name="bgcolor" value="#FFFFFF" />
<param name="scale" value="noScale" />
<param name="salign" value="TL" />
<param name="FlashVars" value="playerMode=embedded" />
</object></div>', $content );


In the list for the buttons goes:

echo '<input type="button" id="video_metcafe" title="'.T_('Insert Metcafe video like 123456/title.swf').'" 
class="quicktags" onclick="videotag(\'metcafe\');" value="'.T_('Metcafe').'" />';

You inset a video with:

[video:metcafe:1041454/dolphin_play_bubble_rings.swf]


or put:

1041454/dolphin_play_bubble_rings.swf


in the Metcafe box. That' is the string *plus* the name of the video.

Testblog: http://www.blog.hemminga.net/index.php?blog=9

Good luck

6 Jan 17, 2008 19:27

Afwas wrote:

Kick out the <embed> tag and what goes with it.. That's causing the problem in the first place. For the rest it looks ok to me. It works I presume?

[video:metacafe:000000/video_title]

yes it works when you add it to the _videoplug.plugin.php page and use the

It only has an issue with the embed when you try to use it in the post form.

I followed the format that was already use in the plug-in file... after a few tweaks it worked.

thank for the info you posted. good stuff.

7 Nov 25, 2008 05:56

Thanks for the info everyone.

I managed to set up the same for blip.tv embeds.

In the list goes:

// Blip TV
		$content = preg_replace( '§\[video:bliptv:(.+?)]§', '<div class="videoblock"><embed src="http://blip.tv/play/\\1" type="application/x-shockwave-flash" width="425" height="350" allowscriptaccess="always" allowfullscreen="true"></embed></div>', $content );

In the list for the button goes:

echo '<input type="button" id="video_bliptv" title="'.T_('Insert BlipTV video').'" class="quicktags" onclick="videotag(\'bliptv\');" value="'.T_('bliptv').'" />';

You insert a video with:

[video:bliptv:AwGFmUw]

or put the video ID in the box:

AwGFmUw

One other thing that might help someone, my editor was converting the PHP file to UTF 16 encoding without my knowing which caused the PHP file to corrupt. I'm not sure why this happened. It took me a while to figure out what was going on. :roll:

8 Nov 25, 2008 12:58

Hi dunc,

Good work. I would like you to try get the video playing with the <object> tag instead of the <embed> tag. <embed> is not compliant to the XHTML standard. Even if the whole world uses <embed> it's still better to use <object>. There's nice reading to be found if you Google for it.

Keep up the good work.


Form is loading...