Does anyone know what code is required to install flash file .swf in the header image section of the four seasons theme using drupal 6?

any assistance would be muchly appreciated..

Kindest,

gigfish

Comments

doomed’s picture

I suppose you want to substitute the header image by a flash animation.

Is the .swf made ?

I suppose you just have to edit the theme's page.tpl.php, look for the header part and substitute whatever code you see there by the code that shows your Flash swf file.

gigfish’s picture

yes the swf is made i have various swf files i could use.

Do you know the actual code that could be used? my swf is currently at sites/defaults/files/flash on my ftp server

gigfish

doomed’s picture

Sorry, i repeated the supposed word..

Anyway, are you asking how to display flash animations on a webpage ?
Isnt that more like HTML 101 instead of Drupal theming ?

Here's what i use (still not sure if this is what you're looking for):

  	<object type="application/x-shockwave-flash" data="path/to/flash_menu001.swf" width="640" height="480">
	<param name="movie" value="path/to/flash_menu001.swf" />
	<param name=quality value=high>
  	<param name=loop value=false>
	</object>
gigfish’s picture

I will try the above code you have tabled but before i do how do i set where in the page the flash will play..

i want it to play on every page in the header image (see four seasons theme)

gigfish

sub_acoustic’s picture

none of the info on adding flash on this or other pages has worked for me
I want to add it to the header, not as a node

could z-index have something to do with it??

I'm using drupal 6

gys’s picture

you have to edit the page.tpl.php of your theme

sub_acoustic’s picture

I did edit page.tpl.php and it didn't work, still a mystery...

I pasted in the flash code and I see a box where it should be but not fash. I then tried putting the swf file in every directory I could think of, but somehow mysteriously, it won't play.

sub_acoustic’s picture

I did edit page.tpl.php and it didn't work, still a mystery...

I pasted in the flash code and I see a box where it should be but not flash. I then tried putting the swf file in every directory I could think of, but somehow mysteriously, it won't play.

amandawolfe’s picture

I dont use flash so this is only a guess, but have you tried putting the file (and then updating the path in the template.tpl.php file, obviously) in your theme folder? (Rather than sites>all>files or wherever it's living now.)

amandawolfe’s picture

Oh! And if you're going to do a bunch of custom mods to your theme, I'd recommend making a new customized theme of your own so that when Four Seasons is updated, it won't write over your changes. It's as easy as copy/pasting the fourseasons folder into the same location (sites>all>themes), changing the folder name to "your-theme" and editing the .info file with your-theme name. Don't forget to change the project name in your .info file also or it will still register as Four Seasons and Drupal will get angry if you don't update it to the newest version.

I started out with Four Seasons and what I have now has almost no relation to it at all so I had to cut the cord. :)

qpal’s picture

Hi,
I am creating my own theme for drupal 6. Wanted to incoporate a flash header file into the theme. I have embeded my swf file into the header, when I start the site,, I can see that there is flash file in the header -- a typical flash play button on it. However, when I try to play the file, it does not play.

Initially I thought maybe it is the problem with incorrect path to swf file, I tried using the absolute path, relative path and the complete domain path

and none of them would allow me to play. I have the same swf in xhtml and it plays, so there is some thing going on in the drupal envirioment that I am missing here. Any pointer is highly appreciated.

qpal’s picture

I got this sorted by using swfobject.js