Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help adding banners


dthralls

Recommended Posts

I am new to osCommerce and .php is totally foreign to me. Can someone enlighten me as to how to stack banners in the left column, basically I am trying to add 2 banners in the left column that I want stacked on top of each other.

 

 

Thanks for your help.

Link to comment
Share on other sites

Awesome, thanks for your prompt reply. I got the files all loaded and the new banner showed up on my page, but i still need to know how to stack banners on top of one another.

 

 

Thanks for your help.

Link to comment
Share on other sites

I figured it out, I just added the code again in the "column_left.php" file. Like I said I am new to this .php and osCommerce stuff. Once again thanks for your help.

 

As a side note, if there is a different or better way to stack the banners please let me know.

 

Thank you.

Link to comment
Share on other sites

I'm not getting the results that I desire by stacking the same code, I am looking to have a stack of images that are all linked to different URL's in the left hand column. But by stacking the same string of code over and over I keep getting a line of text in between each image, I have figured out how to get rid of the text but there is still a gap between each image.

 

Can you recommend a better method as to create a stack of images in the left hand column that all link to different URL's.

 

Your input is greatly appreciated.

Link to comment
Share on other sites

This is the code from Column_banner.php

<!-- information //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',);

new infoBoxHeading($info_box_contents);

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => tep_display_banner('static', $banner));

new infoBox($info_box_contents);

?>

</td>

</tr>

 

 

And this is the code from column_left.php

 

<!-- information_eof //-->

 

// BOF: WebMakers.com Added: Column Banner

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

require(DIR_WS_BOXES . 'column_banner.php');}

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

require(DIR_WS_BOXES . 'column_banner2.php');

}

// EOF: WebMakers.com Added: Column Banner

 

If there is a nested table or spacer in there I can't find it, am I missing something?

 

Thanks for your help.

Link to comment
Share on other sites

This is the code from Column_banner.php

<!-- information //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',);

new infoBoxHeading($info_box_contents);

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => tep_display_banner('static', $banner));

new infoBox($info_box_contents);

?>

</td>

</tr>

 

 

And this is the code from column_left.php

 

<!-- information_eof //-->

 

// BOF: WebMakers.com Added: Column Banner

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

require(DIR_WS_BOXES . 'column_banner.php');}

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

require(DIR_WS_BOXES . 'column_banner.php');

}

// EOF: WebMakers.com Added: Column Banner

 

If there is a nested table or spacer in there I can't find it, am I missing something?

 

Thanks for your help.

Link to comment
Share on other sites

David,

 

No, I don't see any nested tables or spacers either. Do you have a URL you can post to your site so I/we can look at the code ?

 

 

 

Chris

Link to comment
Share on other sites

  • 2 months later...

Archived

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

×
×
  • Create New...