Solved

Flash header on Drupal theme

Posted on 2009-07-14
2
2,916 Views
Last Modified: 2012-05-07
How do I replace the JPEG header in the following drupal theme. I have tried, but have been unsuccessful. The flash header filename is header.swf with width = 890 height 175.

The code for my page.tpl.php page is below.

Thanks
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo get_page_language($language); ?>" xml:lang="<?php echo get_page_language($language); ?>">
 
<head>
  <title><?php if (isset($head_title )) { echo $head_title; } ?></title>
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  <?php echo $head; ?>  
  <script type="text/javascript" src="<?php echo get_full_path_to_theme(); ?>/script.js"></script>  
  <?php echo $styles ?>
  <?php echo $scripts ?>
  <!--[if IE 6]><link rel="stylesheet" href="<?php echo $base_path . $directory; ?>/style.ie6.css" type="text/css" /><![endif]-->  
  <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
</head>
 
<body>
<div class="PageBackgroundSimpleGradient">
</div>
<div class="PageBackgroundGlare">
    <div class="PageBackgroundGlareImage"></div>
</div>
<div class="Main">
<div class="Sheet">
    <div class="Sheet-tl"></div>
    <div class="Sheet-tr"><div></div></div>
    <div class="Sheet-bl"><div></div></div>
    <div class="Sheet-br"><div></div></div>
    <div class="Sheet-tc"><div></div></div>
    <div class="Sheet-bc"><div></div></div>
    <div class="Sheet-cl"><div></div></div>
    <div class="Sheet-cr"><div></div></div>
    <div class="Sheet-cc"></div>
    <div class="Sheet-body">
 
<div class="Header">
<div class="Header-jpeg"></div>  
   
<div class="logo">
 <?php if ($site_name) : ?>
 <h1 class="logo-name"><a href="<?php echo check_url($base_path); ?>" title = "<?php echo $site_name; ?>"><?php echo $site_name; ?></a></h1>
 <?php endif; ?>
 <?php if ($site_slogan) : ?>
 <div class="logo-text"><?php echo $site_slogan; ?></div>
 <?php endif; ?>
</div>
</div>
<div class="nav">
<?php
if (get_drupal_version() >= 6) {
	$menu_name = variable_get('menu_default_node_menu', 'primary-links');
	$tree = menu_tree_page_data($menu_name);
	echo art_menu_tree_output_d6($tree);
} else {
	echo art_menu_tree_output_d5(variable_get('menu_primary_menu',0));
}
?>
<div class="l"></div>
<div class="r"><div></div></div>
</div>
<div class="contentLayout">
<div class="content">
<div class="Post">
    <div class="Post-body">
<div class="Post-inner">
<div class="PostContent">
<?php if (!empty($breadcrumb)): print theme('breadcrumb', $breadcrumb); endif; ?>
<?php if (!empty($tabs)): print $tabs.'<div class="cleared"></div>'; endif; ?>
<?php if (!empty($tabs2)): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif; ?>
<?php if (isset($mission)): print '<div id="mission">' . $mission . '</div>'; endif; ?>
<?php if (isset($help)): print $help; endif; ?>
<?php if (isset($messages)): print $messages; endif; ?>
<?php print art_content_replace($content); ?>
 
</div>
<div class="cleared"></div>
 
</div>
 
    </div>
</div>
 
</div>
<div class="sidebar1">
<?php
if (isset($sidebar_right)) print $sidebar_right;
else if (isset($right)) print $right; 
?>
</div>
 
</div>
<div class="cleared"></div>
<div class="Footer">
    <div class="Footer-inner">
        <a href="<?php $feedsUrls = array_keys(drupal_add_feed()); if(isset($feedsUrls[0]) && strlen($feedsUrls[0])>0) {echo $feedsUrls[0];} ?>" class="rss-tag-icon" title="RSS"></a>
        <div class="Footer-text">
        <?php echo $footer_message; ?>
        <?php echo $footer; ?>
        </div>
    </div>
    <div class="Footer-background"></div>
</div>
 
    </div>
</div>
<p class="page-footer">
  <?php //echo t('Powered by ').'<a href="http://drupal.org/">'.t('Drupal').'</a>'.t(' and ').'<a href="http://www.artisteer.com/drupal">Drupal Theme</a>'.t(' created with ').'Artisteer'; ?>
 
</p>
 
</div>
 
 
<?php if ($closure_region): ?>
  <div id="closure-blocks"><?php print $closure_region; ?></div>
<?php endif; ?>
<?php print $closure; ?>
 
</body>
</html>

Open in new window

0
Comment
Question by:zerog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
Carl Bohman earned 500 total points
ID: 24864300
You should be able to simply replace line 35 (<div class="Header-jpeg"></div>) with the code to insert your flash file.  Something like the following.
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="890" HEIGHT="175" id="Header" ALIGN="">
<PARAM NAME="movie" VALUE="header.swf">
<PARAM NAME="quality" VALUE="high">
<PARAM NAME="bgcolor" VALUE="#FFFFFF">
<EMBED src="header.swf" quality="high" bgcolor="#FFFFFF" WIDTH="890" HEIGHT="175" NAME="Header" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT> 

Open in new window

0
 

Author Comment

by:zerog
ID: 24866532
Thanks. I had to replace the line (<div class="Header-jpeg"></div>) with your code in the following pages, then it appeared on every page within Drupal.

page.tpl.php
page-blog.tpl.php
page-node.tpl.php
page-node-add.tpl.php
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question