bhomis Posted October 28, 2005 Share Posted October 28, 2005 Hi. At the moment, the only thing that gets displayed in the title bar of my browser is "osCommerce". How do I change it to the name of my site, or even better, to be reflective of the category or product on the current page? Thank you very much. Bruce Link to comment Share on other sites More sharing options...
GraphicsGuy Posted October 28, 2005 Share Posted October 28, 2005 From page 68 of the osCommerce 2.2 Milestone 2 Documentation Browser Text The top left of the browser window shows the name osCommerce. This can be altered to your site's name in catalog/includes/languages/english.php on approximately line 48. // page title define('TITLE', 'osCommerce'); But I think a better solution overall is to install the Header Tags Controller contribution because it will also dynamically generate all of the header tags. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1. Link to comment Share on other sites More sharing options...
bhomis Posted October 28, 2005 Author Share Posted October 28, 2005 Thanks. I downloaded that an hour ago and I'm reading the installation instructions. I'm at this point: 2 - copy the included database_setup.php file to your root directory (where your index.php file is located). Then open your browser and type in http://www.yoursite.com/database_setup.php (substitute your url of course). You should delete this file from your site once you have updated the database successfully. My index.php is in the catalog folder of my root directory. Do I install this file as: http://www.yoursite.com/database_setup.php or http://www.yoursite.com/catalog/database_setup.php Also, this is not a new install. Should I still do this step? Thank you Bruce Link to comment Share on other sites More sharing options...
GraphicsGuy Posted October 28, 2005 Share Posted October 28, 2005 You will still need to run this. But definitely do a database backup first. (Open your admin, go to Tools > Backup and do a backup, no need to download it for this.) Put it in your catalog directory and then the URL to access it would be: http://www.yoursite.com/catalog/database_setup.php Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1. Link to comment Share on other sites More sharing options...
bhomis Posted October 28, 2005 Author Share Posted October 28, 2005 You will still need to run this. But definitely do a database backup first. (Open your admin, go to Tools > Backup and do a backup, no need to download it for this.) Put it in your catalog directory and then the URL to access it would be: http://www.yoursite.com/catalog/database_setup.php Hi. Thanks so much. Now I'm at this point: However **** DO NOT **** use the files in that directory if your shop has been altered by previous contributions. Doing so will most likely break it. I have the register_globals patch installed. Will this still work? Thanks again, Bruce Link to comment Share on other sites More sharing options...
GraphicsGuy Posted October 28, 2005 Share Posted October 28, 2005 You wouldn't do well to just replace the files with the ones from the contribution. But, then that doesn't work for 9 out of 10 contribution installations since they are rarely being applied to an unmodified store. What I would recommend is using a file compare utility such as WinMerge (free download, Google it if you don't already have it) to apply the changes to your files. I don't think there should be any collisions between the two contributions within the files so it should go smoothly. When things get tricky is when two contributions deal with the same function within a file (i.e. One I've never been able to reconcile is the SPPC contrib and the Quantity Price Breaks one because they both alter the pricing display code.) But you shouldn't run into anything like that with this merge. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1. Link to comment Share on other sites More sharing options...
bhomis Posted October 28, 2005 Author Share Posted October 28, 2005 You wouldn't do well to just replace the files with the ones from the contribution. But, then that doesn't work for 9 out of 10 contribution installations since they are rarely being applied to an unmodified store. What I would recommend is using a file compare utility such as WinMerge (free download, Google it if you don't already have it) to apply the changes to your files. I don't think there should be any collisions between the two contributions within the files so it should go smoothly. When things get tricky is when two contributions deal with the same function within a file (i.e. One I've never been able to reconcile is the SPPC contrib and the Quantity Price Breaks one because they both alter the pricing display code.) But you shouldn't run into anything like that with this merge. Hi. Thanks agan. Actually, as I'm now looking, there aren't ANY identical files shared between the two patches. So I think it should work.... Thanks again, Bruce Link to comment Share on other sites More sharing options...
GraphicsGuy Posted October 28, 2005 Share Posted October 28, 2005 In that case it should go pretty smooth just replacing files (as long as there weren't any other contributions). I would still make sure you have good file and database backups before proceeding. Just to be safe. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1. Link to comment Share on other sites More sharing options...
bhomis Posted October 29, 2005 Author Share Posted October 29, 2005 Okay. It's installed and seems to be working. One question though. I need an apostrophe in my title, but it's displaying the \ as well. How do I get it to display the apostrophe, without the slash? Thanks again, Bruce Link to comment Share on other sites More sharing options...
GraphicsGuy Posted October 29, 2005 Share Posted October 29, 2005 That's odd. As an alternative you could use the html decimal code for the apostrophe. This is kind of hard to demonstrate here in the forum because it wants to interpret it and just display the apostrophe. Even declaring it as code doesn't stop it. So I am putting a space between & and #, but to use it you would not have a space between them. So in the place where you want the apostrophe you would place & #039; without the space in it. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1. Link to comment Share on other sites More sharing options...
bhomis Posted October 30, 2005 Author Share Posted October 30, 2005 Hi. Okay, I got that working. It recognizes what I included for my index, but it doesn't change when I go to a category. How do I fix this? Thanks again, Bruce Link to comment Share on other sites More sharing options...
GraphicsGuy Posted October 30, 2005 Share Posted October 30, 2005 I haven't personally experienced that problem but there is a good chance that somebody else has. I just did a few forum searches but the keywords I came up with were two general and resulted in an overwhelming number of results. What I would suggest, is going to the support thread for the Header Tags Controller contribution and start at the end of it (page 37 :o ) and search backwards. One tip for fast searching pages of posts quickly. Once the page has loaded press [CTRL] {F} on your keyboard. In the dialog box, enter a keyword that pertains to your interest, in this case you might try "category" or "categories". This way you can skip through the page rapidly looking for pertinent information. If you don't find anythng similar there, then posting the issue there will probably get a good response from people more experienced with trouble shooting that contribution. For me it worked first time out of the gate, but that was a lot of versions ago. hth Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.