[ Video Sharing CMS v4 ] URL seo for Arabic / Other languages

Started by alireza,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alirezaTopic starter

You have some Arabic language, or what's the issue so I know how to help...
http://www.parstube.ir/video/5/-/

You have
http://www.parstube.ir/video/5/کولا/
  •  

alirezaTopic starter

  •  

alirezaTopic starter

  •  

mihai

If you wanna change the language of the website you must edit yourselff the words use a dictionary en=arabic and go to moderator you have an option to create new language use it!!!(TRANSLATE THIS!!!!!!!!)
  •  

alirezaTopic starter

What?
Are you OK؟

url seo phpvibe   not show  language arabic

title:کولا
show
http://www.parstube.ir/video/5/-/

I have show
http://www.parstube.ir/video/5/کولا/


  •  

marketania

Salom Alireza,

Follow those steps here http://www.phpvibe.com/forum/how-to/url-name/

and it should work for u

  •  

alirezaTopic starter

  •  

alirezaTopic starter

  •  


PHPVibe A.


alirezaTopic starter

Tested,no  works

There is no other way?
  •  

alirezaTopic starter

  •  

alirezaTopic starter

  •  

PHPVibe A.

Alireza there is no support in weekends. Stop bumping threads for nothing and read the support rules.

I'm not sure how you did the change, but it works ok for me applying the function change and testing with that keyword.


Quote from: Alexander on
Try this, open lib/functions.php

find

// seo rewrite function
function nice_url($url) {
$string ='';
//$url = check_invalid_utf8($url);
// translate other languages
$url = url_translate($url);
// remove all chars
$url = preg_replace("/[^a-z0-9]+/","-",strtolower($url));
//remove doubled -
$url = str_replace(array('-----','----','---','--'),'-', $url);
return urlencode(strtolower($url));
}


and replace with

// seo rewrite function
function nice_url($iniurl) {
$string ='';
//$url = check_invalid_utf8($url);
// translate other languages
$url = url_translate($iniurl);
// remove all chars
$url = preg_replace("/[^a-z0-9]+/","-",strtolower($url));
if(nullval($url) || ($url == "-") || ($url == "--")) {
//Foreign
$url = str_replace(' ','-', $iniurl);
}
//remove doubled -
$url = str_replace(array('-----','----','---','--',' '),'-', $url);
return urlencode(strtolower($url));
}


alirezaTopic starter

  •  

PHPVibe A.

Oh, sorry, I've tested it on 3.6, not 4.0

Not sure, have to check, may be that the new router doesn't accept at all those type of characters, or there is just one character that breaks it.

PHPVibe A.

#16
I see if I type

http://www.videoinedit.com/%D9%85%D9%88%D8%AA%D9%88%D8%B1-%D8%AC%D8%AF%DB%8C%D8%AF/8990/

it turns to

http://www.videoinedit.com/8990/%D9%85%D9%88%D8%AA%D9%88%D8%B1-%D8%AC%D8%AF%DB%8C%D8%AF/


Moving the id from second to first....which is really weird.

I suggest removing the :name/ from the url under Settings -> Permalinks. It will be much better for your seo experience than to have unreadable urls.

marketania

this is really required feature as having a non-latin characters is very possible in foreign websites.
  •  

PHPVibe A.

Quote from: marketania on
this is really required feature as having a non-latin characters is very possible in foreign websites.

I'm not sure yet where is the issue.
All I can advice is temporarily removing the :name from Settings -> SEF to make it work.

PHPVibe A.

I've managed to make this work on the new PHPVibe, patch 13 coming today will fix this issues fully.

akavis

i hope the patch 13 will fix the hebrew language too.
  •  

PHPVibe A.

Quote from: akavis on
i hope the patch 13 will fix the hebrew language too.

It should fix all with special characters, but please provide some terms to test if it doesn't.

akavis

if the arabic language is good, The hebrew need to be fine too, the patch 13 is in the air? for download.
  •  

PHPVibe A.


conghandang

Hey Alexader

My Url Seo Is: /video/26080/li-amp-ecirc-n-kh-amp-uacute-c-nhac-tre-hay-nhat-th-amp-aacute-ng-5-2015-nonstop-viet-mix-h-i-t-djung-bat-anh-manh-me/

I am using Phpvibe 4.20....and vietnamese is mistake..

Can you fix it...

Thanks you
  •  

PHPVibe A.

I don't know vietnamese.

But in lib/functions.php there is a translation table that includes:

/* Vietnamese */
'Á' => 'A', 'À' => 'A', 'Ả' => 'A', 'Ã' => 'A', 'Ạ' => 'A', 'Ă' => 'A', 'Ắ' => 'A', 'Ằ' => 'A', 'Ẳ' => 'A', 'Ẵ' => 'A', 'Ặ' => 'A', 'Â' => 'A', 'Ấ' => 'A', 'Ầ' => 'A', 'Ẩ' => 'A', 'Ẫ' => 'A', 'Ậ' => 'A',
'á' => 'a', 'à' => 'a', 'ả' => 'a', 'ã' => 'a', 'ạ' => 'a', 'ă' => 'a', 'ắ' => 'a', 'ằ' => 'a', 'ẳ' => 'a', 'ẵ' => 'a', 'ặ' => 'a', 'â' => 'a', 'ấ' => 'a', 'ầ' => 'a', 'ẩ' => 'a', 'ẫ' => 'a', 'ậ' => 'a',
'É' => 'E', 'È' => 'E', 'Ẻ' => 'E', 'Ẽ' => 'E', 'Ẹ' => 'E', 'Ê' => 'E', 'Ế' => 'E', 'Ề' => 'E', 'Ể' => 'E', 'Ễ' => 'E', 'Ệ' => 'E',
'é' => 'e', 'è' => 'e', 'ẻ' => 'e', 'ẽ' => 'e', 'ẹ' => 'e', 'ê' => 'e', 'ế' => 'e', 'ề' => 'e', 'ể' => 'e', 'ễ' => 'e', 'ệ' => 'e',
'Í' => 'I', 'Ì' => 'I', 'Ỉ' => 'I', 'Ĩ' => 'I', 'Ị' => 'I', 'í' => 'i', 'ì' => 'i', 'ỉ' => 'i', 'ĩ' => 'i', 'ị' => 'i',
'Ó' => 'O', 'Ò' => 'O', 'Ỏ' => 'O', 'Õ' => 'O', 'Ọ' => 'O', 'Ô' => 'O', 'Ố' => 'O', 'Ồ' => 'O', 'Ổ' => 'O', 'Ỗ' => 'O', 'Ộ' => 'O', 'Ơ' => 'O', 'Ớ' => 'O', 'Ờ' => 'O', 'Ở' => 'O', 'Ỡ' => 'O', 'Ợ' => 'O',
'ó' => 'o', 'ò' => 'o', 'ỏ' => 'o', 'õ' => 'o', 'ọ' => 'o', 'ô' => 'o', 'ố' => 'o', 'ồ' => 'o', 'ổ' => 'o', 'ỗ' => 'o', 'ộ' => 'o', 'ơ' => 'o', 'ớ' => 'o', 'ờ' => 'o', 'ở' => 'o', 'ỡ' => 'o', 'ợ' => 'o',
'Ú' => 'U', 'Ù' => 'U', 'Ủ' => 'U', 'Ũ' => 'U', 'Ụ' => 'U', 'Ư' => 'U', 'Ứ' => 'U', 'Ừ' => 'U', 'Ử' => 'U', 'Ữ' => 'U', 'Ự' => 'U',
'ú' => 'u', 'ù' => 'u', 'ủ' => 'u', 'ũ' => 'u', 'ụ' => 'u', 'ư' => 'u', 'ứ' => 'u', 'ừ' => 'u', 'ử' => 'u', 'ữ' => 'u', 'ự' => 'u',
'Ý' => 'Y', 'Ỳ' => 'Y', 'Ỷ' => 'Y', 'Ỹ' => 'Y', 'Ỵ' => 'Y', 'ý' => 'y', 'ỳ' => 'y', 'ỷ' => 'y', 'ỹ' => 'y', 'ỵ' => 'y',
'Đ' => 'D', 'đ' => 'd',


If you tell me what's wrong, I can correct it (we took it from the web).

conghandang

Hiii....Alexander...

My old link vietnames is Ok....But New Embed Link Vietnames Is error URL SEO..!

I don't Understand...! Can You Hepl Me Fix It..!
  •  

PHPVibe A.


Similar topics (7)