Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

More than one banner in column banner box


warrenerjm

Recommended Posts

Posted

Hi everyone

 

New thread & hopefully an answer as I have tried all I know, which is not a lot I know!! :-"

 

In my column banner box I would like PLEASE to show four banners. I have them labelled

 

Banner1

Banner2

Banner3

Banner4

 

in banner manager & this is my code in column_left.php:

 

// BOF: WebMakers.com Added: Column Banner
 if ( ($banner = tep_banner_exists('dynamic', 'Banner1') and $HTTPS !='on') ) {
require(DIR_WS_BOXES . 'column_banner.php');
 }
// EOF: WebMakers.com Added: Column Banner  
?>

 

Changed 125x125 to Banner1 which shows just that one now instead of rotating. I tried duplicating this line

  if ( ($banner = tep_banner_exists('dynamic', 'Banner1') and $HTTPS !='on') ) {

 

Like this:

 

// BOF: WebMakers.com Added: Column Banner
 if ( ($banner = tep_banner_exists('dynamic', 'Banner1') and $HTTPS !='on') ) {
 if ( ($banner = tep_banner_exists('dynamic', 'Banner2') and $HTTPS !='on') ) {
 if ( ($banner = tep_banner_exists('dynamic', 'Banner3') and $HTTPS !='on') ) {
 if ( ($banner = tep_banner_exists('dynamic', 'Banner4') and $HTTPS !='on') ) {
require(DIR_WS_BOXES . 'column_banner.php');
 }
// EOF: WebMakers.com Added: Column Banner  
?>

 

but got an unexpected ? error.

 

What I would like to know is how to add each new banner lineafter the first Banner1 line?

I'm sure this is simple php but I'm clueless. :huh:

 

Thanks

Julie

Posted

Hi

 

I know I am probably talking to myself, but you never know! I have managed to put more banners in my footer, using <table> & the original html code supplied by the other company. Great, so I tried that in the column banner box as I would prefer them there, BUT it doesn't like <table>. Can up with unexpected<> or was it</> Anyhow I counted them all & I had corresponding <> to</> & in that order.

 

This is probably easy to someone, but does anyone know what code the column banner will accept to list the html codes for each banner, & show the four banners in a single column below the header?

 

Anyone?

 

Thanks

Julie

Archived

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

×
×
  • Create New...