Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

banner manager osc 2.3.1


saupe31

Recommended Posts

  • 2 weeks later...

its ok i worked it out myself u add

<?php $banner = tep_banner_exists('dynamic', '468X50')?>

<?php echo tep_display_banner('static', $banner); ?>

 

after

<?php echo tep_customer_greeting(); ?>

 

</div>

Link to comment
Share on other sites

  • 2 weeks later...

<?php if ($banner = tep_banner_exists('dynamic', 'link1')){?>
<?php echo tep_display_banner('static', $banner); ?>
<?php
 }
?>
<?php if($banner = tep_banner_exists('dynamic', 'link2')){?>
<?php echo tep_display_banner('static', $banner); ?>
<?php
 }
?>
<br>
<?php if($banner = tep_banner_exists('dynamic', 'link3')){?>
<?php echo tep_display_banner('static', $banner); ?>
<?php
 }
?>
<?php if($banner = tep_banner_exists('dynamic', 'link4')){?>
<?php echo tep_display_banner('static', $banner); ?>
<?php
 }
?>

heres how i added 4 to the index in banner manager you just set up 4 different groups link 1- 4 and the banner will show in that position

Link to comment
Share on other sites

  • 6 months later...

Hello

I have almost the same proble. I try to bring my footer banner to the header, I tried all what you wrote but it is not working. Maybe somebody can explain me how to do it? I was reading the manual from Front page, I installed hfc Banner cycle-- notgin happen

 

Thank you in advance for helping

Link to comment
Share on other sites

  • 10 months later...
  • 3 weeks later...

Did anyone get clear advice on how to do this. All I want is to insert the banner info from catalog/includes/footer.php, into the header.php to make the banner appear at the top of the page instead of the bottom. When I inserted the code as advised above:

< ?php $banner = tep_banner_exists('dynamic', '468X50')?>

< ?php echo tep_display_banner('static', $banner); ?>

 

before the store logo

it did work, but overran the other text and was unformated. My code in the footer was a little longer, but when I put it in the same place in the header as the code above it threw up an error and shut the site down, I've tried several combinations. I suspect i'm adding or missing a little ending, but I don't know which bit as I do not understand what any of the code actually means, any help would be appreciated:

 

<?php

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

?>

<div class="grid_24" style="text-align: center; padding-bottom: 20px;">

<?php echo tep_display_banner('static', $banner); ?>

</div>

Running a botched up version of  osCommerce Online Merchant v2.3.4 bootstrap with the dresscode theme installed, numerous add-ons, terrible coding, terrible website, but will have to make do until I have made up for my losses and can risk shutting down for a couple of weeks while I start all over again. - I did not install my program but am endeavouring to fix it with your help.

Link to comment
Share on other sites

Anyone could help me? Thanks a lot.

The banner is not displayed on my web shop skytechking.com. i have chosen the banner group"480x50", but it still doesn't show, it shows in the bottom.

I restore the original file footer.php, the banner area goes blank, it still shows in the bottom.

i edit footer.php

<?php

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

?>

<br>

 

to

 

<?php

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

?>

<br>

 

the banner still doesn't show correctly.

My footer.php code is

<?php

/*

$Id$

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2010 osCommerce

 

Released under the GNU General Public License

*/

 

//require(DIR_WS_INCLUDES . 'counter.php');

?>

 

<?php

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

?>

 

<div class="grid_24" style="text-align: center; padding-bottom: 20px;">

<?php echo tep_display_banner('static', $banner); ?>

</div>

 

<?php

}

?>

 

<script type="text/javascript">

$('.productListTable tr:nth-child(even)').addClass('alt');

</script>

 

 

Any one could help me? or tell me how to make the banner show. Thanks very much.

Juby


  •  

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...