dthralls Posted August 28, 2010 Posted August 28, 2010 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.
Guest Posted August 28, 2010 Posted August 28, 2010 David, Use this, creating two banner groups instead of one. http://addons.oscommerce.com/info/254 Chris
dthralls Posted August 28, 2010 Author Posted August 28, 2010 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.
dthralls Posted August 28, 2010 Author Posted August 28, 2010 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.
Guest Posted August 28, 2010 Posted August 28, 2010 David, You can hard code them but using the banner manager in admin is always best. Chris
dthralls Posted August 28, 2010 Author Posted August 28, 2010 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.
dthralls Posted August 28, 2010 Author Posted August 28, 2010 I would like to continue to use the banner manager, so far it has proven to be very user friendly.
Guest Posted August 28, 2010 Posted August 28, 2010 David, just tweek the code to remove that space. More than likely it is a nested table or spacer. Chris
dthralls Posted August 28, 2010 Author Posted August 28, 2010 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.
dthralls Posted August 28, 2010 Author Posted August 28, 2010 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.
Guest Posted August 28, 2010 Posted August 28, 2010 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
dthralls Posted August 30, 2010 Author Posted August 30, 2010 The URL is www.diypartscenter.com Thanks for your assistance
catch Posted November 27, 2010 Posted November 27, 2010 hello. Thanks for this, It is very usefuld :-) But how can i hide it on the indes/frontpage? My best regards
Recommended Posts
Archived
This topic is now archived and is closed to further replies.