Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Banner Ads


wvmlt

Recommended Posts

In the /includes/footer.php is the code:

<?php

 if ($banner = tep_banner_exists('dynamic', '468x50')) {

?>

<br>

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

 <tr>

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

 </tr>

</table>

<?php

 }

?>

 

That is what makes up the banner ads in the Banner Group 468x50

 

You would need to find a convenient location in /includes/header.php to place that code.

 

Don't forget to back up before fussing with this ... :D

Link to comment
Share on other sites

  • 6 months later...

This is simple to do.

 

Open header.

 

Put this in to add it between the title image and the Account info stuff to the left.

 

find

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

<tr class="header">

<td valign="middle"><?php echo '<a href="http://www.thornefolk.net">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'Thornefolk Solutions') . '</a>'; ?></td>

 

Should be the begging of the table not to far down in this page.

Mind yours will nto say thornefolk solutions etc etc.

 

 

<?php

if ($banner = tep_banner_exists('dynamic', 'header')) {

?>

<br>

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

<?php

}

?>

 

 

Somthing to note.

 

Where it says header it used to say 468x50

 

That is whatever you define in your banner area.

 

I have two fields header and footer.

 

I changed the 468x50 in footer to say footer.

 

This tells me where the dang thigns will show up.. Allowing me to add banners in two locations. You can add more locals all over your site of course but you have to determine where to put the code. above.

Link to comment
Share on other sites

This is simple to do.

 

Open header.

 

Put this in to add it between the title image and the Account info stuff to the left.

 

find

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

<tr class="header">

<td valign="middle"><?php echo '<a href="http://www.thornefolk.net">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'Thornefolk Solutions') . '</a>'; ?></td>

 

Should be the begging of the table not to far down in this page.

Mind yours will nto say thornefolk solutions etc etc.

 

 

<?php

if ($banner = tep_banner_exists('dynamic', 'header')) {

?>

<br>

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

<?php

}

?>

 

 

Somthing to note.

 

Where it says header it used to say 468x50

 

That is whatever you define in your banner area.

 

I have two fields header and footer.

 

I changed the 468x50 in footer to say footer.

 

This tells me where the dang thigns will show up.. Allowing me to add banners in two locations. You can add more locals all over your site of course but you have to determine where to put the code. above.

 

One more note

 

The field ('dynamic', 'header') where you put in the word header or whatever you call your banners group has a max character limit of ten unless you go find the code to make that larger.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...