Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing the banner in the footer?


Cheeky Chino

Recommended Posts

Posted

How do i change the banner in the footer?

 

Not only changing the banner bu ti would also like to know.

If i was to change the file extension of the banenr where would i go?

Changing the name of the banner to work, where to go?

Changing the size of the banner, where?

 

All those things, in which files do i change these?

Posted

catalog/includes.php

 

change the name of the gif. to what you want, no re-sizing needed

Posted
How do i change the banner in the footer?

 

Not only changing the banner bu ti would also like to know.

If i was to change the file extension of the banenr where would i go?

Changing the name of the banner to work, where to go?

Changing the size of the banner, where?

 

All those things, in which files do i change these?

 

Actualy, the banners in the footer is controled in admin under Banners.

Steve

-------------------------

Posted

Cheeky,

 

I believe if you look in your includes/footer.php you will notice some code that mentions;

 

<?php

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

?>

 

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

<tr>

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

</td>

</tr>

 

 

If you have multiple size banners, i.e. in admin you can add a new banner group by designating a size of the banner, (468x50 is default, add new banner group 125x50) after that you could try to do something like this example (Oscommerce banner on right, small banner on left.)

 

(includes/footer.php)

 

<?php

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

?>

 

<table border="0" width="470" cellspacing="0" cellpadding="0" align="center" bgcolor="">

<tr>

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

</td>

</tr>

 

<?php

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

?>

 

<table border="0" width="125" cellspacing="0" cellpadding="0" align="left" bgcolor="">

<tr>

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

</td>

</tr>

 

 

Now mind you, Im no expert and this is my first approach. I havent tested it and am not 100% sure.. OK OK all the lawyer #*Y_$(# aside that should get you close.

 

;)

Broadway

anybody.anywhere.anytime

Posted

Take a look in admin under tools->banners. Add two banners and see what happens.

Posted
Yeah ok done that and also added the 2 banenrs under the same group, but still only the first banner appears :S

 

Strange. I'm using 2.2 MS1, and setting two banners works for me. What happens is that the banners are randomly chosen. Refresh the screen a few times to see if your second banner appears.

 

-- JJ

Posted

Oh - and make sure both banners are enabled (the little green light should be lit).

Archived

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

×
×
  • Create New...