Easy SWF Plugin 1.1
The new version of my Easy SWF Plugin for WordPress is out today!
There were lots of requests to add background and included Flash size settings. And this update adds just that :) Continue reading!
How to use new features:
Basically, you need to added background and/or size parameters as a title string for your Flash file. Let's have a quick look at how you do it (more info on parameters later)
1. Select the uploaded file and set the parameters for your flash:
2. Click to upload button, and then in next window just press the "Send to editor" button (default settings : link to file is what you need) . It's OK not to pay attention to the weird name as it will not be visible to your readers anyway.
3. You're done!
More info about display parameters.
You can include any of the background or size parameters in the link's plugin title, or both of them. If you have added the SWF to editor, and want to change display parameters, just edit the SWF's link title parameters:
- background : just use the oridinary hex color code you ordinary use for setting color on HTML pages. For example : #ff0000 is red, #00ff00 is green, #0000ff is blue, and #ffffff sets white background (as well as #000000 sets the black one). If you don't specify the background color and the included SWF file doesn't have its own background layer set, the background will be set to transparent.
- size: you should specify size in either of form widthxheight (for example 300×200 in order to display flash at 300 pixels wide and 200 pixels tall), or you can use just one parameter (i.e. size:200). In this case the width of the Flash will be set to 200 pixels and the height will be adjusted accordingly, preserving original swf's aspect ratio (for example, if you include a 200×100 swf file, and specify parameters as size:100, it will be displayed at size: 100×50). If you don't specify size parameter, the SWF file will be displayed at its original size).
Some examples
1. Original size (200×100), original background (no title parameters at all)
2. Original size, red background ( background:#ff0000 )
3. Forced dimensions of 300×50 pixels, and green background ( background:#00ff00;size:300×50 )
4. Forced width (400 pixels, or double the original width), the height will be adjusted (to 200 pixels) accordingly to presenve original aspect ratio, gray background ( background:#cccccc;size:400 )
Enjoy! :)
Oh.. almost forgot ;) The download link!



March 5th, 2007 at 3:44 pm
[…] UPDATED! Version 1.1 is out! Click here for more info! […]
March 6th, 2007 at 11:59 am
I'm still getting this error with this version:
Warning: gzuncompress() [function.gzuncompress]: data error in /home/kunaldco/public_html/wp-content/plugins/easyswf.php on line 255
Any ideas how to fix it?
Thanks
March 6th, 2007 at 1:02 pm
You rock!
March 8th, 2007 at 5:33 pm
I am getting an error as well. i am using k2 theme.
Warning: gzuncompress() [function.gzuncompress]: data error in /home/zoeschac/public_html/wp-content/plugins/easyswf 3.php on line 255
what are your thoughts?
March 9th, 2007 at 8:33 am
I need to be able to apply controller buttons to my swf files. I am using Flash 8. The problems I have had with activating the plug in are as follows:
1. If I add controller buttons to my flash file for the video the file will not play if I have the Easy Inline SWF 1.02 plug in Active or Deactive.
2. If publish my flash file without Controllers and I have the Easy Inline SWF 1.0.2 plug-in Active, my flash file will not play. If the Plug-in is Deactivated it will play.
How can I have my flas file with the default controllers allowed in flash to show and play my flash file on my blog?
P.S. I am an art student going through a Portfolio Show on 3/23/07. If an answer can be provided before then that would be AWESOME!!!
Thank you for your help in Advanced!!
Chevaughn S. Clowney
March 9th, 2007 at 8:39 am
I'm sorry I forgot to mention i am using the Tranquility 1.0 Theme
March 15th, 2007 at 12:11 am
Chevaughn,
what exactly do you mean by controllers?
March 16th, 2007 at 11:30 pm
at a guess its the play pause slide controls etc lol :D
March 19th, 2007 at 4:47 am
Hi Mike
When you export movies from flash 8 you are given the option to have movie controllers on your video things like volume control, being able to rewind or fast forward for the user or veiwer to use. When i exported my movies in flash as an swf file with the movie controllers they would not play on the web blog.
March 29th, 2007 at 7:32 pm
hey im getting same error as zoe
I am getting an error as well. i am using k2 theme.
Warning: gzuncompress() [function.gzuncompress]: data error in /home/zoeschac/public_html/wp-content/plugins/easyswf 3.php on line 255
what are your thoughts?
April 10th, 2007 at 2:49 am
when I use this instead of embedding the swf file it gives a text link to the file.
July 10th, 2007 at 4:36 pm
Hi,
Is there a way to use "Flashvars" with your plugin ?
And how would I have to use it in Joomla ?
( -: roland :- )
July 10th, 2007 at 5:42 pm
This plugin works perfect! Thank you. I'm using WordPress 2.2.1 with default theme.
July 10th, 2007 at 6:54 pm
Roland,
the plugin doesn't support FlashVars and Joomla. I might add FlashVars in the future, but I don't think I'll add Joomla support because I don't use this system myself.
September 7th, 2007 at 12:04 am
Hi again. I fixed my problem. just added a CASE INSENSITIVE option to the regex in this line
$content = preg_replace_callback('/]*href="([^"]*\.swf)"([^>]*)>[^/i', "macdiggs_easyswf_replaceCallback", $content);
Fixed the problem of some swfs not beying replaced.
September 7th, 2007 at 3:10 pm
I'm also (like Gordon) getting just text linked to my swf file and no display of the file.
The code that gets sent up to the editor has not code for embedding objects or anything. Just a simple href to the swf file.
The plugin sounds incredible…if only i could get it to work :/
September 7th, 2007 at 3:38 pm
FIgured it out.
It doesn't work unless you are using the Rich Text editor, which I had disabled.
Turn it back on under User > Profile > check that little box on the top left.
Maybe you should add that to the instructions. Could help the less savvy people like me.
October 5th, 2007 at 9:12 pm
Just tried to use this 2.3 and get the error described above (just showing text linked to the swf), turning on the visual/RT editor doesn't have any effect.
Any help gratefully appreciated!
;-)
October 24th, 2007 at 7:44 pm
Hi,
this plugin sounds great. The only problem is that I can't make it work. I have added "background:#000000;size:300×50px" in the title of the uploaded swf file but in the output code, the height is 0:
Please, help me :)
October 25th, 2007 at 9:58 am
Cornelia
try to omit the "px" part of the string.
the title should be:
background:#000000;size:300×50
October 25th, 2007 at 5:13 pm
Hi there,
I have tried that also, and it give me the same output. When I view the page in which the swf file is imported, I see a white space as wide as the swf file. The file is there, but because of the height issue, it's nog showing correct. :S
November 19th, 2007 at 10:46 pm
Thanks, Mike. It works really nice for me.
January 7th, 2008 at 3:21 am
Sadly, it seems that this plug-in breaks under WP 2.3+… what a pity!
January 7th, 2008 at 7:56 am
Gwyneth,
I haven't upgraded to 2.3.2 yet (still running 2.3 as or right now), and everything seems to work fine. These 0.0.x releases usually don't break any API's and stuff like that. Might be a problem with your WP installation? What version are you running?
January 7th, 2008 at 10:18 pm
Mike,
Thanks for replying. I should have been more explicit: it does not "break" really (in the sense that you get a blank-page-of-death), but none of teh functionality work: there are no different boxes on TinyMCE to upload SWF files, no code is generated, etc. Version 1.0 doesn't work, either.
Now, I admit I have several plugins tweaking with TinyMCE: Viper's Video Quicktags (a must for YouTube/Google Video/Quicktime integration) and Adsense-Deluxe+ (it also tweaks TinyMCE to place Google Ads on articles, although I have edited it out). These changes might have rendered my TinyMCE configuration slightly "unstandard" and it would be a reason for conflicting with Easy SWF.
I ended up installing Kimili Flash Embed which simply places a simple line as a bracketed tag for the SWF insertion, very similar to the ubiquous Viper's Video Tags, with which most people are comfortable enough. No, it doesn't preview the Flash inside the visual editor, but, well, it works even on my "tweaked" TinyMCE, and has no conflicts with the other plugins.
It's a shame, really — your solution seems to be a bit more elegant (no "strange" tags, just a "plain" link)! Then again, even WordPress.com uses bracketed tags for YouTube insertion, so I guess this will slowly become the norm…
January 10th, 2008 at 10:35 am
Mike! Thank you. Your plugin is pure genius!
The simplicity of your plugin leaves all of the others for dust. What's more, is that it is SEO friendly, and will still provide a working link to the flash file should Javascript be disabled.
Many many thanks. I have just wasted hours searching through other flash plugins, with none of them working.
But yours does. 8)
Thanks again.
Leo.
January 10th, 2008 at 10:38 am
Leo,
thanks! Always pleasant to hear my little stuff was of help to anyone :)
Mike.
January 11th, 2008 at 10:28 am
I've upgraded to wordpress 2.3.2. Then I've installed your plugin.
First, I don't seem to be able to upload a flash file using the upload function. It starts by uploading, but then it just stop and that is all. also the only tab that I have is "upload". There is no "browse all" like in your images.
That particular flash file is already uploaded, so I tried the alternative way, which is to link to it through the editor. The error message that I get is as follow:
Warning: gzuncompress(): buffer error in /hsphere/local/home/otsimark/detox-narconon.org/blog/wp-content/plugins/easyswf.php on line 255
Any idea of what I can do to fix this?
Sheriff
January 12th, 2008 at 8:07 am
ok
the plugin works with I'm using a smaller swf file that I can upload to my blog using the Wordpress upload function. The problem is Wordpress doesn't seem to be able to upload my bigger swf file which is a 15 minute video. It start to upload and then just times out and my video doesn't show when I click on the show all.
So I tried to upload the video via regular FTP. Actually it's already uploaded to my site but outside the blog directory. I tried to link to it the way you explain on your blog, but then I get the error that you see in my previous comment:
Warning: gzuncompress(): buffer error in /hsphere/local/home/otsimark/detox-narconon.org/blog/wp-content/plugins/easyswf.php on line 255
Note to others. At first, I wasn't able to upload swf files to my blog. Then I change the CHMOD permission to the wp_content folder to make it writable and it worked. I was able to upload swf file using the wordpress upload function.
January 25th, 2008 at 10:30 am
Today I found these error messages in previously worked fine site. I guess this happened after I undated my WP to version 2.3.2. Anyone knows what is the solution to correct these errors:
Warning: gzuncompress() [function.gzuncompress]: data error in /wp-content/plugins/easyswf.php on line 255
Warning: Division by zero in /wp-content/plugins/easyswf.php on line 125
Thanks.
January 25th, 2008 at 11:21 am
Oops, I found the error source. It wasn't the WP, but it was the URL. Last year I removed the www from my url so it would be listed on top of the list of bloggers when they sort it by name. 28 certainly would be listed higher then www. Tonight I went through the codes and saw that the URL in my posting still carried that www. After removing it, every thing works fine.
March 9th, 2008 at 12:01 am
thank you for your work!
can't upload biger files in wordpress, so i tried to link the swf from my own server and i got this error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 22659728 bytes) in /home/www/web213/html/blauerzauber_org/03_diary/wp-content/plugins/easyswf.php on line 255
unfortunatly my php is not good enough to undertsand the script.
greatings, tomeccco
March 19th, 2008 at 9:21 pm
Here's a tip: when linking to a swf file without actually wanting to automatically inline it, append a # at the end, e.g. "…/flash.swf#". That way, this plugin won't kick in.
March 20th, 2008 at 11:55 pm
great plugin. thx a lot. keep up the good work!