felixe Posted January 15, 2006 Posted January 15, 2006 My site (collector's place) doesn't display the apostrophe correctly. I've tried escaping the character like this: Collector\'s Place but no joy. Any help would be appreciated. -Felixe
tina_boots Posted January 15, 2006 Posted January 15, 2006 My site (collector's place) doesn't display the apostrophe correctly. I've tried escaping the character like this: Collector\'s Place but no joy. Any help would be appreciated. -Felixe Post an example or link of what your problem looks like. That it may a little clearer of the issue you are experiencing. Be well, Tina If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes.
felixe Posted January 15, 2006 Author Posted January 15, 2006 Post an example or link of what your problem looks like. That it may a little clearer of the issue you are experiencing. Be well, Tina Here's an example: Link You'll see the page title displayed as "Collector0\\\" Thanks, Felixe
♥Vger Posted January 15, 2006 Posted January 15, 2006 The problem is that osCommerce uses PHP and in PHP an apostrophy used in text denotes the end of a PHP command - that's why it is 'escaped' with a preceeding backslash. Once the backslash is in place the apostrophy should be shown just as an apostrophy without causing PHP to think it's something else. So I don't know why you are having this problem - it shouldn't be happening. Vger
felixe Posted January 15, 2006 Author Posted January 15, 2006 The problem is that osCommerce uses PHP and in PHP an apostrophy used in text denotes the end of a PHP command - that's why it is 'escaped' with a preceeding backslash. Once the backslash is in place the apostrophy should be shown just as an apostrophy without causing PHP to think it's something else. So I don't know why you are having this problem - it shouldn't be happening. Vger Then I guess my last resource would be to hard code it on the index.php page. Here's an image of my admin page: Hope somebody spots the error before I mess with the files. Felixe
tina_boots Posted January 15, 2006 Posted January 15, 2006 Then I guess my last resource would be to hard code it on the index.php page. Here's an image of my admin page: Hope somebody spots the error before I mess with the files. Felixe Ok I just tried this in my development store which is set up as a clean install, before I responded to be sure. When you make that setting in your store configuration it's stored in the database and therefore different than when you might be coding it in PHP. You should not have to add a backslash in the name when you define it inside configuration. So try changing that to Collector's in you admin->configuration. Be well, Tina If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes.
felixe Posted January 15, 2006 Author Posted January 15, 2006 Ok I just tried this in my development store which is set up as a clean install, before I responded to be sure. When you make that setting in your store configuration it's stored in the database and therefore different than when you might be coding it in PHP. You should not have to add a backslash in the name when you define it inside configuration. So try changing that to Collector's in you admin->configuration. Be well, Tina I did a clean install and it worked. I was using a script installation tool (Fantastico) but I decided to do it manually and now everything is fine. Thank you, Felixe.
tina_boots Posted January 15, 2006 Posted January 15, 2006 I did a clean install and it worked. I was using a script installation tool (Fantastico) but I decided to do it manually and now everything is fine. Thank you, Felixe. Happy you got it working. Interesting enough the clean install I referred to was one installed from Fantastico, I have several different enviroments of osC installed on my server for various purposes but I needed one that was clean so I took the easy way out on that one :) Anyway appears something got out of whack somehow on your previous install, the good news is you have it working now. Be well, Tina If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.