Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Just added a new banner group but.... no show?


deiiviid

Recommended Posts

Posted

Alrighty! Added a new banner group at the Admin Banner Manager and named it "bannergroup2". This is so I could have two banners showing on my page, both at the bottom. Then I uploaded the banner image but the second banner is not showing at all. Am I supposed to fix something in the php code to put this second abnner group up in it's place? What's wrong here?

Posted

Check out this page:

catalog/includes/header.php

 

This is the page that loads banners for all your pages.

 

I edited it to show mine.

Lloyd

Posted
Check out this page:

catalog/includes/header.php

 

This is the page that loads banners for all your pages.

 

I edited it to show mine.

 

Impossible. I can't see how that file has anything to do with the banners shown at the bottom of the page.

 

My problem is about the new Banner Group, which isn't showing it's banner on the page.

Posted
Oh, sorry - you want them at the bottom..

Well try the 'footer.php'

 

Ah, Ok... So here's my plan: what if I just copy and paste this part:

 

 

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>

 

...and I replace the Banner Group name "468x50" with "bannergroup2"? Will I then get two different banners showing at the bottom of the page?

Posted

If you want 2 banners to display, you would need to add another row.

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

<tr>

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

</tr>

<tr>

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

</tr>

 

 

Unless your new $banner is an image of two banners in itself..

Lloyd

Posted
If you want 2 banners to display, you would need to add another row.

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

<tr>

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

</tr>

<tr>

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

</tr>

Unless your new $banner is an image of two banners in itself..

 

Ooohh... Interesting! So by changing that, I can have two banners in the same Banner Group (468x50)? I hope I understood you correctly, because if I did, that stuff is exactly what I need!!! :D

Posted
Ooohh... Interesting! So by changing that, I can have two banners in the same Banner Group (468x50)? I hope I understood you correctly, because if I did, that stuff is exactly what I need!!! :D

 

Ok so I tried this now. This added another row for sure but now I see the first and the same banner TWICE. I also get this error message:

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

 

I'm not sure what causes this because the 'bannergroup2' banner group DOES exist and it IS active. So this code presented above lead me to the right direction but is not correct. I need the second banner to show my second banner group and with no error messages...

Archived

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

×
×
  • Create New...