Is it possible to add a flash banner in the Earthen theme. I created a jpg banner which works fine. How can I include a flash .swf file?

Comments

mndonx’s picture

Hi there - You can find information on including flash in your page template here:

http://drupal.org/node/379128

Just make edit the code to the proper path and settings you need.

sean456’s picture

Hey thanx such a nice theme...

-----------------
Sean Cruz
caravans

valedaw2’s picture

Thanks so much for the flash banner fix.

Now, is it possible to only have the picture on the first page. (the picture that is part of the theme)

mndonx’s picture

If you just want something in your page.tpl.php to only show on the front page, add a php if statement around it to check to make sure you are on the front page, like:

<?php if ($is_front): ?>
  <p>This will only appear on the front page.</p>
<?php endif; ?>
valedaw2’s picture

Hi,
First, let me say thanx. You have been so helpful. I am noticing that the flash banner is not showing on all pages.

Also, when I set the code to only show the other picture on the front page, I expected the content to move up. Instead the right side bar expanded across the page.

mndonx’s picture

Hi valedaw2 -

Which pages is the flash banner not showing on? What is different about them? Do you have more than one page.tpl.php file (like page-node.tpl.php, for instance?) Do you see it in the code, or is it not printing at all?

As for the front page picture, you may have predefined CSS that is dictating the height of that area. I can't say for sure since I can't see it. But I'm guessing that's an issue with CSS.

Amanda

valedaw2’s picture

Hi,
The site is godsbattleaxeintl.com.
The banner is not showing on pages with the path beginning with godsbattleaxeintl.com/content*.

Also, is it possible to make the food picture a gallery?

mndonx’s picture

Make sure your path to the swf is accessible from internal pages. It looks like you need to add a backslash in front of it so it is pointing to the right place. Change:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="880" height="228">
      <param name="movie" value="sites/all/themes/earthen/images/gbaBanner.swf" />
      <param name="quality" value="high" />

<embed src="sites/all/themes/earthen/images/gbaBanner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="880" height="228"></embed>
</object>

to this:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="880" height="228">
      <param name="movie" value="/sites/all/themes/earthen/images/gbaBanner.swf" />
      <param name="quality" value="high" />

<embed src="/sites/all/themes/earthen/images/gbaBanner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="880" height="228"></embed>
</object>

You can certainly make your image into a gallery. There are several ways to do it -- you could do it manually with some javascript and a list of images, or use Views and something like Views Slideshow to rotate out the images. I'd look around and see what is available for it.

Amanda