Flash Embed with SWFObject (static method)
Version 1.0 added 1 year ago by redconservatory
HOW TO INSTALL: To install this package, copy the following code and paste it into your Pods >> Package Manager under the Import tab and follow instructions there.
1.0 Notes
About this Package
This uses SWFObject and the SWFObject publishing method. It's the first package I've made so I expect some revisions.
This helper is designed to work with custom Wordpress templates, not pod templates.
I will put out a dynamic publishing method version later.
Instructions:
1. Create a pod and alter the helper to use the pod name you've created:
$my-flash-pod = new Pod('my-flash-pod-name', $slug);
2. Create the following columns in your pod
flash_url [File upload - upload your swf here]
flash_width [Number]
flash_height [Number]
class_id [Single line text]
flashvars_1
flashvars_2
flashvars_3
3. Make sure to include the following inside the <head> tags in your template:
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("myFlashContent", "10.0.1", "expressInstall.swf");
</script>
Link the "swfobject.js" to where you have uploaded your own swfobject file.
This helper is designed to work with custom Wordpress templates, not pod templates.
I will put out a dynamic publishing method version later.
Instructions:
1. Create a pod and alter the helper to use the pod name you've created:
$my-flash-pod = new Pod('my-flash-pod-name', $slug);
2. Create the following columns in your pod
flash_url [File upload - upload your swf here]
flash_width [Number]
flash_height [Number]
class_id [Single line text]
flashvars_1
flashvars_2
flashvars_3
3. Make sure to include the following inside the <head> tags in your template:
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("myFlashContent", "10.0.1", "expressInstall.swf");
</script>
Link the "swfobject.js" to where you have uploaded your own swfobject file.
