Recent Topics

Video Plugin plus Flash

Started by on Jan 08, 2008 – Contents updated: Jun 10, 2013

Jan 08, 2008 23:55    

This is an "edit" of @fplanque's _videoplug.plugin.php that adds a Flash button to the video toolbar... ( space efficient and sort of related )

Clicking the Flash button prompts for...
URL for your SWF
Width , in px or %, of your SWF
Height , in px or %, of your SWF

It renders in your posting screen as.....


[object:SWF: width:450px height:250px]

It outputs valid xhtml (no embed tag) in your post as...


<div class="videoblock">
                  <object type="application/x-shockwave-flash"
                  style="width:450px; height:250px;" data=
                    <param name="movie" value=
                    "" />

It wouldn't have seen daylight without [URL=]¥åßßå's[/URL] preg_replace smarts and patience, as I still can't code my way out of a wet paper bag.
It also drew on the [URL=]Lady Ease[/URL] Flash plugin.

The revised videoplug.plugin can be downloaded [URL=]HERE[/URL] and an example post is [URL=]here[/URL].

To install, simply locate the plugins folder on your server, then the video_plugin folder and simply replace _videoplug.plugin.php with the content of the zipped download.
Note: back up all original files.

Also, in the Admin go to "plugins" and click on "Reload Plugins" just to be sure you have the new version in action.


Jan 09, 2008 00:41

You bloody cheapskate, yah never even gave me a single rep point .... I'm gonna add you to my ban list :|

Ohhh, and don't think of donating one now, I'll know it's just a guilt thing.

Mind you, I do have my own tag on your blog ;)

To make you doubly guilty though I'm gonna throw you some vote love for creating your first plugin and continuing your "giving back to the community" path ..... try not to let the guilt weight to heavily on yer shoulders huh?


Jan 09, 2008 00:54

Slumps off to a dark corner and frets over a life of repeated omisions. What makes it worse is that it's already a New Year and far too late to make a stiff resolution to change.

Jan 09, 2008 01:23

That's a start, by page two I may actually feel sorry for yah ...... just kidding, it'll take until page 4 of grovelling :|

Just to reinforce my positive and encouraging reputation :

"seriously mate, FANTASTIC modification of the core plugin, I'm DAMN SURE many users will find it a lifeline. CONGRATULATIONS on not only thinking of it, but coding the solution. YOU ROCK"

Hope yah feel like shit now :|


Jan 09, 2008 01:29

Nothing doing before next year, at the earliest.

Jan 09, 2008 01:35

I'll never remember to guilt trip yah by the time next year arrives, I'm a bloody blonde we don't have minds :(


Jan 09, 2008 23:34

In a huge show of support you will be pleased to know your name now passes my spell checker and looks like it should , thanks to Afwas and his DB magic )

Jan 09, 2008 23:49

Imagine how much you'll have grovelled by page 4 :D

WTG Afwas we should crown him the king of charset corrections :D .... I hope you gave him some rep points, otherwise yer gonna look uber cheap :|


Feb 29, 2008 23:22

More and More sites have the EMBED Object code

Is there a way to enabled a free HTML code page button?

Or a way to enable the <object></object><embed></embed> tags?

Mar 02, 2008 06:32

You can use embed tags anytime.
There s no reason not to apart from the fact embed is deprecated and I just prefer to have pages that have valid code.

Sep 15, 2008 04:26

is there a certain type of software needed to upload the flash video other than the plug in?

Sep 21, 2008 17:05

Hi d0b3rm4n. So ... if people read this thread they may be very happy with this and see no need for another plugin. Just sayin ;)

Oct 21, 2008 16:21

Hello all, how do you get the video toolbar to appear in the first part? Is that a download/ plug-in which then also requires a flash plug-in for flash?

Oct 21, 2008 19:05

Hi Aaron,

If you write a post, click the 'expert' tag and you will find the Video toolbar.

Good luck

Nov 14, 2008 00:06

this doenst work for vimeo, does it?
The plugin works fine, but I cant get vimeo to work

Nevermind it works now, its just checking the actual link in the embed source code

Nov 25, 2008 13:28

Hi John,
I just made a copy of the flash definition and button creation into my videoplugin, but it doesn't work... nothing happens when i click on the flash button. Any idea on this issue, i'am using the 2.4.5 version.
Based on your explanation for break, i have added vimeo which is working well, then i have no idea of the reason why i face this pb with flash.
Thanks and best regards

Nov 25, 2008 20:50

have you also included the edited javascript?


<script type="text/javascript">
      function objecttag( tag )
                  var object_ID = prompt('<?php echo TS_('Enter the url of your') ?> '+tag+':', '' );
                  if( ! object_ID )
                  var object_width = prompt('<?php echo TS_('Enter the width, using px or %, of your') ?> '+tag+':', '' );
                  var object_height = prompt('<?php echo TS_('Enter the height, using px or %, of your') ?> '+tag+':', '' );
                  tag = '[object:'+tag+':'+object_ID+' width:'+object_width+' height:'+object_height+']';
                  textarea_wrap_selection( b2evoCanvas, tag, '', 1 );
      function videotag( tag )
        var p = '<?php echo TS_('Enter video ID from %s:') ?>';
        var video_ID = prompt( p.replace( /%s/, tag ), '' );
        if( ! video_ID )
        tag = '[video:'+tag+':'+video_ID+']';
        textarea_wrap_selection( b2evoCanvas, tag, '', 1 );

Nov 26, 2008 02:09

Yes yes yes... i didn't see it. I add it and now everything is perfect.
Thanks a lot

May 26, 2009 02:03

Hi there!

Excelent plugin btw! It was what I was looking for. I only have one question: Does anybody knows if it is possible to add some controls as play or pause?

I know I could right click and select play from the menu, but not all the people know this...

thanks in advance...

May 30, 2009 15:13

Hello guys,


1. What's the difference between this one and EdB's super video plugin?
2. How can I incorporate the AM player into it. I already have a bunch of posts with the combined AM-video plugin. I modified the original video plugin thusly (to get it to insert AM audio automatically. I assume that replacing it with this plugin will break it).:

Crack open /plugins/video_plugin/_video.plugin.php and add around line 73:

// music (mp3 etc)
$content = preg_replace( '~\[video:music:(.+?)]~', '<!-- amAudioPlayer \\1 -->', $content );

and around line 110:
echo '<input type="button" id="video_music" title="'.T_('Insert music file').'" class="quicktags" onclick="videotag(\'music\');" value="Music" />';

May 30, 2009 19:12

1. There is no difference..EdB simply incorporated this into his rewrite of the Video plugin.

Jun 01, 2009 04:11

Is there a was to incorporate the music addon so that my links will still work?

Jun 02, 2009 17:12

Ah sorry 'bout that. I'll get on this after tomorrow's shift at work. (marking for followup...)

Jun 29, 2009 20:36

I'm anxious to try one of the super plugins, but I can only do it if it doesn't break the AM music player links I've created with the modification above. Is there a way to do this?

Jun 30, 2009 11:37

nelsonguirado wrote:

but I can only do it if it doesn't break the AM music player links I've created

You should change all the AM links to the new types of links in your database ;)


Jul 01, 2009 03:01

Hmmm. There are hundreds of such links. If there were some kind of database script perhaps...

Will I have AM audio functionality?

Jul 01, 2009 11:16

You'd need to merge the AM player into this plugin, but none of it should be to difficult


Jul 06, 2009 18:59

Can anybody do it for me? Sorry to sound so helpless.

Jul 23, 2009 03:33

Can anybody help me to add the AM music player to the video plug in so that all of the posts I made with the AM music player-modded video plug in will work? I'd appreciate it very much and, as always, I don't mind helping back in return.

nguirado Aug 04, 2009 05:20

nguirado Visitor

I inserted the code and it worked, including my old AM music player posts, but I didn't notice any difference from the old one.

Sep 05, 2010 13:43

Is it possible to use this plugin for .swf AND for .flv Movies? They apear very simular and it would be great to know how I could adopt it for pages like myself..

Form is loading...

powered by b2evolution free blog software – This forum is powered by b2evolution CMS, a complete engine for your website.