Jump to content
Sign in to follow this  
jws818

Trying to add tabbed banner in my header and need to know where its defined

Recommended Posts

I would like to add a tabbed banner like the one at www.ipodmechanic.com

 

I can create the html and images just fine, but I'm not sure where they are defining that at. I looked

at there code but I couldn't find it there either.

 

Any help is appreciated!

 

Thanks,

 

James

Share this post


Link to post
Share on other sites

Ok if anyone is interested in adding tabbed headers to their OS commerce by simply editing the header.php file here it is.

 

First of all MAKE A BACKUP!!!!!!

 

Open your catalog/includes/header.php file and search for the following term: oscommerce.gif

 

This will be located in the table that reprsents the section of your site where you want the new

tabbed banner to go.

 

Simply highlight and delete the entire table containing oscommerce.gif and insert your new table.

Make sure all your images are linked correctly and preview in your browser.

 

Here is the exact section of the file you are looking to edit:

 

catalog/includes/header.php

 

Starting with app. line 55

 

<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 . 'oscommerce.gif', 'osCommerce') . '</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>

 

Delete that section and insert your new table with your tabbed banner and you should be ready to go.

 

Upload and preview in browser, tweak to meet your needs.

Share this post


Link to post
Share on other sites
Here is my result so far:

 

http://www.eadvantageauctions.com/oscommerce/catalog/

I haven't finalized an actual company logo yet, but as far as the tabs go I think

I accomplished what I was looking for.

 

If anyone is interested in achieving this effect please email me at

 

admin@eadvantageauctions.com

 

Thanks,

 

James

 

 

 

See the latest updates at www.eadvantageauctions.com/oscommerce

 

Still working on getting rid of that error about tmp/directory.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×