Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header menu is doubling all links for some reason???


GD

Recommended Posts

Hi Everyone,

 

Help, I have run into a problem...

 

My Header menu is doubling all links for some reason. :shock:

Does anyone know how to fix this :?: :?: :?:

 

---------------------

 

Source code:

 

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="headerNavigation">

<td class="headerNavigation">  <a href="http://www.mydomain.com" class="headerNavigation">Home</a> » <a href="http://www.mydomain.com/catalog/default.phphttp://www.mydomain.com/catalog/default.php" class="headerNavigation">Catalog</a></td>

<td align="right" class="headerNavigation"><a href="https://www.mydomain.com/catalog/account.php?osCsid=session_numbershttps://www.mydomain.com/catalog/account.php?osCsid=session_numbers" class="headerNavigation">My Account</a>  |  <a href="http://www.mydomain.com/catalog/shopping_cart.phphttp://www.mydomain.com/catalog/shopping_cart.php" class="headerNavigation">Shopping Cart</a>  |  <a href="https://www.mydomain.com/catalog/checkout_payment.php?osCsid=session_numbershttps://www.mydomain.com/catalog/checkout_payment.php?osCsid=session_numbers" class="headerNavigation">Checkout</a>   </td>

</tr>

</table>

<!-- header_eof //-->

 

-----------------------

 

oSC header.php code:

 

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="headerNavigation">

<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

</tr>

</table>

 

 

Thanks in advance!

Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!

Link to comment
Share on other sites

Hi Linda,

 

I can not give out the domain for the store to the general public yet, and I do not really want to deal with spammers lurking in the oSC forums :evil:, but I will gladly e-mail you the link if you don't give it out or post it anywhere.

 

Okay :?: Promise:?:

Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!

Link to comment
Share on other sites

Nice ;)

 

E-mail is on its way.

 

Thanks :!:

Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!

Link to comment
Share on other sites

We've upgraded from 2.1 to 2.2

in the admin/configuration/MyStore options are duplicated..

 

how can I remove the duplcates...

 

E-Mail Address myname@domain.com

E-Mail From sales@domain.com>

Store Owner

Country United Kingdom

Zone

Zone

Expected Sort Order desc

Expected Sort Field date_expected

Switch To Default Language Currency true

Switch To Default Currency true

Send Extra Order Emails To

Send Extra Order E-Mails To

Use Search-Engine Safe URLs (still in development) false

Use Search-Engine Safe URLs false

Display Cart After Adding Product true

Display Cart After Adding Product true

Allow Guest To Tell A Friend true

Allow Guest To Tell A Friend false

Default Search Operator and

Default Search Operator and

Store Address and Phone

Store Address and Phone

Store Name

 

The name of my store

 

Date Added: 11/27/2002

Last Modified: 11/27/2002

 

 

thanks

B

Link to comment
Share on other sites

I think I found out what *I* did wrong... :oops:

 

I changed line 69 in the catalog/includes/functions/html_output.php

 

from:

 

return $link;

 

to:

 

return htmlspecialchars($link) . $link; // Changed this to plug Cross Site Scripting hole

 

It should have been:

 

return htmlspecialchars($link); // Changed this to plug Cross Site Scripting hole

 

I'm not 100% sure, but I think I'm heading in the right direction to fix the site doubling all the hyperlinks. :)

 

I post the yes or no answer when I get my site back up.

Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!

Link to comment
Share on other sites

The answer to my own question was *yes*, the error was my own typo!  :shock:

Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!

Link to comment
Share on other sites

Thanks for the input Linda,

 

I know I should stop working on the code when I get tired, but something about breaking parts of the code down, helps me learn how to use it. :D

 

I'd still be lost though, without people like you and everybody else in the osCommerce forums. Very helpful indeed!

 

--------------------

 

Bearman,

 

Sorry I don't have a "the" answer for your problem, but...

 

If your still in the "development stage" on your site, I'd backup what I had, database; ect., then do a clean installation of 2.2, and then again if needed. And you should do a search for 2.1 to 2.2 conversions, you might find that someone already has the answer you need.

 

Good luck!

 

-------------------

 

I'm on to other problems to be solved. :wink:

Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!

Link to comment
Share on other sites

We've upgraded from 2.1 to 2.2

in the admin/configuration/MyStore options are duplicated..

 

how can I remove the duplcates...

 

It looks as if you have double entries in the configuration table. I don't really understand how this could happen, though. Can you mail me a database dump (or provide a phpMyAdmin access?)

 

 

Christian

Christian Lescuyer

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...