Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Set "Top" link to link to catalog page instead of


Elmo

Recommended Posts

Hi , my index page of the site is index.html and not to the page at www.mysite.com/catalog. So I want to set it up such that the "Top" link (on top of page) will link to the www.mysite.com/catalog

instead of index.html

 

May I ask if anyone know how I can do that? Thanks! :rolleyes:

Best regards,

 

Elmo

Link to comment
Share on other sites

I want to do the same thing. I went and commented out that line where you said and just got a giant error message and fatal error message!! Let me ask, to comment out a line don't you just do this: //

 

Yes it is, and I just re-checked it on MS1 and it works just fine. What are you using for an editor?

Steve

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

Link to comment
Share on other sites

Just tried it again w/same result:

 

 

Warning: main(includes/filenames.php) [function.main]: failed to create stream: No such file or directory in /home/beachboy/public_html/catalog/includes/application_top.php on line 41

 

Fatal error: main() [function.main]: Failed opening required 'includes/filenames.php' (include_path='.:/usr/local/lib/php:cgi-bin') in /home/beachboy/public_html/catalog/includes/application_top.php on line 41

Link to comment
Share on other sites

I don't know what you are doing, but the error and the edit are two diffrent issues. I'm not sure what is causing it, but it is not the edit I've posted. Or, you have commented out the wrong line. Double check your work.

 

Line approx 484

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

 

Is this the line you have edited. Mine has the comment // tags.

Steve

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

Link to comment
Share on other sites

MMMMM. That is strange. It shouldn't do that. The only thing I can think of is the editor is doing something to change the file enough, without your knowlege, to cause the error.

 

You got me, this hack has been around for a long time and there is no reason that it shouldn't work for you.

Steve

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

Link to comment
Share on other sites

Souce edit is a multi format editor..When I change a file I save it as a php file..I'm wondering if I open that file, alter it and when done just click save instead of save as It may just save it in it's original form w/out trying to change any of the php format..

Link to comment
Share on other sites

I am wondering how come if I delete that line instead of comment it out, I have not error message? I was doing some testing.

 

Commenting is so you can come back later and uncomment it. If you delete it and you change your mind later????????

Steve

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

Link to comment
Share on other sites

2.2

 

I just tried something out that came out strange also. I went to catalog/includes/languages/english.php and there was a line:

define('HEADER_TITLE_TOP', 'Top'); I commented it out and got an error message so I tried deleting it and now on my pages instead of saying just "Top" it now says:

"HEADER_TITLE_TOP"

Link to comment
Share on other sites

2.2

 

I just tried something out that came out strange also. I went to catalog/includes/languages/english.php and there was a line:

define('HEADER_TITLE_TOP', 'Top'); I commented it out and got an error message so I tried deleting it and now on my pages instead of saying just "Top" it now says:

"HEADER_TITLE_TOP"

 

You can't do that. This is your language file and if OSC doesn't have a file to refer to it will just print the variable. Try this.

define('HEADER_TITLE_TOP', 'Top'); 



to this



define('HEADER_TITLE_TOP', '');



Be sure to leave the single quotes in place.

This will now leave a empty string and it shouldn't show anything.

Steve

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...