Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

TEP ERROR! (tep_display_banner(static, )


gregy

Recommended Posts

Hi!

 

I just moved code

 

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

 

from footer.php to my index page, cause i want to have displayed banners above HEADING_TITLE and categories

 

i recieve following error on my page

 

TEP ERROR! (tep_display_banner(static, ) -> Banner with ID '' not found, or status inactive

 

this here is part of index.php .. where i have insterted code moved from footer.php

 

<?php

  } else { // default page

?>

    <td width="100%" valign="top" class="maincont_mid_td"><table border="0" width="100%" cellspacing="0" cellpadding="0">

      <tr>

  <td><?php

  if ($banner = tep_banner_exists('dynamic', '468x60')) ;

?>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

  <tr>

    <td align="center"><?php echo tep_display_banner('static', $banner); ?></td>

  </tr>

</table></td>

  <tr>

  <tr>

        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">

          <tr>

            <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

            <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

          </tr>

        </table></td>

      </tr>

      <tr>

        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

      </tr>

      <tr>

        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">

          <tr>

            <td class="main"><?php echo tep_customer_greeting(); ?></td>

          </tr>

 

any idea what went wrong?

 

i do have banner in my admin .. i can check it out .. i can see it .. but on front page this error .. ;)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...