Elmo Posted March 27, 2003 Share Posted March 27, 2003 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 More sharing options...
toolcrazy Posted March 27, 2003 Share Posted March 27, 2003 Just eliminate the TOP link. It would be easier. But for the life of me I can't remember where the line that need to be commented out. :oops: Steve ------------------------- Link to comment Share on other sites More sharing options...
Elmo Posted March 28, 2003 Author Share Posted March 28, 2003 Thanks for the info, Steve! :D Best regards, Elmo Link to comment Share on other sites More sharing options...
toolcrazy Posted March 28, 2003 Share Posted March 28, 2003 I found the code: In catalog/includes/applictation_top.php find this line: $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); And just comment it out. Steve ------------------------- Link to comment Share on other sites More sharing options...
Elmo Posted March 28, 2003 Author Share Posted March 28, 2003 Thanks very much, Steve! :D Best regards, Elmo Link to comment Share on other sites More sharing options...
beachboy Posted March 31, 2003 Share Posted March 31, 2003 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: // Link to comment Share on other sites More sharing options...
beachboy Posted March 31, 2003 Share Posted March 31, 2003 My top button links to my webpage so I just want to get rid of it..Or the link. Link to comment Share on other sites More sharing options...
toolcrazy Posted March 31, 2003 Share Posted March 31, 2003 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 More sharing options...
beachboy Posted March 31, 2003 Share Posted March 31, 2003 I use 1st page 2000 for html and source edit for php. I did do that in 1st page though, Maybe I'll try it in souce edit as it is a php editor.. Link to comment Share on other sites More sharing options...
beachboy Posted March 31, 2003 Share Posted March 31, 2003 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 More sharing options...
beachboy Posted March 31, 2003 Share Posted March 31, 2003 This is line 40 and 41 that it refers to: 40. // include the list of project filenames 41. require(DIR_WS_INCLUDES . 'filenames.php'); Link to comment Share on other sites More sharing options...
toolcrazy Posted March 31, 2003 Share Posted March 31, 2003 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 More sharing options...
beachboy Posted March 31, 2003 Share Posted March 31, 2003 Yep..When I do this: // $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); I get the error..When I remove the 2 forward slashes the error goes away! Link to comment Share on other sites More sharing options...
beachboy Posted March 31, 2003 Share Posted March 31, 2003 On mine it's at line 399.. Just wondering I have a space between the // $breadcrumb Would that make a difference? I see all the other lines have that space also.. Link to comment Share on other sites More sharing options...
toolcrazy Posted March 31, 2003 Share Posted March 31, 2003 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 More sharing options...
beachboy Posted April 1, 2003 Share Posted April 1, 2003 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 More sharing options...
Elmo Posted April 1, 2003 Author Share Posted April 1, 2003 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. Best regards, Elmo Link to comment Share on other sites More sharing options...
beachboy Posted April 1, 2003 Share Posted April 1, 2003 I just tried deleting the line and got the same result..AARRGGHHH Link to comment Share on other sites More sharing options...
toolcrazy Posted April 1, 2003 Share Posted April 1, 2003 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 More sharing options...
beachboy Posted April 1, 2003 Share Posted April 1, 2003 I have a backup of the original so i can always come back to that.. Still can't get anything to work except on the default page but it only works on that page, not the rest of the site.. Link to comment Share on other sites More sharing options...
toolcrazy Posted April 1, 2003 Share Posted April 1, 2003 That is very strange. What snap are you using? Steve ------------------------- Link to comment Share on other sites More sharing options...
beachboy Posted April 1, 2003 Share Posted April 1, 2003 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 More sharing options...
beachboy Posted April 2, 2003 Share Posted April 2, 2003 Ell, still can't figure anything out..Did a search the Gmane site and found nothing on the subject.. Link to comment Share on other sites More sharing options...
beachboy Posted April 2, 2003 Share Posted April 2, 2003 I guess this post is dying out. Sure would like a fix for my problem though, It's keeping me awake at night!! Link to comment Share on other sites More sharing options...
toolcrazy Posted April 2, 2003 Share Posted April 2, 2003 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.