SFV Plugin
About
The Simple Flash Video Plugin builds on the plugins that all ready allow easy posting of .flv or .mp4 files on the popular Wordpress platform. Simple Flash Video allows for all of the JW FLV options to be utilized via its config.xml file and post level overrides. With this plugin you can easily post .flv or .mp4 videos to your blog and have your viewers instantly watch the video without having to fully download the video before watching. It also combines the popular Shadowbox utility to allow for the videos to float over the website content for a clean look. This plugin was built from the ground up to take full advantage of the JW FLV Player and Shadowbox. On top of this it is the only plugin for Wordpress that utilizes the Simple Stats App for JW that gives users a total look at the video viewership of their website. Code has been used from the Flash Video Player by Joshua Eldridge as per the licence agreements of the respective software. When you put the [video...] code in your plugin it will be replaced by a Link to the video that will open in a Shadow window. If a .jpg file is in the same directory with the same name as the flv it will also use that photo in the link. If no image is found it will simply place a Text link in your post. If you wish you can also disable the Thickbox feature in the post command.
- Simple Stats now integrated!
- Numerous Cosmetic Code Changes
- Code created by SFV now Validates via W3C!
- If a viewer is looking at your feed the plugin will done one of two things:
- FLV files will get a link to the post they are contained in
- other files will get a direct link to the file for feed aggregators to utilize.
- Full site URLs will now get images when they exist.
Want to say thank you for the plugin? Just leave a comment or send an email if you found the plugin useful. Or if you want you can make a donation to the project. All of these methods are always appreciated and will certainly help keep up the motivation for future releases. Thanks!
Demos
FLV File
FLVs will simply be changed to links to the post in the feed.
H264 File
This video will also properly download via the feed in itunes or your favorite software.
| Simple Flash Video Gallery |
Special Thanks
Daniel G. Taylor - Programming
Borrie Sven - Beta Testing
Installation
- Download and unzip Simple Flash Video.
- Transfer Simple-Flash-Video directory to your `/wp-content/plugins/` directory
- CHMOD the config.xml to be writable by the server, 666 or better
- Activate the plugin through the ‘Plugins’ menu in WordPress
Usage
To use the plugin you simply need to insert: [video filename=video/video.flv /]
into your post.
You can add the following variables after the filename variable:
- shadowbox=off - Disables Shadowbox and simply puts the player into the post
- embed=true - Uses embed code instead of SWFObject Code
- ALL JW FLV Variables in lower case format ex: width=200 [video filename=video/video.flv height=400 width=600 /]
F.A.Q
Q: I cannot get the stream.php working what is wrong?A: to use it you have to set the stream variable to the location and file. So for most people this will be: /wp-content/plugins/simple-flash-video/stream.php - If you have your WP install in a subfolder that will have to be added. Also, if you are using Lighty Webserver please use its FLV Mod instead of the stream.php
Q: I have activated the plugin, but don't see the video player. What do I do?
A: Check and make sure that you have the appropriate hook in your template file for the header: wp_head();
Q: How do I change a setting for a single post?
A: If you just want to change a single value for one video you can do it by modifying the code in your post. To Change the hight you would simply put: [video filename=video/video.flv height=500 /]
You can put any of the variables in this way using all lower case variablenames without spaces in the name.
Q: How do I change the defaults?
A: The config.xml file contains all of the current variables of JW FLV 4.0 . You can modify this file to change any of the default settings that the plugin will use.
Q: Help! I can’t figure this out!?
A: No problem! Give us a shout using the contact form @ http://www.simplethoughtproductions.com/contact/ and we will see if we cant help you. We also recommend posting a comment on the version of Simple Flash Video player to allow the community to assist as well. Find the post for your version @ http://www.simplethoughtproductions.com/category/simple-flash-video/








Josh
Dan
[...] Website and Download I am currently trying to sort out an SVN error with my wordpress.org extend until then get the latest code from my site. [...]
How can modified for use whit longtail ads solutions???
PD regards for the works it`s awesome
That is a good question. I will have to look at the setup and I can probably add that feature in an upcoming version. Thanks for the suggestion!
Ohhh I ask because u are the only who appears in the CMS plugin to use with that adssolution…I can try some change and tell u what happend…but I think with the open variables it´s possible…I comment u…
Yeah, I am currently the only 4.0 Compatible Plugin listed. I don’t think it will be too hard to add in support for the ads I just have to look at how they are implemented and then find a way to tie it in.
Above you state The config.xml file contains all of the current variables of JW FLV 3.16. You can modify…. Are we going to be able to use all the V4 variables within the xml file or are we limited to the 3.x set of variables? How come you seem to have implemented a subset of variables in the plugin admin page?
Good work though. I may be able to get rid of a couple of plugins and replace them with yours. Still, I’d like to get the player on the page and pop up the shadowbox upon a click on the player itself (ideally the fullscreen botton). Any suggestion?
Plugin Version 1.4 and higher uses the 4.0 player only. That was not updated in the info entirely I apologize for that. So 4.0 works fine now. Technically if a new player came out you could update it in the plugin folder, update the settings you want in the config.xml manually and it would work, you would have to wait for me to update the admin page to do the automatic configuration or modify the plugin your self but so far we have kept it up to date fairly quickly.
I am not sure what you mean about the player on page. Are you saying you want the player to show on the page, and if they click full screen it then opens in shadow box?
Right on Josh, with the added feature of been able to set a different size for the on-page player (a smaller size) and the shadowbox player (for example 1.5 or 2x the original, since sometimes fullscreen-3x the size- is just too large to look good). I’ve seen something like this over at ted.com and it works very well.
I’ll wait a bit and see if you get around to an updated config page. If I find the time and I get something done myself I’ll let you know.
Ok I see what you mean. That could be done and that is a pretty cool feature. As of right now the config page is up to date for 4.0!
^2nd that cool idea.
First of all thanks for this super sexy plugin! I was wondering how you can place the video spot on in the middle of the shadowbox, or having it cover the whole box.
One of the things I need to add is a padding to push it center. One can have it fit the shadow box perfectly by removing the padding that I put in. I think I will try centering first with the next version and we will see how that goes.
Nice, I see you got that fixed. Is it me, or is IE acting strange again?
What do you mean? The plugin seems to look normal for me when I use IE 7 or 6. I have not tested 5.
It’s stuck and won’t load the video.
http://img177.imageshack.us/img177/3269/ieyz8.png
It looks like the skin is not loading for you. Might want to try and update your flash player. I have not had that happen to me in IE 7 when I am using Windows Vista. The next version will be correct to not display unless you have 9.0.115 which is the minimum required for .mp4s
hello, is there any way to use this plugin with standalone tinymce? I’m working on a project that requires the JW flv player to be embedded but we are just using tinyMCE.
any ideas?
Greetings from th Northern Territory of Australia.
Up there, you said: “One can have it fit the shadow box perfectly by removing the padding that I put in.”
Where does one do this? I have played around with the CSS and PHP files, and (maybe I’m thick, but)I can’t see where to adjust the padding.
Also, see separate bug report, being prepared as I write.
Regards
Alan in Darwin
JJ, I am not familiar with tinyMCE but it seems to be java based so you would have to write one from scratch unless it can accept PHP which is what the plugin is written in.
———————————————-
Alan, As for removing the padding from shadowbox.
You would need to change a few lines of code.
Around line 610:
//Set padding for the width to allow Shadowbox to be large enough
$arguments['height'] += 70;
$arguments['width'] += 90;
Remove that
as well as around line 630:
//Set padding for the width to allow Shadowbox to be large enough in all browsers
$width += 90;
$height += 70;
And around 654 and 672. Once all of those are removed from the simple-flash-video.php you need to go into video.php and remove:
$fileheight -= 70;
$filewidth -= 90;
which are around lines 170
That should do it.
Ah-HA!
That fixed it perfectly. I had used most of those mods while I was playing with the s-f-v.php file, but I hadn’t looked at the video.php file.
Thanks heaps.
Regards
Alan in Darwin
Mind sharing a link where you are using the plugin?
Not at the moment. I’m setting up another wordpress install to use for demos, as some of the video I have is (c)opyrighted, so I can’t show it live yet.
Keep you posted.
Regards
Alan in Darwin.
What about playing youtube and so on…?
Youtube does work but it needs the missing yt.swf. For now if you add it from the main download off of the JW FLV website and add it to the simple-flash-video plugin folder on your site and it will work. Next version is due out soon and it will be included.
Hii Josh,
first congratulations for the plug in. To have all this code inside a wordpress plug in makes the things really easy for us, just not professionals in coding.
My problem is that the SHADOWBOX effect is going on also with my other images of the other posts. I don’t want this because I have the LIGHTBOX 2 plug in already working and in this way the both effects works together. And this is not nice. Please, let me know where to put some code to cancel the SHADOWBOX, or maybe switching off LIGHTBOX2, to leave working only SHADOWBOX but for all the website images, not only for flash videos.
Thanks again.
Jaume (Barcelona/Milano)
Thanks
The problem is indeed in side of shadowbox. During development there were a number of lightbox users who moved to shadow box and to help them the programmer also replaced lightbox links with the shadowbox code. With that, you should be able to just disable the lightbox 2 code and it should still work on images as long as it has a rel=shadowbox or lightbox. We know it will work on yours because shadowbox is all ready picking it up. So if you disable the Lightbox2 plugin everything will be fine. The photo gallery above is done with my plugin and nothing extra.