https://www.icyphoenix.com/viewtopic.php?f=35&t=8862
-----------------------------------
uMiTs
Sat 22 Dec, 2012 09:58

Hello, Seo Link Turkish Character Help Please
-----------------------------------
Seo link turkish 

thread title : ü ş ı İ Ö ö Ç ç I 

www.xxxx.com/uml-g-cedil-c-i-vp8.html#p8


I want to link : www.xxxx.com/u_s_i_i_o_o_c_c_i-vp8.html#p8

Help Please 

Thanks


-----------------------------------
mort
Sat 22 Dec, 2012 10:43

Re: Hello, Seo Link Turkish Character Help Please
-----------------------------------
Your links are SPAM links  :censored:


-----------------------------------
uMiTs
Sat 22 Dec, 2012 21:20

Re: Hello, Seo Link Turkish Character Help Please
-----------------------------------
[quote user="mort" post="57848"]Your links are SPAM links  :censored: SPAMMER![/quote]

NO Spam  :evil: 

I want to come out the links properly .

Thread Title: ü ş ı İ Ö ö Ç ç I 
the link : www.xxxx.com/uml-g-cedil-c-i-vp8.html#p8


[b]want to come out link [/b]: www.xxxx.com/u-s-i-i-o-o-c-c-i-vp8.html#p8


-----------------------------------
Joshua203
Sun 23 Dec, 2012 01:07

Re: Hello, Seo Link Turkish Character Help Please
-----------------------------------
I see no reason at all to assume this has anything to do with spam Mort, uMiTs even seems to be not new to Icy, I think he  just posted some example links.

However I don't understand the question, could you explain in a different way please uMiTs??

Greetings,
...Joshua203(@home)


-----------------------------------
mort
Sun 23 Dec, 2012 01:37

Re: Hello, Seo Link Turkish Character Help Please
-----------------------------------
[quote user="Joshua203" post="57851"]I see no reason at all to assume this has anything to do with spam Mort.
[/quote]

Then it would have been better if he had posted a link to their own site and not something that takes one to a freelancer site when it's tested.  :P 

And the only sense that I can make out of the question is that he wants to optimise the title for SEO and strip/convert the characters in it. ?

But of course, one doesn't know what version of Icy he is using, could be 1.3 / *.17 or anything else for that matter. :(

[quote]...Joshua203(@home) [/quote]

[b]Terrific![/b] Just in time for Christmas.  :xmas_02:


-----------------------------------
uMiTs
Sun 23 Dec, 2012 09:32

Re: Hello, Seo Link Turkish Character Help Please
-----------------------------------
I use      icyphoenix 2.0 

i'm forum : 
 http://www.frmevi.com/phpbb/tet-forum-1-vf3.html

sample thread :
 	
ü ş ı İ Ö ö Ç ç I

seo link :
 http://www.frmevi.com/phpbb/uml-g-cedil-c-i-vt8.html


-----------------------------------
mort
Sun 23 Dec, 2012 11:21

Re: Hello, Seo Link Turkish Character Help Please
-----------------------------------
I still can't understand exactly what you are suggesting?

And I'm not even sure if you have picked the right forum software to use - For one - It doesn't have right to left if you want to use Arabic.

http://www.icyphoenix.com/viewtopic.php?p=52032#p52032

My friend - no offence, but until someone creates a Turkish language file for Icy Phoenix, or you have a very good grasp of the English or one of the other languages, you are wasting your time here looking for someone to help.

I suspect that you want to switch to SEO, and you can do that in the ACP - But what is the point if there is no language file for your native tongue?

[b]Google Translation:[/b]

Arkadaşım - Birisi Icy Phoenix için Türkçe dil dosyası oluşturur, ya da çok iyi İngilizce kavramak ya da diğer dillerden birine sahip kadar gücenme ama, size yardım edecek birisini arıyorsanız burada zaman harcıyorsun.

Sana SEO geçmek istediğiniz şüpheleniyorsanız ve ACP de bunu yapabilir - Ama sizin anadiliniz için hiçbir dil dosyası varsa ne anlamı var?


-----------------------------------
Mighty Gorgon
Sat 29 Dec, 2012 11:51

Re: Hello, Seo Link Turkish Character Help Please
-----------------------------------
He wants the links to be converted by taking into accounts some specific Turkish letters.

[b]uMiTs[/b], you can try to alter this function in functions.php:

[codeblock]/**
* Cyrillic to Latin chars conversion
*/
function utf_cyr_to_latin($string, $reverse = false)
{
	$cyr  = array(
		'а', 'б', 'в', 'г', 'д',
		'e', 'ж', 'з', 'и', 'й',
		'к', 'л', 'м', 'н', 'о',
		'п', 'р', 'с', 'т', 'у',
		'ф', 'х', 'ц', 'ч', 'ш',
		'щ', 'ъ', 'ь', 'ю', 'я',
		'А', 'Б', 'В', 'Г', 'Д',
		'Е', 'Ж', 'З', 'И', 'Й',
		'К', 'Л', 'М', 'Н', 'О',
		'П', 'Р', 'С', 'Т', 'У',
		'Ф', 'Х', 'Ц', 'Ч', 'Ш',
		'Щ', 'Ъ', 'Ь', 'Ю', 'Я'
	);

	$lat = array(
		'a', 'b', 'v', 'g', 'd',
		'e', 'zh', 'z', 'i', 'y',
		'k', 'l', 'm', 'n', 'o',
		'p', 'r', 's', 't', 'u',
		'f', 'h', 'ts', 'ch', 'sh',
		'sht', 'a', 'y', 'yu', 'ya',
		'A', 'B', 'V', 'G', 'D',
		'E', 'Zh', 'Z', 'I', 'Y',
		'K', 'L', 'M', 'N', 'O',
		'P', 'R', 'S', 'T', 'U',
		'F', 'H', 'Ts', 'Ch', 'Sh',
		'Sht', 'A', 'Y', 'Yu', 'Ya'
	);

	$string = !empty($reverse) ? str_replace($lat, $cyr, $string) : str_replace($cyr, $lat, $string);

	return $string;
}[/codeblock]

Let me know if you succeed with this so I can implement it in future code.


-----------------------------------
mort
Sat 29 Dec, 2012 14:00

Re: Hello, Seo Link Turkish Character Help Please
-----------------------------------
I was afraid that I may have put him off asking for any more help, or pursuing this thread because of my earlier response, so I've PM'd him to hopefully bring him back to this thread to see if it can be resolved.

  :oops:


-----------------------------------
uMiTs
Sat 29 Dec, 2012 19:49

Re: Hello, Seo Link Turkish Character Help Please
-----------------------------------
Not :(
I have tried  :(

ş    ascii code : &#351;     >   s   ascii code :    &#115;
Ş   ascii code : &#350;      >   s  ascii code :    &#115;
İ   ascii code : &#304;         >  i  ascii code :    &#105;
ı    ascii code : &#305;       >    i  ascii code :      &#105;
ö    ascii code : &#246;        >   o  ascii code :   &#111;
Ö    ascii code : &#214;       >     o   ascii code :   &#111;
ç    ascii code  :&#231;       >     c   ascii code :    &#99;
Ç    ascii code : &#199;       >    c    ascii code :    &#99;
ğ    ascii code : &#287;       >    g   ascii code :   &#103;
Ğ    ascii code : &#286;       >     g  ascii code :    &#103;


Help :(


-----------------------------------
mort
Sun 30 Dec, 2012 13:55

Re: Hello, Seo Link Turkish Character Help Please
-----------------------------------
[quote user="uMiTs" post="57905"]Not :( I have tried  :( Help :([/quote]

Would you like to tell us your php expertise on a rating from 1 to 10?

Because what you posted does not even resemble a function? So we can only guess what, where or how you are trying to add it. :(


-----------------------------------
Mighty Gorgon
Thu 10 Jan, 2013 14:40

Re: Hello, Seo Link Turkish Character Help Please
-----------------------------------
Try to replace the old function with this:

[codeblock]/**
* Cyrillic to Latin chars conversion
*/
function utf_cyr_to_latin($string, $reverse = false)
{
	$cyr  = array(
		'а', 'б', 'в', 'г', 'д',
		'e', 'ж', 'з', 'и', 'й',
		'к', 'л', 'м', 'н', 'о',
		'п', 'р', 'с', 'т', 'у',
		'ф', 'х', 'ц', 'ч', 'ш',
		'щ', 'ъ', 'ь', 'ю', 'я',
		'А', 'Б', 'В', 'Г', 'Д',
		'Е', 'Ж', 'З', 'И', 'Й',
		'К', 'Л', 'М', 'Н', 'О',
		'П', 'Р', 'С', 'Т', 'У',
		'Ф', 'Х', 'Ц', 'Ч', 'Ш',
		'Щ', 'Ъ', 'Ь', 'Ю', 'Я'
	);

	$lat = array(
		'a', 'b', 'v', 'g', 'd',
		'e', 'zh', 'z', 'i', 'y',
		'k', 'l', 'm', 'n', 'o',
		'p', 'r', 's', 't', 'u',
		'f', 'h', 'ts', 'ch', 'sh',
		'sht', 'a', 'y', 'yu', 'ya',
		'A', 'B', 'V', 'G', 'D',
		'E', 'Zh', 'Z', 'I', 'Y',
		'K', 'L', 'M', 'N', 'O',
		'P', 'R', 'S', 'T', 'U',
		'F', 'H', 'Ts', 'Ch', 'Sh',
		'Sht', 'A', 'Y', 'Yu', 'Ya'
	);

	$string = !empty($reverse) ? str_replace($lat, $cyr, $string) : str_replace($cyr, $lat, $string);

	$tur  = array('Ş', 'ş', 'İ', 'ı', 'Ö', 'ö', 'Ç' , 'ç', 'Ğ', 'ğ');
	$lat = array('S', 's', 'I', 'i', 'O', 'o', 'C', 'c', 'G', 'g');
	$string = !empty($reverse) ? str_replace($lat, $tur, $string) : str_replace($tur, $lat, $string);

	return $string;
}[/codeblock]

Let me know if it works.


