

mingwatrading
Members-
Content count
8 -
Joined
-
Last visited
Profile Information
-
Real Name
MingWaTrading
-
mingwatrading started following Kirod
-
Kirod started following mingwatrading
-
multimixer reacted to a post in a topic: How to modify USU5 PRO to accept Chinese characters in the URI
-
mingwatrading started following owan
-
owan started following mingwatrading
-
How to modify USU5 PRO to accept Chinese characters in the URI
mingwatrading posted a topic in General Add-Ons Support
This post only describes how to modify USU5 PRO to accept Chinese characters in the URI. If you have any other problems when using USU5 or USU5 PRO, please go to following topic. ultimate-seo-urls-5-by-fwr-media File - /catalog/includes/modules/ultimate_seo_urls5/main/validator.php Find: Usu_Main::i()->setVar( 'request_compare_in', remove_session_id( htmlspecialchars_decode( Usu_Main::i()->getVar( 'original_request_uri' ) ) ) ); Replace: Usu_Main::i()->setVar( 'request_compare_in', remove_session_id( htmlspecialchars_decode( urldecode( Usu_Main::i()->getVar( 'original_request_uri' ) ) ) ) ); Root Cause: In Usu_Validator::validate() function, it will compare the 'incoming seo uri' and 'new seo uri', it will fail to go to desired page if thry are different. However, the encoded 'incoming seo uri' always different to decoded 'new seo uri' when URLs has Chinese. To solve this problem, you could simply add urldecode function when setting 'incoming seo uri'. Credits: Robert Fisher - FWR Media Thanks to Rob for kindly help -
ULTIMATE Seo Urls 5 - by FWR Media
mingwatrading replied to FWR Media's topic in General Add-Ons Support
Thanks again, PM sent. -
ULTIMATE Seo Urls 5 - by FWR Media
mingwatrading replied to FWR Media's topic in General Add-Ons Support
Don't worry, It is just a demo site for testing purpose. All content is demo data, no real data. This testing site was new setup few minutes before I posted the link. It suppose no cache data. I had tried to disable the cache in 'Seo Urls 5 PRO' or clear the cache data, problem still happens. However, this problem does not happen in previous version 'Seo Urls 5' which I am using right now. -
ULTIMATE Seo Urls 5 - by FWR Media
mingwatrading replied to FWR Media's topic in General Add-Ons Support
uri format: standard, path_standard Testing Site: My Test Admin ID : AdminID Admin Pwd: my_password Testing Sample: [English] Testing Cat > Testing Product 001 [Chinese] 測試目錄 > 測試產品001 Thank you for your big help -
ULTIMATE Seo Urls 5 - by FWR Media
mingwatrading replied to FWR Media's topic in General Add-Ons Support
It is kindly reminder to review all code which is using these pattern 'defined(...) && ...'. By the way, it is great contribution I never seen before. The Chinese URLs show properly but fail to redirect to desired page, I would like to ask the mapping of SEO URLs and real URLs or could you please tell me which script get the SEO URLs(Chinese URLs) and redirect to real URLs? Thank you so much -
ULTIMATE Seo Urls 5 - by FWR Media
mingwatrading replied to FWR Media's topic in General Add-Ons Support
I did not use conversion file but simply set 'Output W3C valid URLs?' to false when using 'ULTIMATE Seo Urls 5'(not PRO), then the Chinese URL was shown and the Chinese hyperlink work fine. I traced the code and found out that 'Output W3C valid URLs?' could not work properly in 'ULTIMATE Seo Urls 5 PRO'. It always 'return htmlspecialchars(utf8_encode($link))' even 'Output W3C valid URLs?' set to false in 'ULTIMATE Seo Urls 5 PRO'. I removed the uft8_encode for testing purpose. The Chinese URL had shown properly, however, the Chinese hyperlink could not redirect to desired page. I am still tracing the redirect code. -
ULTIMATE Seo Urls 5 - by FWR Media
mingwatrading replied to FWR Media's topic in General Add-Ons Support
Thank you very much with this great contribution. I used ULTIMATE Seo Urls 5 before and recently upgraded to PRO but I had problem when using ULTIMATE Seo Urls 5 PRO. There is Mojibake in URL when the category or product is Chinese. The Chinese URL could be shown properly when ULTIMATE Seo Urls 5. Could you please help? OSC version: osCommerce Online Merchant v2.2 RC2a PHP version: 5 MySQL version: 5 Server: Apache Screen Cap http://picasaweb.google.com/mingwatrading/YOErsI?feat=directlink -
ULTIMATE Seo Urls 5 - by FWR Media
mingwatrading replied to FWR Media's topic in General Add-Ons Support
Thank you very much with this great contribution. I used ULTIMATE Seo Urls 5 before and recently upgraded to PRO but I had problem when using ULTIMATE Seo Urls 5 PRO. There is Mojibake in URL when the category or product is Chinese. The Chinese URL could be shown properly when ULTIMATE Seo Urls 5. It is fine when using English. Could you please help? OSC version: osCommerce Online Merchant v2.2 RC2a PHP version: 5 MySQL version: 5