PDA

View Full Version : Add-On Releases - Flash for all browsers


grimor
02-02-2008, 10:00 PM
Modified from Flash BB Code v1 By tnsezer

I didn't see this posted, and not sure of the format used to post here, but after a lot of searching I thought I'd share the method I used

you'll need to grab swfobject (http://blog.deconcept.com/swfobject/#download) and upload it to your forum directory

To Install:
1. Go To Admin CP
2. Scroll down the left nav and select Custom BB Codes
3. Add New BB Code
4. Fill in the following:

Title: Flash Code
Tag: fla
Replacement: <script type="text/javascript" src="swfobject.js"></script>

<div id="flashcontent">
This text is replaced by the Flash movie.
</div>

<script type="text/javascript">
var so = new SWFObject("{param}", "mymovie", "600", "400", "8", "#336699");
so.write("flashcontent");
</script>

Example: http://domain.com/games/burgertime.swf
Description: Embeds flash into posts
Use {Option}: No

you may or may not have to put
<script type="text/javascript" src="swfobject.js"></script>
in your header.

yes, using this on an open forum is dumb, you will have auto redirects and be hacked.

Derek Chai
02-03-2008, 03:03 AM
Nice!

shadowevil
02-03-2008, 10:41 AM
screenshot or demo ?