Guest Posted September 29, 2002 Share Posted September 29, 2002 Now - I have my website getting better and better (In my opinion at least!) but I have worked out the Breadcrumb trail, and how to change the text except for TOP. I changed it - but I am happy for it not to appear. Why? Cause my website falls on catalog/default.php and top will head straight to the www.____.com address. How can I change it not to appear or not to link at all??? Thanks in advance :D James G Link to comment Share on other sites More sharing options...
Guest Posted September 29, 2002 Share Posted September 29, 2002 try saving this as index.cgi in the root. It worked for my site, my web host wrote this for me. Not sure if there should be more, but it works on petlocker.com Good luck! ----------------------- #!/usr/bin/perl $url=""; if ($ENV{'HTTP_HOST'} =~ /(www.|^)domain.com/) {$url = "http://$ENV{'HTTP_HOST'}/catalog/default.php"} if($url eq "") {$url="http://www.domain.com/index.htm"} ################################################################# print "Location: $urln"; print "Content-Type: text/htmlnn"; print "<HTML><HEAD><TITLE>$ENV{'HTTP_HOST'}</TITLE></HEAD><BODY>n"; print "<A HREF="$url">Click here to enter</A>n"; print "</BODY></HTML>"; --------------------------------- Link to comment Share on other sites More sharing options...
Dennis Thompson Posted September 30, 2002 Share Posted September 30, 2002 u can remove the line that displays "TOP" from application_top.php ... or it might be header.php (i think it's header.php) just do a text search for "top" and you should find one surrounded with "breadcumb" coding. I managed to remove it for my clients site. Link to comment Share on other sites More sharing options...
celtic Posted January 4, 2003 Share Posted January 4, 2003 I also need to remove the Top link in the breadcrumb trial. I've found the breadcrumb code: <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> But how do I remove the "Top" link in the breadcrumb? I'm not too familiar with the php codes. Link to comment Share on other sites More sharing options...
celtic Posted January 6, 2003 Share Posted January 6, 2003 does anyone know which bit of the code I should modify or remove? Link to comment Share on other sites More sharing options...
Evolution Wireless Posted January 7, 2003 Share Posted January 7, 2003 Your looking in the wrong place celtic. :cry: If you would like to remove the (TOP>>) link, go into application_top and around line 436 you'll see... $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); Remove that line and voila, your top link is now gone! :D Link to comment Share on other sites More sharing options...
celtic Posted January 13, 2003 Share Posted January 13, 2003 Thanks Michael! found it and eliminated it yay :D Link to comment Share on other sites More sharing options...
PetterK Posted February 25, 2005 Share Posted February 25, 2005 Suggestion: This should be implemented into the knowledge base... Petter - Arktisk Pudder Link to comment Share on other sites More sharing options...
damsbo Posted April 16, 2005 Share Posted April 16, 2005 And someone should have a medal (of honour). Thanks for the contribution damsbo Link to comment Share on other sites More sharing options...
lepracaun Posted October 15, 2006 Share Posted October 15, 2006 Your looking in the wrong place celtic. :cry: If you would like to remove the (TOP>>) link, go into application_top and around line 436 you'll see...$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); Remove that line and voila, your top link is now gone! :D Works 100% - Thanks :thumbsup: Link to comment Share on other sites More sharing options...
griffinsbridge Posted March 14, 2007 Share Posted March 14, 2007 Way way way behind the times, but i had a slightly different problem and thought Id post my solution My beadcrumb was like this: SITENAME>>Home>>product SITENAME linked to my domain, which is good, cos it showed my homepage. Home linked to mydomain/index.php which was bad cos it was my homepage with a different URL. Duplicate content filters in google etc etc. So, I found the line mentioned above: $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); that line gets SITENAME, which i wanted to keep below that line was this: $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); That gets everything else afterwards. i changed that line to this: if(HEADER_TITLE_CATALOG != "Home"){ $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); } and now it ignores the "Home" link. Now my homepage is never linked to as /index.php, just mydomain.com. Duplicate filters avoided. Hope this helps someone else in the future I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours - Stephen Roberts Link to comment Share on other sites More sharing options...
Guest Posted April 11, 2007 Share Posted April 11, 2007 I found another reason to remove the "Top" link, apart from it being confusing given that it takes you to the same page as "Catalog". I found clicking "Top", as it linked to "/", lost the session ID in the URI and so cart contents disappeared. I know this is probably down to the way I've implemented sessions (I've not looked deep into osCommerce yet but can imagine that might be the case) but it's not great this can happen anyway. Link to comment Share on other sites More sharing options...
CTE_Shopping Posted May 18, 2007 Share Posted May 18, 2007 OBJECTIVE: Have two distinct domains urls (http://www.collectibletreasuresemporium.com & http://www.cteshopping.com ) point to two different osCommerce catalogs (https://df32.dot5hosting.com/~cteshopp/osCo...talog/index.php & https://df32.dot5hosting.com/~cteshopp/osCo...talog/index.php ) respectively. Ideally, I would skip a traditional webpage and have the url point to the first page of the catalog, but my web host said this is no feasible, which ai am not sure I believe. I am trying to avoid being sandbagged by search engines for a redirect. After extensive reading of the forums, It appears there are two ways to accomplish this: (1) Redirect the url from the index.html to my catalog file https://df32.dot5hosting.com/~cteshopp/osCo...talog/index.php (2) Moving my catalog files to the root directory and re-write breadcrumbs in a number of files. I believe this is a little beyond my level of php expertise. Now, I see the possibility of a third option. I would settle for TOP being changed to "Home" and linking back to my home page or the index.html page that my url is pointing to. The last solution presented by Ronnie C seemed to accomplish that. Since I am still farily new at writing php code, I want to make sure I am absolutely clear on what to change and the outcome. I think the code that I need to change that is found in --> edit web page: / home / public_html / osCommerce / catalog / includes / application_top.php // 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)); If you click on the catalog link that I provided and then click on "TOP" you will get the following message: Welcome to vDeck This is the default page for a vDeck hosting server. If you were expecting to see your website, come back tomorrow. If you still see this message then, send an email to support. I have emailed support three times this week and have not received a reply. I have made a request to point the second URL to a new index.html. I would appreciate any and all suggestions on how to tackle this improvement to my two sites. I would appreciate any assistance from any of you with more expertise. Thank you in advance for your help. Sharron Mirikitani There are many failures on the road to success. We stumble over pebbles, not mountains. Never give up! Link to comment Share on other sites More sharing options...
CTE_Shopping Posted June 26, 2007 Share Posted June 26, 2007 ....Now, I see the possibility of a third option. I would settle for TOP being changed to "Home" and linking back to my home page or the index.html page that my url is pointing to. The last solution presented by Ronnie C seemed to accomplish that. Since I am still farily new at writing php code, I want to make sure I am absolutely clear on what to change and the outcome.I think the code that I need to change that is found in --> edit web page: / home / public_html / osCommerce / catalog / includes / application_top.php $breadcrumb = new breadcrumb; $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); If you click on the catalog link that I provided and then click on "TOP" you will get the following message: Welcome to vDeck This is the default page for a vDeck hosting server. If you were expecting to see your website, come back tomorrow. If you still see this message then, send an email to support. ... I am always amazed to find that so many requests for assistance go unanswered on the support forum. I have seen this same question asked about the "top" link on the front page of oscommerce in another thread. Three different people asked for assistance over a period of months and no one responded to the queries. I am still trying to change the word "TOP" on the front page of my oscommerce catalog to HOME and to have it link to the home page of my dotcom website. My oscommerce catalog https://df32.dot5hosting.com/~cteshopp/osCo...talog/index.php and my website address http://www.collectibletreasuresemporium.com. I have seen a post presenting the possibility that the shoppers cart will be emptied if they click on the link that takes them out of the oscommerce shopping catalog. If anyone has any definitive answer to this, please share the information. Can this line of code $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); be changed to $breadcrumb->add(HEADER_TITLE_HOME, HTTP_SERVER);? And how do I change HOME to point to my domain url http://www.collectibletreasuresemporium.com? Sharron Mirikitani There are many failures on the road to success. We stumble over pebbles, not mountains. Never give up! Link to comment Share on other sites More sharing options...
coskel Posted July 19, 2007 Share Posted July 19, 2007 re: change top navigation link $breadcrumb->add fix excellent thread! thanks for saving me a lot of time! Link to comment Share on other sites More sharing options...
paley Posted August 13, 2007 Share Posted August 13, 2007 I am always amazed to find that so many requests for assistance go unanswered on the support forum. I have seen this same question asked about the "top" link on the front page of oscommerce in another thread. Three different people asked for assistance over a period of months and no one responded to the queries. I am still trying to change the word "TOP" on the front page of my oscommerce catalog to HOME and to have it link to the home page of my dotcom website. My oscommerce catalog https://df32.dot5hosting.com/~cteshopp/osCo...talog/index.php and my website address http://www.collectibletreasuresemporium.com. I have seen a post presenting the possibility that the shoppers cart will be emptied if they click on the link that takes them out of the oscommerce shopping catalog. If anyone has any definitive answer to this, please share the information. Can this line of code $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); be changed to $breadcrumb->add(HEADER_TITLE_HOME, HTTP_SERVER);? And how do I change HOME to point to my domain url http://www.collectibletreasuresemporium.com? Sharron Mirikitani After a little bit of looking and screwing around I created a fix for this: Go to your includes /configure.php file look for the first line: define('HTTP_SERVER', 'http://secure.yourdomain.com'); copy that code just below that line and change to this: define('HTTP_REDIRECT', 'http://secure.yourdomain.com'); Now go back to your includes/application_top.php file and scroll down to the breadcrumb section: Look for this code: $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); change to this: $breadcrumb->add(HEADER_TITLE_TOP, HTTP_REDIRECT); That should work! Link to comment Share on other sites More sharing options...
paley Posted August 13, 2007 Share Posted August 13, 2007 After a little bit of looking and screwing around I created a fix for this: Go to your includes /configure.php file look for the first line: define('HTTP_SERVER', 'http://secure.yourdomain.com'); copy that code just below that line and change to this: define('HTTP_REDIRECT', 'http://secure.yourdomain.com'); Now go back to your includes/application_top.php file and scroll down to the breadcrumb section: Look for this code: $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); change to this: $breadcrumb->add(HEADER_TITLE_TOP, HTTP_REDIRECT); That should work! I forgot to ad the url of the cart I set up you can see the change here: http://secure.fauxalacarte.com/shop/ Link to comment Share on other sites More sharing options...
gflorezv Posted September 18, 2007 Share Posted September 18, 2007 I forgot to ad the url of the cart I set up you can see the change here: http://secure.fauxalacarte.com/shop/ GREAT, IT WORKS Link to comment Share on other sites More sharing options...
bettyj Posted September 30, 2007 Share Posted September 30, 2007 And on the breadcrumb front, is there any way of changing the last breadcrumb from product model to product name? The last breadcrum as the model number seems meaningless to my customers - the prduct name wuld be more relevant. :'( I searched and searched and can't find where it may be edited! Ideas?? Link to comment Share on other sites More sharing options...
bettyj Posted September 30, 2007 Share Posted September 30, 2007 I searched and searched and can't find where it may be edited! :lol: :lol: I searched some more and found the answer: http://www.oscommerce.com/forums/index.php?sho...ange+breadcrumb Thank you all who have gone before me! :rolleyes: Link to comment Share on other sites More sharing options...
bonzabuy Posted January 13, 2008 Share Posted January 13, 2008 Gday - thanks so much for this post - many, many posts about this but not much info.... Just wondering if you would know how to change the breadcrumb from TOP> CATALOG> Category> SubCategry> Product to: HOME> CATALOG> Category> Product Also is it a similar issue I have installed Header Tags for Novices & the Title comes up with the sub category before the title tag > how do I get the title tag on it's own (or at least the category at the end)? Thankyou for your time! Adam Link to comment Share on other sites More sharing options...
affinityspearguns Posted January 19, 2008 Share Posted January 19, 2008 Your looking in the wrong place celtic. :cry: If you would like to remove the (TOP>>) link, go into application_top and around line 436 you'll see...$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); Remove that line and voila, your top link is now gone! :D You are so wonderful! That fixed my problem. Thank you for posting! Link to comment Share on other sites More sharing options...
WPDJDex Posted February 3, 2008 Share Posted February 3, 2008 Gday - thanks so much for this post - many, many posts about this but not much info.... Just wondering if you would know how to change the breadcrumb from TOP> CATALOG> Category> SubCategry> Product to: HOME> CATALOG> Category> Product Also is it a similar issue I have installed Header Tags for Novices & the Title comes up with the sub category before the title tag > how do I get the title tag on it's own (or at least the category at the end)? Thankyou for your time! Adam Someone else able to please answer this, I realy need mine to say Forum instead of Top THANK YOU!!! Link to comment Share on other sites More sharing options...
Guest Posted February 19, 2008 Share Posted February 19, 2008 Someone else able to please answer this, I realy need mine to say Forum instead of Top THANK YOU!!! In file /includes/languages/english.php Around line 56 find: define('HEADER_TITLE_CATALOG', 'Catalog'); Change Catalog to Home and you're all set. Link to comment Share on other sites More sharing options...
rbrown2 Posted April 6, 2008 Share Posted April 6, 2008 Hello all, I have read many post and you guys are all super smart. I was able to change just about everything that I needed to change, except. I have "mydomaine" piggie backed on another hosting account. So I need "Top" to point to "http://www.mydomain.com/Folder/righthere.html" and not "http://www.mydomain.com." Thanks for all your help.. RobertB Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.