Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

edit "top" link in oscommerce


willieb

Recommended Posts

Posted

Hi,

 

I am looking for to edit the url in the link "top"...

 

Any ideas whewre to find this link url?

 

Thanks.

Posted
What do you want to do, change the text or remove the link?

 

 

Hi Spax,

 

either would be fine but to edit/change the linked url would be prefered.

Posted

Well, you can edit the text "Top" from includes/languages/english.php or whatever language you use.

 

define('HEADER_TITLE_TOP', 'Top');

 

Or you can remove it by commenting the first line from the breadcrumb trail in includes/application_top.php. Like this:

 

  //$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);
 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

Posted
Well, you can edit the text "Top" from includes/languages/english.php or whatever language you use.

 

define('HEADER_TITLE_TOP', 'Top');

 

Or you can remove it by commenting the first line from the breadcrumb trail in includes/application_top.php. Like this:

 

  //$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);
 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

 

 

Hi Spax,

 

I have ried to comment out the lines as you have stated above but I keep getting a 406 error and it wont allow me to save.

 

what am I doing wrong?????

Posted
I've no idea. I don't know how you would get a 406 error by just adding a comment. Show us what you did.

 

 

Hi,

 

I placed the // just before the line " $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); " in the includes/application_top.php as instructed.

Posted
I placed the // just before the line " $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); " in the includes/application_top.php as instructed.

 

Very strange! What happens if you delete that line, instead of using a comment?

Posted
Very strange! What happens if you delete that line, instead of using a comment?

 

 

Hi Spax,

 

Thank you for getting back again.

 

I couldn't even delete as it would not allow me to save it.

 

I haven't tried since then to edit the lines out so I will try again to see if it happens again and I will keep you posted.

 

Thanks,

 

willieb

  • 2 months later...
Posted

I am having an issue with the top link in top navigation bar.With mouse over the catalog link, the correct kink appears in the task bar and works fine.

 

But mouse over home (top), it shows http://brs-giftshop.com/ in the task bar. Now I checked a few files for any possible errors. The permission is set at 755 - i hope that is the correct setting.

 

This what I see in my application_top.php file:

 

// include the breadcrumb class and start the breadcrumb trail
 require(DIR_WS_CLASSES . 'breadcrumb.php');
 $breadcrumb = new breadcrumb;

 $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);
 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));
// include the breadcrumb_tags class and start the breadcrumb_tags trail
 require(DIR_WS_CLASSES . 'breadcrumb_tags.php');
 $breadcrumb_tags = new breadcrumb_tags;

 

and in my includes/languages/english.php

 

// header text in includes/header.php
define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account');
define('HEADER_TITLE_MY_ACCOUNT', 'My Account');
define('HEADER_TITLE_CART_CONTENTS', 'Cart Contents');
define('HEADER_TITLE_CHECKOUT', 'Checkout');
define('HEADER_TITLE_TOP', 'Home');
define('HEADER_TITLE_CATALOG', 'Catalog');
define('HEADER_TITLE_LOGOFF', 'Log Off');
define('HEADER_TITLE_LOGIN', 'Log In');

 

As for $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); looking in configure.php, it is s http://brs-giftshop.com

 

So I am getting a 403 error code. And I know that has to with the correct permission setting.

 

So is there something I am missing?

 

Thanks.

 

Bennett

Archived

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

×
×
  • Create New...