banner will not display on all pages

BeMathis - November 2, 2009 - 17:07
Project:Marinelli
Version:6.x-2.96
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I have created a flash banner for a website www.assetricity.com but the banner will not display on all pages.
The banner only shows on pages that have a path containing none of 1 path nodes
http://www.assetricity.com/ (works)
http://www.assetricity.com/home (works)
http://www.assetricity.com/node/services (does not work)

Just inserting a plane image using CSS will cause the image to be displayed on every page of the site but I cannot insert a shockwave file with CSS.

Any suggestions on what may be causing this problem.

Here is the modification to the page.tpl.php which i have done to display the flash banner.

<div id="header">
<?php
           
                  
print '<object width="970" height="180" wmode=transparent>
                            <param name="allowScriptAccess" value="sameDomain">
                            <param name="movie" value="sites/all/themes/marinelli/img/logo/Assetricitybanner.swf"></param>
                            <param name="allowFullScreen" value="false"></param>
                            <embed wmode=transparent allowScriptAccess="sameDomain" src="sites/all/themes/marinelli/img/logo/Assetricitybanner.swf" type="application/x-shockwave-flash" allowfullscreen="false" width="970" height="180"></embed>
                        </object>'
;
           
?>

#1

BeMathis - November 2, 2009 - 17:46

Okay, I was able to fix this problem by modifying the page.tpl.php to this

As you can see, I am having to reference the banner using the full path with domain name. I would like to NOT have to do that.

Suggestions on an alternative fix is appreciated.

<div id="header">
<?php
                  
print '<object width="970" height="180" wmode=transparent>
                            <param name="allowScriptAccess" value="sameDomain">
                            <param name="movie" value="http://www.assetricity.com/sites/all/themes/marinelli/img/banners/Assetricitybanner.swf"></param>
                            <param name="allowFullScreen" value="false"></param>
                            <embed wmode=transparent allowScriptAccess="sameDomain" src="http://www.assetricity.com/sites/all/themes/marinelli/img/banners/Assetricitybanner.swf" type="application/x-shockwave-flash" allowfullscreen="false" width="970" height="180"></embed>
                        </object>'
;
           
?>

  </div>

 
 

Drupal is a registered trademark of Dries Buytaert.