gr3gg0r Posted November 9, 2007 Posted November 9, 2007 When I change the banner in the header.php, the whole header seems to be broken. Since the site isn't really live yet, I'm going to leave it broken for the time being. This is what isn't broken: tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) If i change store_logo.png or STORE_NAME the header breaks and goes like it currently is in the site. http://www.jabproductsonline.com How can I prevent it from breaking like this? I only have a limited understanding of php so go easy :)
LanaS Posted November 9, 2007 Posted November 9, 2007 When I change the banner in the header.php, the whole header seems to be broken. Since the site isn't really live yet, I'm going to leave it broken for the time being. This is what isn't broken: tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) If i change store_logo.png or STORE_NAME the header breaks and goes like it currently is in the site. http://www.jabproductsonline.com How can I prevent it from breaking like this? I only have a limited understanding of php so go easy :) I would suggest that you, first, restore the original page (you did make a back-up before making changes, right?), then go to http://www.oscommerce.info/docs/english/e_...merce_logo.html and follow the instructions laid there to the letter. Lana
gr3gg0r Posted November 9, 2007 Author Posted November 9, 2007 I would suggest that you, first, restore the original page (you did make a back-up before making changes, right?), then go to http://www.oscommerce.info/docs/english/e_...merce_logo.html and follow the instructions laid there to the letter. Lana This is what I did. Here's my code for that line: <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'banner.png', 'jabProductsOnline.com') . '</a>'; ?><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?><?php echo $breadcrumb->trail(' » '); ?><?php if (tep_session_is_registered('customer_id')) { ?><?php echo HEADER_TITLE_LOGOFF; ?> This is what's broken on the live site. any suggestions? http://www.jabproductsonline.com
LanaS Posted November 12, 2007 Posted November 12, 2007 This is what I did. Here's my code for that line: <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'banner.png', 'jabProductsOnline.com') . '</a>'; ?><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?><?php echo $breadcrumb->trail(' » '); ?><?php if (tep_session_is_registered('customer_id')) { ?><?php echo HEADER_TITLE_LOGOFF; ?> This is what's broken on the live site. any suggestions? http://www.jabproductsonline.com Hi This is what I have in my catalog\includes\header.php file - and it workd fine (you may check www.feshop.co.za): ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'logo_feshop_front.gif', 'FE Shop') . '</a>'; ?></td> <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> </tr> </table> It seems to me that your problem is in alingment - where is the <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image etc,etc and <td align="right" valign="bottom"><?php echo '<a href="' . etc,etc for account and other links? Lana
shuntashay Posted November 13, 2007 Posted November 13, 2007 Thanks you for this information. I was going nuts trying to change the header gif.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.