Guest Posted December 2, 2003 Posted December 2, 2003 Hi im trying to configure BOX HEADERS v1.0 to work on my site. I can install the infobox header image without any problem, but the footer image is doing my head in :angry: It appears fine, but there is a slight gap If i install the file that comes in the contribution all works fine - no gap Ive searched the code & cant see any differences that are likely to cause the gap. I need to know how to fix it as ive got different boxes that dont come with the contribution, so i cant just replace them. Heres the contribution code ?> <!-- whats_new //--> <tr> <td> <br> <TABLE WIDTH=173 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_whatsnew.gif" WIDTH=173 HEIGHT=20></TD> </TR> <TR> <td> <?php if ($random_product = tep_random_select("select products_id, products_image, products_tax_class_id, products_price from " . TABLE_PRODUCTS . " where products_status='1' order by products_date_added desc limit " . MAX_RANDOM_SELECT_NEW)) { $random_product['products_name'] = tep_get_products_name($random_product['products_id']); $random_product['specials_new_products_price'] = tep_get_products_special_price($random_product['products_id']); if ($random_product['specials_new_products_price']) { $whats_new_price = '<s>' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</s><br>'; $whats_new_price .= '<span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span>'; } else { $whats_new_price = $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])); } $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id'], 'NONSSL') . '">' . $random_product['products_name'] . '</a><br>' . $whats_new_price ); new infoBox($info_box_contents); } ?> </TD> </TR> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_footer2.gif" WIDTH=173 HEIGHT=20></TD> </TR> </TABLE> <!-- whats_new_eof //--> Heres mine: */ if ($random_product = tep_random_select("select products_id, products_image, products_tax_class_id, products_price from " . TABLE_PRODUCTS . " where products_status = '1' order by products_date_added desc limit " . MAX_RANDOM_SELECT_NEW)) { ?> <!-- whats_new //--> <tr> <td> <br> <TABLE WIDTH=173 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_whatsnew.gif" WIDTH=173 HEIGHT=20></TD> </TR> <?php $random_product['products_name'] = tep_get_products_name($random_product['products_id']); $random_product['specials_new_products_price'] = tep_get_products_special_price($random_product['products_id']); if (tep_not_null($random_product['specials_new_products_price'])) { $whats_new_price = '<s>' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</s><br>'; $whats_new_price .= '<span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span>'; } else { $whats_new_price = $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])); } $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br>' . $whats_new_price); new infoBox($info_box_contents); ?> <tr> <td> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_footer2.gif" WIDTH=170 HEIGHT=20></TD> </TR> <!-- whats_new_eof //--> <?php } ?> Ive messed with <tr> & <td> with no luck Any ideas PLLEEEEAASSSSEEE
Guest Posted December 2, 2003 Posted December 2, 2003 Ah Ha - managed to fix this - 2hrs of messing around & searching forums with no luck. Post this message & 15 mins later figure it out lol For anyone who gets the same problem this is what i changed :D new infoBox($info_box_contents); ?> <IMG SRC="images/boxes/table_footer2.gif" WIDTH=170 HEIGHT=20></TD> <tr> <td> </TR> <!-- whats_new_eof //--> <?php } ?> Hope this helps someone
burn_child Posted December 3, 2003 Posted December 3, 2003 Hi! I really like the look of the contribution you used but, I can't find BOX HEADERS v1.0 under contributions. If I could ask, where did you get that contribution? Thanks alot! burn_child
Recommended Posts
Archived
This topic is now archived and is closed to further replies.