1 deshman Jun 16, 2008 22:32
3 john Jun 17, 2008 01:48
Ok
1. Backup your current files.. plugins->videoplug_plugin
2.Download [URL=http://wow-factor.com/misc/videoplug_break.zip]this zip file[/URL]
Replace the original _videoplug.plugin.php with the one from the downloaded .zip OR simply edit your current file by simply adding the two sections related to Break in the downloaded file
EG: the render code
// 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 );
Cheers
and the "make a button" code..
echo '<input type="button" id="video_break" title="'.T_('Insert Break video').'" class="quicktags" onclick="videotag(\'break\');" value="'.T_('Break').'" />';
4 deshman Jun 17, 2008 03:25
hey man! thx for the code...i'll def give it a try! :p
5 eileanra Nov 07, 2008 19:48
Nice!
I try to do it with tinypic.com, but it seem I don't select the good part of the code and it not working (appear a black video box with nothing inside).
Someone could help me?
My friend put video last year on it and she had lost her HD, so we can't upload it soemwhere else and they are only on this site.
6 john Nov 08, 2008 10:30
@Eileanra
If I get some time this weekend I'll have a play with "tinypic" embeds
7 john Nov 09, 2008 12:50
Re TinyPic Video....
Open the folder -> plugins -> then the folder -> videoplug_plugin and edit videoplug.plugin.php
Find the section headed...
/**
* Perform rendering
*
Include the following block of code...
// TinyPic video:
$content = preg_replace( '¤\[video:tinypic:(.+?)]¤', '<div class="videoblock"><object type="application/x-shockwave-flash" style="width:440px; height:420px;" data="http://v4.tinypic.com/player.swf?file=\\1&s=4"><param name="movie" value="http://v4.tinypic.com/player.swf?file=\\1&s=4" /></object></div>', $content );
Now make your button...
Find the section headed
/**
* Display a toolbar in admin
And include the following block of code...
echo '<input type="button" id="video_tinypic" title="'.T_('Insert TinyPic video').'" class="quicktags" onclick="videotag(\'tinypic\');" value="'.T_('TinyPic video').'" />';
Backup your original videoplug.plugin.php and the replace it with your edited version.
Go to your posting screen, hit the TinyPic video button and when prompted simply enter the file=code as in the example below coloured red
<embed width="440" height="420" type="application/x-shockwave-flash" src="http://v4.tinypic.com/player.swf?file=2yzh2sx&s=4">
Cheers
8 lucbu Nov 24, 2008 19:13
Hi John,
Thanks a lot for your information, i adapt it for Vimeo HD video contents
This is the 2 parts to add
// Vimeo
[video:vimeo:(.+?)] $content = preg_replace( '¤\¤', '<div class="videoblock"><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=\\1&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=ff9933&fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=\\1&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=ff9933&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object> </div>', $content );
and for the button
echo '<input type="button" id="video_vimeo" title="'.T_('Insert Vimeo video').'" class="quicktags" onclick="videotag(\'vimeo\');" value="'.T_('vimeo').'" />';
You need to go to the embed section of your video in Vimeo to get the correct ID number (different from the one use for a standard access.
Best regards
Luc
Hi deshman and welcome to the forums
I have break.com included in my "video plugin"
I'll find the file for it and post a link to here for download as soon as I've woken up and had a coffee :)