goring_gap Posted January 6, 2011 Share Posted January 6, 2011 character accent issues The language files don't work for me. It brings in the array but there must be a charset issue because the actual characters in french.php are not displayed correctly if I print_r() the array in page_modules.php i.e. // Action character conversions if ( is_array( Usu_Main::i()->getVar( 'character_conversion' ) ) ) { $string = strtr( $string, Usu_Main::i()->getVar( 'character_conversion' ) ); print_r(Usu_Main::i()->getVar( 'character_conversion' )); } If I bring the array in to the linkTextParts() function it works fine. In page_modules.php find: protected function linkTextParts( $string ) { // Action character conversions if ( is_array( Usu_Main::i()->getVar( 'character_conversion' ) ) ) { $string = strtr( $string, Usu_Main::i()->getVar( 'character_conversion' ) ); } replace with: protected function linkTextParts( $string ) { $char_convert = array('à' => 'a', 'â' => 'a', 'æ' => 'ae', 'ç' => 'c', 'é' => 'e', 'è' => 'e', 'ê' => 'e', 'ë' => 'e', 'î' => 'i', 'ï' => 'i', 'œ' => 'oe', 'ô' => 'o', 'ö' => 'o', 'ù' => 'u', 'û' => 'u', 'À' => 'A', 'Â' => 'A', 'Æ' => 'AE', 'Ç' => 'C', 'È' => 'E', 'É' => 'E', 'Ê' => 'E', 'Ë' => 'E', 'Î' => 'I', 'Ï' => 'I', 'Œ' => 'OE', 'Ô' => 'O', 'Ù' => 'U', 'Û' => 'U', 'ü' => 'u', 'ÿ' =>'y', '€' => 'Euros','ä' => 'ae', 'å' => 'a', 'æ' => 'ae', 'ð' => 'd', 'ë' => 'e', 'ö' => 'oe', 'ø' => '', 'ß' => 'ss', 'þ' => 'p', 'ü' => 'ue', 'ÿ' => 'y', 'Ä' => 'AE', 'Å' => 'A', 'Æ' => 'AE', 'Ð' => 'D', 'Ë' => 'E', 'Ö' => 'OE', 'Ø' => '', 'Þ' => '', 'Ü' => 'UE'); // Action character conversions if ( is_array( Usu_Main::i()->getVar( 'character_conversion' ) ) ) { //$string = strtr( $string, Usu_Main::i()->getVar( 'character_conversion' ) ); $string = strtr( $string, $char_convert); } Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted January 6, 2011 Author Share Posted January 6, 2011 (edited) character accent issues The language files don't work for me. You just have to be sure you save the language file as the correct charset. The French file is UTF-8 as some French characters are not available in ISO-8859-1 Alternatively create a new french.php file and save it the same as you are doing for the language defines. Edited January 6, 2011 by FWR Media Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
♥FWR Media Posted January 12, 2011 Author Share Posted January 12, 2011 (edited) Hi Robert, I have an idea for seo images. I'm trying to convert the module template as my module requirements. But I can't understand , what I do wrongly. Just a small suggestion: Maybe you can add some options to create sitemaps for reviews, articles, pages, links, specials, manufacturers, images (good idea for products, who has multiple images, and google images) . Thanks a lot. USU5 and PRO are contributions that rewrite the uri for pages .. it does not rewrite the url to an image. Re: sitemaps .. the sitemap addition really was an "afterthought" addon the focus of the contribution is on flexible uris and multi language urls. I do however recognise that multi language shops need multi language sitemaps which I have taken on board. Edited January 12, 2011 by FWR Media Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Stephan (VS) Posted January 13, 2011 Share Posted January 13, 2011 I to fix this error: [b]Warning[/b]: aPage_Modules::stripPathToLastNumber: Incorrect path value of presented in [b]/home/google/public_html/google/includes/modules/ultimate_seo_urls5/abstracts/page_modules.php[/b] on line [b]313[/b] [color="#000000"][b]1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND cd.language_id = 1' at line 1 SELECT cd2.categories_name AS pName, cd.categories_name AS cName FROM categories c LEFT JOIN categories_description cd2 ON c.parent_id = cd2.categories_id AND c.parent_id = cd2.categories_id AND cd2.language_id = 1, categories_description cd WHERE c.categories_id = cd.categories_id AND c.categories_id = AND cd.language_id = 1[/b][/color] Don't delete all your categories :lol: Quote "I have no special talent. I am only passionately curious" - Albert Einstein Link to comment Share on other sites More sharing options...
egutierrez Posted January 14, 2011 Share Posted January 14, 2011 Hi Robert, I upgraded from USU 5 to USU 5 PRO in a testing site and I'm experimented the next issue: USU 5 PRO is producing the next kind of uris for the popup images http://my-site.com/popup_image.php?pID=2070ℑ=0 While USU 5 produced the next one: http://my-site.com/my-product-name-pi-2070.html?image=0 I prefer the second one so I think it's more friendly with SEO, why USU 5 PRO don't produce popup uris in the same way like USU 5? Regards, Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted January 14, 2011 Author Share Posted January 14, 2011 (edited) I prefer the second one so I think it's more friendly with SEO, why USU 5 PRO don't produce popup uris in the same way like USU 5? Because pop up images were a backwards compatibility with the old seo urls, they are absolutely pointless so have been removed. There is no SEO benefit to it whatsoever as the links don't point to a page that requires indexing, also it adds unnecessarily to the size of the cache maintained. Edited January 14, 2011 by FWR Media Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
♥FWR Media Posted January 14, 2011 Author Share Posted January 14, 2011 By the way, this was the development thread but since the release it is supported in the Ultimate Seo Urls 5 support thread Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
zediks Posted January 15, 2011 Share Posted January 15, 2011 (edited) not the same issue, but with the same contrib. I'm look for a way to define letters with accents. My webshop www.thevine.be is selling wines. But for example if a name is: Château Phélan Ségur the SEO URL will be chteau-phlan-sgur witch isn't a good SEO :) any ideas? nevermind: I just saw there is a possibility in the admin panel Enter special character conversions :) Edited January 15, 2011 by zediks Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted January 15, 2011 Author Share Posted January 15, 2011 not the same issue, but with the same contrib. I'm look for a way to define letters with accents. My webshop www.thevine.be is selling wines. But for example if a name is: Château Phélan Ségur the SEO URL will be chteau-phlan-sgur witch isn't a good SEO :) any ideas? nevermind: I just saw there is a possibility in the admin panel Enter special character conversions :) URI should only made up of a very limited number of characters including the latin alphabet and a few other characters. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
spoofy Posted January 21, 2011 Share Posted January 21, 2011 Hey Robert, I am posting here regarding the rewrite htm module. I haven't had a lot of time to work on this but here is my initial reaction. Please feel free to provide some feedback. Priority: Category Structure Products Info Structure Category Examples: Category: Hardware Category: Music -SubCategory: Dance -SubCategory: Techno Category url structure would be: domain.com/Hardware domain.com/Music domain.com/Music_Dance domain.com/Music_Techno Product Examples: Hardware Dell XPS 5000 Microsoft Mouse Dance Dance Now Product url structure would be: domain.com/Hardware.htm domain.com/Dell-XPS-5000.htm domain.com/Microsoft-Mouse.htm domain.com/Dance-Dance-Now.htm Solution Reasoning: Notice that I have 2 identical names. One is a category and the other is a product. But by getting rid of .htm in category url we can determine if the user is trying to access a category or product. Pseudo code: if (in url exists ".htm") { it's a product } elseif (in url !exists ".html) { it's a category } else {} What are you thoughts on this so far? Quote My Contributions: Google XML Sitemap SEO compatible with Ultimate SEO URL by FWR Media ::: Accurate & Precise Bread Crumb Trail Link to comment Share on other sites More sharing options...
♥FWR Media Posted January 21, 2011 Author Share Posted January 21, 2011 (edited) Solution Reasoning: Notice that I have 2 identical names. One is a category and the other is a product. But by getting rid of .htm in category url we can determine if the user is trying to access a category or product. Pseudo code: if (in url exists ".htm") { it's a product } elseif (in url !exists ".html) { it's a category } else {} What are you thoughts on this so far? Nope, this is why the htm module is currently "shelved" as I don't have the time. If you are going to use just strings as the URI without the seo marker ( e.g. -p-32 ) the there MUST be a one to one relationship between the string and the file to load, the _GET key to populate and the _GET value to give the key. Edited January 21, 2011 by FWR Media Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
spoofy Posted January 21, 2011 Share Posted January 21, 2011 Nope, this is why the htm module is currently "shelved" as I don't have the time. Ya. Sorry I should've clarified that I am requesting you to do any work. I just wanted to show you what I have so far and get your thoughts on it. My coding skills are nowhere close to yours but perhaps I can put together something decent and workable, so you can review it. If you are going to use just strings as the URI without the seo marker ( e.g. -p-32 ) the there MUST be a one to one relationship between the string and the file to load, the _GET key to populate and the _GET value to give the key. I will give this some thought and get back to you. Thanks for your input so far! Quote My Contributions: Google XML Sitemap SEO compatible with Ultimate SEO URL by FWR Media ::: Accurate & Precise Bread Crumb Trail Link to comment Share on other sites More sharing options...
Guest Posted January 21, 2011 Share Posted January 21, 2011 We just clicked "Remove all non-alphanumeric characters" from true to false but we still cannot see the number in the url. Example: we want custom-cooking-inch-wok-style-p-1792.html to show up as custom-cooking-66-inch-wok-style-p-1792.html But they are still the same and not showing the number in the url What are we doing wrong ? thank you Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted January 21, 2011 Author Share Posted January 21, 2011 (edited) We just clicked "Remove all non-alphanumeric characters" from true to false but we still cannot see the number in the url. Example: we want custom-cooking-inch-wok-style-p-1792.html to show up as custom-cooking-66-inch-wok-style-p-1792.html But they are still the same and not showing the number in the url What are we doing wrong ? thank you You have changed the wrong setting 66 is in fact alphanumeric ( well numeric ). Try setting Filter Short Words to 1. Don't forget to reset the cache. Edited January 21, 2011 by FWR Media Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Guest Posted January 21, 2011 Share Posted January 21, 2011 Worked great , did just like you said plus put back alphanumeric to true. Noticed for example when product name is 22" instead of 22 inches it removes the " from it and display 22. I am sure that is correct because " is not allowed in a url. I am right about that? Thanks so much for the quick fix reply Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted January 21, 2011 Author Share Posted January 21, 2011 Worked great , did just like you said plus put back alphanumeric to true. Noticed for example when product name is 22" instead of 22 inches it removes the " from it and display 22. I am sure that is correct because " is not allowed in a url. I am right about that? Thanks so much for the quick fix reply Yes URIs should only contain the latin alphabetic plus a few special characters. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Chadka Posted January 30, 2011 Share Posted January 30, 2011 I'm not sure how to change the paths for RewriteBase in my .htaccess file. I have activated "rewrite" as uri format in Admin backend, but get this error message: 404 Not Found The requested URL /product_info.php was not found on this server. Let's say the shop is located in the folder /shop1. How do I need to change the paths? Any help is appreciated! # RewriteBase instructions # Change RewriteBase dependent on how your shop is accessed as below. # http://www.mysite.com = RewriteBase / # http://www.mysite.com/catalog/ = RewriteBase /catalog/ # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/ Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted January 30, 2011 Share Posted January 30, 2011 I'm not sure how to change the paths for RewriteBase in my .htaccess file. I have activated "rewrite" as uri format in Admin backend, but get this error message: 404 Not Found The requested URL /product_info.php was not found on this server. Let's say the shop is located in the folder /shop1. How do I need to change the paths? Any help is appreciated! # RewriteBase instructions # Change RewriteBase dependent on how your shop is accessed as below. # http://www.mysite.com = RewriteBase / # http://www.mysite.com/catalog/ = RewriteBase /catalog/ # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/ If its in /shop1/ then the rewritebase becomes RewriteBase /shop1/ Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
♥FWR Media Posted January 30, 2011 Author Share Posted January 30, 2011 If its in /shop1/ then the rewritebase becomes RewriteBase /shop1/ Knowing that this used to be a frequent question with the old seo urls by Chemo I attempted to make this as clear as possible in both the instructions and in the code to be added to .htaccess itself. I just can't think of any way to make it clearer than I already have. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Chadka Posted January 30, 2011 Share Posted January 30, 2011 Knowing that this used to be a frequent question with the old seo urls by Chemo I attempted to make this as clear as possible in both the instructions and in the code to be added to .htaccess itself. I just can't think of any way to make it clearer than I already have. I don't have the /catalog folder in my store folder. All files are in the root store folder. So would it look like this? Is 1 line enough or do I need the 3 of them? Please correct me. # RewriteBase instructions # Change RewriteBase dependent on how your shop is accessed as below. # http://www.mysite.com = RewriteBase /shop1/ # http://www.mysite.com/catalog/ = RewriteBase /shop1/ # http://www.mysite.com/catalog/shop/ = RewriteBase /shop1/ Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted January 30, 2011 Author Share Posted January 30, 2011 I don't have the /catalog folder in my store folder. All files are in the root store folder. So would it look like this? Is 1 line enough or do I need the 3 of them? Please correct me. # RewriteBase instructions # Change RewriteBase dependent on how your shop is accessed as below. # http://www.mysite.com = RewriteBase /shop1/ # http://www.mysite.com/catalog/ = RewriteBase /shop1/ # http://www.mysite.com/catalog/shop/ = RewriteBase /shop1/ The blue bits are just examples: - # RewriteBase instructions # Change RewriteBase dependent on how your shop is accessed as below. # http://www.mysite.com = RewriteBase / # http://www.mysite.com/catalog/ = RewriteBase /catalog/ # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/ The red bit is the bit you change: - # Change RewriteBase using the instructions above RewriteBase / So yours would look like: - # Change RewriteBase using the instructions above RewriteBase /shop1/ Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Chadka Posted January 30, 2011 Share Posted January 30, 2011 The blue bits are just examples: - # RewriteBase instructions # Change RewriteBase dependent on how your shop is accessed as below. # http://www.mysite.com = RewriteBase / # http://www.mysite.com/catalog/ = RewriteBase /catalog/ # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/ The red bit is the bit you change: - # Change RewriteBase using the instructions above RewriteBase / So yours would look like: - # Change RewriteBase using the instructions above RewriteBase /shop1/ Thank you Robert, that works! When I click on a product in my store the www after http:// is disappearing. Can I change that somehow, so the www will not disappear when I click on a product? Also I just saw that when trying to access the /admin folder from http://www.myaddress it redirects me to the old /admin/login.php page. When I access the /admin through http://myaddress it's working fine. Any thoughts on this? Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted January 30, 2011 Author Share Posted January 30, 2011 Thank you Robert, that works! When I click on a product in my store the www after http:// is disappearing. Can I change that somehow, so the www will not disappear when I click on a product? Also I just saw that when trying to access the /admin folder from http://www.myaddress it redirects me to the old /admin/login.php page. When I access the /admin through http://myaddress it's working fine. Any thoughts on this? Your configuration files are incorrect, this is nothing at all to do with USU5. please take this question to the general forums. BTW this was the development topic for USU5 PRO the support topic should you need it is here. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
gaaalmp Posted February 4, 2011 Share Posted February 4, 2011 Hi, I added PRO_r197. replacing v22d_4. I saw one of your posts somewhere (cant find it now wish i could) basically talking about the gotcha with the URL and google seeing an issue with this in webmastrer tools. i.e my-product-p-100.html can be manipulated to mybull-p-100.html or worse -p-100.html and it would still get to the product page. Well i saw this issue in webmaster tools and also some other with the category rewrites. I believe it went on saying that version 5 resolves this issue. Could i get clarification on my results. At the moment the following happens. i.e my-product-p-100.html is fine -p-100.html returns a 404 my-insertbullhere-p-100.html redirect to the product page @ my-product-p-100.html Not sure if this is completely right or not. Also just clarifying that category rewrites have or have not been affected by this contrib? as I am getting duplicate content i.e my-category-c-41_44.html & my-category-c-_44.html thanks in advance. Quote Link to comment Share on other sites More sharing options...
ErikMM Posted February 4, 2011 Share Posted February 4, 2011 (edited) On the Ultimate Seo Urls 5 PRO Installation to OsCommerce version 2.3 page there is a line @ "1) Uploads directory" that reads: Important: now ensure that the following two directories are writable. Dependent on your server this may be 0755 or 0777. * catalog/includes/ultimate_seo_urls5/cache_system/cache/ * catalog/includes/ultimate_seo_urls5/cache_system/sqlite/ Confusing, as these were actually installed in catalog/includes/modules. (specifically: catalog/includes/modules/ultimate_seo_urls5/cache_system) I am guessing this is a typo...or do I move these out of "modules" and up to "includes"? Thank you for this ad-on btw! Edited February 4, 2011 by ErikMM Quote a-how-to-road-map 2.3.x road-map-for-the-newbies design basics how to make a horrible osC site ssl-how to updated-security-thread Web Developer, Firebug, and Notepad++ are powerful free tools for web design. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.