Adding flash instead of an image

jaydigga - September 10, 2007 - 06:29

I was wanting to know are you able to use a flash file instead of an image as the main banner logo on your frontpage? I guess maybe in all drupal themes you can only use an image. I ran across a theme called Purple_Beauty which I really like. The image up top is really big. The layout is real good to have a flash file up top instead. I just can't seem to use a flash file. I even went in the css file and replaced the image with a swf file but it would not work. If you go to jaymediaspot.com you could see how nice the theme is. I just put an image version of the flash file I wanted up there instead until I can figure out what I will do next.

Something like this?

Chippe - September 10, 2007 - 17:02

This is the code from one of my old websites but I guess it works fine if you just put in the name of your flash file instead of xxx.swf, u also better check the width,height etc.

It should work if you put it under: in your page.tpl.php file
Your flash file should be stored in "drupal\files"

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=760 HEIGHT=220>
<PARAM NAME=movie VALUE="files/xxx.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="files/xxx.swf" quality=high bgcolor=#FFFFFF  WIDTH=760 HEIGHT=220 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>

It's working but...

jaydigga - September 14, 2007 - 15:43

I appreciate the help on this. I did add the script you provided to my page.tpl.php page. I may have to take one of them off. What I did was copied and pasted it in the head section of the script where before the body starts. I went to the page and seen that it worked. But now I wanted to take the image logo off that comes with the theme. I went to the theme configs page and unchecked logo image, use default logo image, and did not load any image for the logo. I submitted it and I still seen the default logo below the flash I inputted in the head of the page.tpl.php script. So I went back to the script and added the same script I copied and pasted in the head to div id="header". Now it works. The flash is now in the place of where the default logo image was. Now I just went into the script and took the script out the head section. Last thing I need to know is why the flash don't show up on certain pages. The flash will be the logo now and I want it to show up on every page. I do see that it is not working when I go through more than one folder like mysite.com/blog/1 but it will work if I go to say mysite.com/aggregator. One more thing. Does a .htaccess script automatically get created in the same folder I put the flash file. I guess it happen since I made it part of the page.tpl.php script. It told me not to remove the file. One more thing I need to add. I just seen that the flash I embedded does not show on IE browsers but it shows in firefox. Is there anyway to make this compatible with ie? Could there be a module out there for drupal that will show a link and logo that says get firefox when it detects that the user is using ie? I was working with another CMS app that had this module or component available. Once again I do appreciate the help.

site project I'm working for this situation is @ http://hoodmatrix.jaymediaspot.com

Do what you enjoy and love. JayDigga ; - )

 
 

Drupal is a registered trademark of Dries Buytaert.