Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-13 19:25:20

TheEric
Plugin Author
From: Wyoming
Registered: 2004-09-17
Posts: 566

EBL_SWFObject

What it does

EBL SWFObject adds the SWFObject javascript class to Textpattern. It can be used in both the administrative interface, as well as the public interface. This plugin does away with the EOLAS issues found in Internet Explorer. This plugin will still rely upon the user creating

SWFObject is a small Javascript file used for embedding Adobe Flash content. The script can detect the Flash plug-in in all major web browsers (on Mac and PC) and is designed to make embedding Flash movies as easy as possible. It is also very search engine friendly, degrades gracefully, can be used in valid HTML and XHTML 1.0 documents*, and is forward compatible, so it should work for years to come.

How does it work

To use this in a plugin, first go to http://www.swffix.org/swfobject/generator/ and generate a container for your SWF file and generate the code necessary to work with SWFObject. Once that is completed, extract the necessary pieces of code as shown below, and insert as necessary.

What you’ll need is something similiar to the following, embedded into your document head:

The content portion of your website should have something similiar to the following:

And finally, <script type="text/javascript" src="http://www.ericlimegrover.com/textpattern/index.php?event=ebl_swfobject"></script> will need to be inserted into the document head.

This plugin is mainly intended for flash-plugin developers to streamline the integration of Textpattern (and xPattern ) and Flash.

Where do I get it?

It can be downloaded from http://www.ericlimegrover.com/file_download/1/ebl_swfobject_v0.01.txt

Future Plans

I will eventually streamline the process so that the above directions can be eliminated with one tag and a couple options. This plugin was originally just intended to fix the EOLAS issue in EBL_Upload (which requires this plugin)

Note: For most uses, KML_Flash Embed would be more appropriate to use.

Last edited by TheEric (2008-02-13 20:01:02)

Offline

#2 2008-02-13 19:47:39

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: EBL_SWFObject

Would you mind lowercasing the plugin name? Since it’s a one-function plugin, might as well use the function name as the plugin name.

Last edited by ruud (2008-02-13 19:51:49)

Offline

#3 2008-02-13 19:59:44

TheEric
Plugin Author
From: Wyoming
Registered: 2004-09-17
Posts: 566

Re: EBL_SWFObject

Sure, although I fail to see the reason why the actual descriptive name (and not function names) needs to be lower-cased.

Offline

#4 2008-02-13 21:15:23

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: EBL_SWFObject

Because other plugin authors do this as well. Why do it differently. If it is to make the plugin stand out from the others, that’s not the way, IMHO ;)

Offline

#5 2008-02-14 02:43:05

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: EBL_SWFObject

TheEric wrote:

This plugin was originally just intended to fix the EOLAS issue in EBL_Upload (which requires this plugin)

Apparently the “click to activate” requirement in IE is going away soon: Microsoft has licensed the technology from EOLAS and they’ll be rolling out an update to IE scheduled for April 2008.

By the way, how’s ebl_batchupload coming on? :-)

Martin

Offline

Board footer

Powered by FluxBB