Recent Topics

1 Sep 21, 2008 02:04    

Hi,

I wanted to add .flv Flash Videos embedded in my blogs. And because I could not find anything that my needs fulfilled, I decided to write such a plug-in. As player I choose "Flowplayer" (http://flowplayer.org/), because it was the one I understood after a short time. As far as I read in this forum others are also looking for something like that, so I gonna share what I have wrote so far.

I warn you... this code is just tested in my blog with Version b2evo 2.4.2 and also the descriptions and labels etc. may sound strange or unclear.

You can download the plug-in here:
http://downloads.sourceforge.net/phpess-ng/flowplayer_plugin.zip

The installation is like other plug-ins:
- extract the .zip into your b2evolution/plugins directory
- install it as admin in the global settings/plugins install section
- configure the size (the default value is for .flv's with a size of about 320x240) of the player an the look'n'feel (Classic,Light,Dark and LP, these are the versions which are included in the package from http://flowplayer.org/) of the player in the plug-in configuration

Upload any .flv files into the media folder (not into a userfolder) of the blog. To do so, you might have to add .flv extention as allowed files as admin under global setting/file types:
flv; Flash Video; application/x-shockwave-flash; download

To embed a .flv in your blog item add the following text:
[video:flash:FILENAME]

Replace FILENAME with the name of the .flv-File without the ending ".flv". I added 2 buttons labeled with "Flash", they work the same as the buttons in the video_plugin. Not yet sure what is better below the textbox or above in an own section. Any comments?

Feel free to use my plug-in and send me any feedback.

cheers

2 Sep 21, 2008 17:05

Hi d0b3rm4n. Welcome to the forums ... and thanks for the plugin!

Is there any way you can simply incorporate it into the existing video plugin? Cuz see I'm (still) busy completely redoing the videoplug plugin. I have John's SWF embedder, and the metacafe embedder that now works easier, and I've added a couple of other sources, and it resizes third party embeds to suit your skin. So it might as well embed .flv files eh? So what you think? Could this have been part of the videoplug plugin, or is it very very different?

BTW the current snag is that it threw an error when there wasn't a video embedded. I wonder why I didn't think of testing that when I was testing everything I was embedding?

3 Sep 21, 2008 23:08

Hi Edb,

after I read the post "[url=http://forums.b2evolution.net/viewtopic.php?t=13846]Video Plugin plus Flash[/url]" I was not sure that this would be a good idea (to have this in the video_plugin plug-in)... but since I used the videoplug plugin as template for my plugin I guess it should not be that hard to add this to the videoplug plugin. The player and javascript I use from http://flowplayer.org/ in my plug-in can also be included into the videoplug plugin.

Sorry I don't understand what you mentioned about the error, which is threw when there wasn't a video embedded... can you give me some details?

regards

4 Sep 22, 2008 01:35

The error thrown is what is causing me to not release an updated version of videoplug. I haven't had time to look at your new plugin because of having a stupid job to go to ... and actually not having a .flv file handy to play with it with.

Anyway back to your initial question: the option to put the button down below the post is available of course, and sort of makes sense for a one button item, but I would put it up above instead. Add another toolbar is what I mean. Here is my logic: it is a renderer just like the videoplug plugin, so there ya go! That's what I did with a lyric embedding plugin: added a whole toolbar for one button.

I guess the thing is if you add it below then another plugin does that then another then another we'll all have a bunch of buttons crowding out the "post function" buttons that really should be with the "post content stuff" buttons.

5 Oct 05, 2008 18:25

hi
i do not know much about coding. i started learning from you guys. To embed flash, i just created a folder on my server and edited the video plugin to point to that folder. Now i get a button in admin just like you get for youtube. to add videos, i click on the button and give the file name in the popup box (eg; filename.swf]) and upload the flash file to the floder which i have created on the server. i am posting the code which i have add to video plugin. if there is anything wrong please let me know.

// myseda:
$content = preg_replace( '¤\[video:myseda:(.+?)]¤', '<div class="videoblock"><object data="http://www.myseda.com/video/\\1" type="application/x-shockwave-flash" width="400" height="300"><param name="movie" value="http://www.myseda.com/video/\\1"></param></object></div>', $content );



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

6 Apr 29, 2009 07:36

Hello, I have install the plug in, and it's great with Firefox but with Internet Explorer (7) there is nothing. Only it tell thant the page have error and I can't see the player.

What is the problem? Thanks you

Ernesto Bustos

7 Oct 21, 2009 07:19

I have spent many hours attempting to get a video on a blog and have settled on converting all of them to flv. I am now trying to get an flv plugin for the site, but am not having much luck.

I am running 2.4.2 and installed the entire flowplayer_plugin in the "plugins" folder of my "blogs" directory. I have added flv video to the "media"directory.

Here is my example titled "Test": http://www.cornerstonewebsites.com/blogs/index.php?blog=4.

[video:flash:2008October-lo]

All I get is this: . Any ideas?

9 Oct 23, 2009 08:29

Thank you for the help! This will benefit my consumers greatly.

Here is the code that finally worked for me. I just manually entered all of this in the post:

<div align="center">
<<object type="application/x-shockwave-flash" width="320" height="240" data="http://cornerstonewebsites.com/flowplayer/flowplayer.swf">
<param name="movie" value="http://cornerstonewebsites.com/flowplayer/flowplayer.swf" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="bgcolor" value="#000000" />
<param name="flashvars" value='config={"playlist":["http://stjohnkaukauna.com/promo_video/Welcome.jpg",{"url":"http://stjohnkaukauna.com/promo_video/Welcome.flv","autoPlay":false}]}' /></object>
</div>

10 Oct 23, 2009 21:03

This is what the plugin inserts:

<!-- 
		include flashembed - which is a general purpose tool for 
		inserting Flash on your page. Following line is required.
	-->
	<script type="text/javascript" src="http://www.blog.hemminga.net/plugins/flowplayer_plugin/flashembed.min.js"></script>
	<script>
	/*
		use flashembed to place flowplayer into HTML element 
		whose id is "b2evo_flash_b8d17b59ebfa2e63de8f55f2828826db" (below this script tag)
	 */
	 flashembed("b2evo_flash_678fbfa1ca6db951cf2a6225bec8ff31_b8d17b59ebfa2e63de8f55f2828826db", 
	
		/* 
			first argument supplies standard Flash parameters. See full list:
			http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701
		*/
		{
			src:'http://www.blog.hemminga.net/plugins/flowplayer_plugin/FlowPlayerDark.swf',
			width: 350,
			height: 300
		},
		
		/*
			second argument is Flowplayer specific configuration. See full list:
			http://flowplayer.org/player/configuration.html
		*/
		{config: {   
			autoPlay: false,
			autoBuffering: true,
			controlBarBackgroundColor:'0x2e8860',
			initialScale: 'orig',
			videoFile: 'http://www.blog.hemminga.net/media/blogs/Testlab/b8d17b59ebfa2e63de8f55f2828826db.flv',
			autoRewind: false,
			loop: false,
			showMenu: false,
		}} 
	);
	</script>


Ans that seems to work, at least I see the player.

The conversion from

[video:flash:2008October-lo]


to something like the above works as advertised. Would you please set up a testpost on one of your blogs so I can poke around? And if somebody can point me to the tiniest of .flv files I can really test this thing.

My testlab is at http://www.blog.hemminga.net/index.php?blog=9

Good luck

12 Oct 24, 2009 00:59

Thanks for the link and the file. It confirms that the plugin from post one (see above) does work as advertised (see my testlab.) So you could get away with reading the small print once again (are all the files copied to the server correctly, have you moved the .flv file to the correct media folder, did you enter the name of the .flv file without ".flv"?)
I can easily modify the plugin to change it's behavior, like adding the (preferred) <object> tag instead of the javaScript. Also could I change the default folder for the .flv file or ask the user to provide it.
There might be an issue on your blog. I haven't read the bugreports for a while. The point is that

[video:flash:2008October-lo]


where it's added really should be changed in the javascript when it's published.
Do you have a WYSIWYG editor plugin active?

Currently you pick the player files from http://YOURSITE.com/flowplayer/flowplayer.swf where I expect it to be at http://YOURSITE.com/plugins/flowplayer_plugin/
Also the .flv file should be in http://YOURSITE.com/media/blogs/SHORT NAME OF BLOG 4/ and not in http://YOURSITE.com/media/
At least that are the settings from the plugin.

Good luck

13 Oct 26, 2009 17:20

I will keep plugging away at it. I did move the file to the /media/blogs/links folder. I had just had it in the /media folder before.

I still can not get it to play, however. I have the following on my post:

[video:flash:2008October-lo]

Would it have anything to do with the file type? I added the type .flv with the following:

Extension: flv
File Name Type: Flash Video
Mime Type: application/x-shockwave-flash
View Type: Download to Disk
Allow Upload: Checked

14 Oct 26, 2009 17:25

Hi jeskremer,

Maske sure the plugin is properly installe and active. You can check in Blog settinhgs -> plugin. Also there shoild be a mentioning of the plugin in the write sextion.
If you feel comfortable with that PM me the link + login + password of the blog and I can have a look around.

At least the part of the conversion works in my testlab. Actually everything works in my testlab ;)

Greetings

15 Oct 29, 2009 03:03

I just tried this on a customer's blog and it worked just as advertised. I don't know what is messed up with my blog, but it isn't a huge issue because the customer's are the ones that need this tool.

It works great though!

16 Nov 01, 2009 06:32

I guess it doesn't work in entirety. Apparently the new IE does not work with the old 2.2.4 version of Flowplayer in the plugin.

It does work with the new 3.1.14. Does anyone know how to adjust this plugin to function with the new player? I will keep plugging away, but it could take me days in my limited knowledge capacity of plugins.

Thanks

18 Nov 18, 2009 10:30

The link above now leads to a bugfix version that solves an issue with autoplay. In other words: disabling autoplay now works.

Good luck

19 Dec 27, 2009 13:24

just thought I'd bring this back to the top and add my experience in case it helps anyone

installed the plugin

uploaded an flv file to /media

[video:flash:filename]

used the code, got a player appeared but no video

move the flv file to /media/blogs/a

and it worked first time

great plug-in. many thanks!!

one wee question though. noticed a few different skins in the plug-in download. how do you change skin on a blog post?

20 Dec 27, 2009 13:29

scratch that last question.... used my brain an looked in the plug-in config!

D'oh!

21 Dec 27, 2009 16:19

The plugin looks for the flv file in the media folder *of your blog*. In a standard setup that would be the folder /media/a but in other cases that may be another folder.
You can check this out through the File Manager or simply have a look at the folder structure through FTP or cPanel.
Did you use the original plugin or my (improved) version? Since you are talking skins you seem to have used the original one. Great to hear that one works also.

22 Dec 27, 2009 16:48

think I must be using the original one - downloaded from the first post - http://downloads.sourceforge.net/phpess-ng/flowplayer_plugin.zip

did my usual - ignore all instructions and stuck it straight in to see what happens! :oops:

works fine. although the style on the page looks nothing like the styles in the swf skins?? and changing the style from the plugin admin does not seem to change anything?

here it is on http://bf494.co.uk/

would the newer plugin maybe be better??

23 Dec 27, 2009 17:06

I rewrote the plugin because the original was reported broken. But I'm glad you got that running. I don't remember having added skins to the new one, so if that's your toy stick to the old one.

24 Dec 27, 2009 17:14

nah! its cool. Firmer believer in "if it ain't broke don't fix it"

was just curious as to why the player is green!

perfect plugin as far as I'm concerned though.

thanks again

25 Jan 24, 2010 22:14

Wow this is exactly what I was looking for! Thanks!


Form is loading...