Adding banner to mission statement

rootbalans - February 28, 2007 - 12:28

I'd like add following codes in mission statement;

<?php
   
if (@include('/home/11529/domains/mysite.com/html/reklam/phpadsnew.inc.php')) {
        if (!isset(
$phpAds_context)) $phpAds_context = array();
       
$phpAds_raw = view_raw ('zone:1', 0, '', '', '0', $phpAds_context);
        echo
$phpAds_raw['html'];
    }
?>

How can I do it?

I have been able to replace

lionheart8 - February 28, 2007 - 14:11

I have been able to replace the Mission statement with an image before, and it involved playing around with page.tpl.php ... in the site theme.

The code below is from the Garland theme of Drupal 5
The place occupied by the image tag/path had the variable $mission producing the mission statement.

I suppose whatever you do will involve replacing or doing something around "$mission" .
I suppose other themes use the same variable $mission.

....

      </div> <!-- /header -->



      <?php if ($sidebar_left): ?>

        <div id="sidebar-left" class="sidebar">

          <?php if ($search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>

          <?php print $sidebar_left ?>

        </div>

      <?php endif; ?>



      <div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">

          <?php if ($breadcrumb): print $breadcrumb; endif; ?>

          <?php if ($mission): print '<div id="mission">''<img src="/drupal5/themes/garland2/mission1.gif" width="500" height="32" align="center">' .'</div>'; endif; ?>

...

I have been able to add a

skyl1ne - May 10, 2007 - 01:23

I have been able to add a banner in Drupal 5.x in the site information mission statement using:

<img src="http://mywebsite.com/drupal5/files/images/banner1.jpg" width="468" height="60" align="center">

but am unable to get it to "center". I've tried everything.

Any help would be appreciated. Thanks...

In Drupal 5.2 have been able

David_L - August 27, 2007 - 13:48

In Drupal 5.2 have been able to replace mission statement with banner (the mission1.gif in the statement) by adding the following in the page.tpl.php file stored in the themes directory (garland being the theme in this example)

<?php
if ($mission): print '<div id="mission">''<img src="/drupal5/themes/garland2/mission1.gif" width="500" height="32" align="center">' .'</div>'; endif;
?>

using Lionheart8's post above

 
 

Drupal is a registered trademark of Dries Buytaert.