Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.

A Banner Manager Hack by ejsolutions.co.uk (Ridexbuilder)

This will provide you with a set of four banner positions:

  • top
  • middle
  • footer
  • bottom

In Banner Manner, use the above for the Group names. the 'top' banner will appear before your centre column information. The 'middle' banner will float up and down, in relation to your centre column information (appearing at the bottom of it). 'footer' appears on the standard date and number of requests position. 'bottom' appears, guess where..

Edit catalog/templates/yourtemplate/main_page.tpl.php and examine the code below, compared to your own template. Just include the relevant positions or use all of them - banners will only appear where you have assigned the Group in Banner Manager.

Code snippets: (allows you to see where to insert the relevant code in its' correct position)

<?php
  if ($banner = tep_banner_exists('dynamic', 'top')) {
?>
    <td align="center"><?php echo tep_display_banner('static', $banner); ?></td>
<br/>
<?php
  }
?>  						
   								 <td align="center">
   								 <?php
     require (bts_select ('content')); // BTSv1.5
   								 ?>
     require (bts_select ('content')); // BTSv1.5
   								 ?>
   								 </td>
  						</tr>
					</table>

<?php
  if ($banner = tep_banner_exists('dynamic', 'middle')) {
?>
<br/>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center"><?php echo tep_display_banner('static', $banner); ?></td>
  </tr>
</table>
<br/>
<?php
  }
?>
   </td>

<?php require(DIR_WS_INCLUDES . 'counter.php'); ?>
      <table border="0" cellpadding="0" cellspacing="0"
 width="100%">
        <tbody>
          <tr class="footer">
             <td class="footer" width="20%">&nbsp;&nbsp;<?php echo strftime(DATE_FORMAT_LONG); ?>&nbsp;&nbsp;</td>
             <?php
               if ($banner = tep_banner_exists('dynamic', 'footer')) {
               ?>
                   <td class="footer" width="60%" align="center"><?php echo tep_display_banner('static', $banner); ?></td>
               <?php
               }
               ?>
            <td class="footer" align="right" width="20%">&nbsp;<?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>&nbsp;&nbsp;</td>
          </tr>
        </tbody>
      </table>
  echo FOOTER_TEXT_BODY
?>

    <p>&nbsp;</p></td>
  </tr>
</table>
<?php
  if ($banner = tep_banner_exists('dynamic', 'bottom')) {
?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center"><?php echo tep_display_banner('static', $banner); ?></td>
  </tr>
</table>
<?php
  }
?>
<!-- footer_eof //-->

It's up to you to ensure that graphics banners are an appropriate size - remember that you can have textual banners too.

This should be an improvement for everyone who uses banners and can be easily modified to add 'header' for example. Please discuss on the forum, though this is so basic support will be limited. Remember to use Rep Power, Thanks and donations ;-)


E Jonsen 2010/03/25 04:49

  • Bookmark at
  • Bookmark "A Banner Manager Hack by ejsolutions.co.uk (Ridexbuilder)" at Digg
  • Bookmark "A Banner Manager Hack by ejsolutions.co.uk (Ridexbuilder)" at Furl
  • Bookmark "A Banner Manager Hack by ejsolutions.co.uk (Ridexbuilder)" at Reddit
  • Bookmark "A Banner Manager Hack by ejsolutions.co.uk (Ridexbuilder)" at Google
  • Bookmark "A Banner Manager Hack by ejsolutions.co.uk (Ridexbuilder)" at StumbleUpon
  • Bookmark "A Banner Manager Hack by ejsolutions.co.uk (Ridexbuilder)" at Technorati
  • Bookmark "A Banner Manager Hack by ejsolutions.co.uk (Ridexbuilder)" at Facebook
  • Bookmark "A Banner Manager Hack by ejsolutions.co.uk (Ridexbuilder)" at Twitter
  • Bookmark "A Banner Manager Hack by ejsolutions.co.uk (Ridexbuilder)" at Slashdot
banners.txt · Last modified: 2010/04/02 03:58 (external edit)
You are here: startbanners
Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0