PDA

View Full Version : Embed a Flash header into your template


72dpi
12-12-2007, 03:34 AM
Ok,

So, you want to use a flash header into your template.. Sure, no problems. Firstly, you're gonna need to head on over to: http://www.bobbyvandersluis.com/ufo/ and download the zip. This contains all the tool neccesary, and a sample bit of code.

Now, we are going to do this using the Wiicked (http://www.subdreamer.com/sd_skins/p13_sectionid/2/p13_fileid/155) template as an example.

Now, open up the ufo.zip, and save the file ufo.js to your wiicked folder. It should be in the same level as your menu.css, styles.css etc...

Create your Flash Movie. In this case, to replicate the original header, make it: 900px wide by 300px high. Once saved out, make sure your swf file is called wiicked.swf

now,

Ok, open up: wiicked > wiicked_1.php

find:
<link rel="stylesheet" type="text/css" href="skins/wiicked/menu.css" />

Underneath, paste:

<script type="text/javascript" src="skins/wiicked/ufo.js"></script>
<script type="text/javascript" language="javascript">
<!--
var FO = { movie:"skins/wiicked/wiicked.swf", width:"900", height:"300", majorversion:"8", build:"0", xi:"true" };
UFO.create(FO, "WiickedFlash");
-->
</script>


Now, in the same file: wiicked > wiicked_1.php

Find:

<td class="banner"></td>


Replace with:

<td class="banner">
<div id="WiickedFlash">
<p>Flash not detected, or Flash error</p>
<p><a href="<A href="http://www.macromedia.com/go/getflashplayer"><img">http://www.macromedia.com/go/getflashplayer"><img src="http://www.macromedia.com/images/shared/download_buttons/get_flash_player.gif" alt="Get macromedia Flash Player" style="border: none;" /></a></p>
</div>
</td>


Now, just modify the file: wiicked > images > wii_banner.jpg
to suit what you want, and that's it! Obviously, if you use more than one template page, you'll need to do this in each one... You could even make it a php include, and include that in your page, if you have many templates...

Play, test, try, it's too easy.

Please note, this is untested, but should have no problems. Have fun!

pekelpiel
02-17-2008, 08:44 PM
did anybody test this?

Loverboy27
02-18-2008, 02:18 AM
did anybody test this?

hmmm... why dont you simply use wysiwyg editor in global settings (where logo.jpg for example resides)? :huh:

rjchaney
02-19-2008, 04:08 AM
Thank You!!!!!!!!!!!

mazivo
04-15-2008, 04:03 PM
How about longingly skin? Is the procedure the same or do I need diferent code?

VanceWxMan
12-11-2011, 05:28 AM
This didnt work for me...i have core...replacing the banner with a flash rotator is killing me!

PatrickD1985
12-11-2011, 10:53 AM
Which release and some additional info would be helpfull otherwise I have no clue ;)

VanceWxMan
02-08-2012, 12:35 PM
Sorry Patrick missed this..it worked I was just calling it from the wrong place...needed to call it from /.. not the folder.

PatrickD1985
02-09-2012, 09:22 AM
No problem ... it happens ;) But always keep in mind ... to solve things we need to know things (basic principal which almost always is the case)