Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Custom Header and Session links


rgarland

Recommended Posts

I'm new to osCommerce, so bear with me...

 

I have completely replaced the standard header with a new header that includes a navigation bar. Now, I'm losing session information all over the place. I'm currently just linking to php pages directly, and I know I need to be using the tep_href_link(), but can't quite figure out how to do so.

 

Here is what I have done:

 

1. commented out the default header in the header.php file

2. added this line to that file:

<? Include ("rg_header.htm"); ?>

 

Here is rg_header.htm:

 

 

<center>

<TABLE WIDTH=727 height="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>

<TR>

<TD background="templates/Original/images/header.gif" WIDTH=727 HEIGHT=186 ALT=""><div style="padding-top:148px; padding-left:4px "><span style="padding-left:8px "></span><span style="padding-left:7px "></span>

<table border="0" cellpadding="0" cellspacing="0">

<tr>

<td><a href="index.php" target="_top" onClick="MM_nbGroup('down','group1','Home','',1)" onMouseOver="MM_nbGroup('over','Home','templates/Original/images/home2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="templates/Original/images/home.gif" alt="Home" name="Home" width="102" height="36" border="0" onload=""></a></td>

<td><a href="index.php" target="_top" onClick="MM_nbGroup('down','group1','Products','',1)" onMouseOver="MM_nbGroup('over','Products','templates/Original/images/products2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="templates/Original/images/products.gif" alt="Products for Sale" name="Products" width="104" height="36" border="0" onload=""></a></td>

<td><a href="specials.php" target="_top" onClick="MM_nbGroup('down','group1','Specials','',1)" onMouseOver="MM_nbGroup('over','Specials','templates/Original/images/specials2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="templates/Original/images/specials.gif" alt="Specials and Coupons" name="Specials" width="103" height="36" border="0" onload=""></a></td>

<td><a href="index.php" target="_top" onClick="MM_nbGroup('down','group1','Coming_Events','',1)" onMouseOver="MM_nbGroup('over','Coming_Events','templates/Original/images/coming_events2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="templates/Original/images//coming_events.gif" alt="Coming Events" name="Coming_Events" width="104" height="36" border="0" onload=""></a></td>

<td><a href="contact_us.php" target="_top" onClick="MM_nbGroup('down','group1','About_Us','',1)" onMouseOver="MM_nbGroup('over','About_Us','templates/Original/images/about_us2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="templates/Original/images/about_us.gif" alt="About Us" name="About_Us" width="105" height="36" border="0" onload=""></a></td>

<td><a href="shopping_cart.php" target="_top" onClick="MM_nbGroup('down','group1','My_Cart','',1)" onMouseOver="MM_nbGroup('over','My_Cart','templates/Original/images/my_cart2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="templates/Original/images/my_cart.gif" alt="Shopping Cart" name="My_Cart" width="104" height="36" border="0" onload=""></a></td>

<td><a href="checkout_shipping.php" target="_top" onClick="MM_nbGroup('down','group1','Checkout','',1)" onMouseOver="MM_nbGroup('over','Checkout','templates/Original/images/checkout2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="templates/Original/images/checkout.gif" alt="Go to Shopping Cart Checkout" name="Checkout" width="98" height="36" border="0" onload=""></a></td>

</tr>

</table>

 

</div></table></center>

 

*****

The rollover effects via javascript are working fine...

 

How do I modify this code to make use of the proper function wrapper to maintain session IDs?

 

Help is MUCH appreciated.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...