| |
|
| :: |
| Author |
Message |
hope_umut
Joined: 08 Aug 2007 Posts: 7
|
Posted: Thu Aug 09, 2007 8:05 am Post subject: Re: About special characters remplacement |
|
|
| only these characters |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
Posted: Thu Aug 09, 2007 6:09 pm Post subject: Re: About special characters remplacement |
|
|
So for Turkish open phpbb_seo_class.php and find :
| Code: | | $this->seo_path['phpbb_script'] = $script_path; |
After add :
| Code: | // --> Custom str_Replace arrays, to handle special cases properly
$this->seo_opt['url_find'] = array( utf8_chr(286),utf8_chr(287), // g
utf8_chr(304),utf8_chr(305), // i
utf8_chr(350),utf8_chr(351), // s
);
$this->seo_opt['url_replace'] = array('g', 'g', 'i', 'i','s', 's'); |
Find :
| Code: | | $url = preg_replace('`\[.*\]`U','',$url); |
After add :
| Code: | | $url = str_replace( $this->seo_opt['url_find'], $this->seo_opt['url_replace'], $url ); |
Should do it  |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
hope_umut
Joined: 08 Aug 2007 Posts: 7
|
Posted: Wed Aug 15, 2007 2:20 pm Post subject: Re: About special characters remplacement |
|
|
thanks it works  |
|
|
| Back to top |
|
 |
messal

Joined: 27 Dec 2006 Posts: 15
|
Posted: Tue Oct 30, 2007 10:35 am Post subject: Re: About special characters remplacement |
|
|
hello
i used premod RC7
and there isnt in phpbb_seo_class.php
| Code: | | $this->seo_path['phpbb_script'] = $script_path; |
i find there fci:
| Code: | function format_url( $url, $type = 'topic' ) {
$url=utf2ascii($url);
$url = preg_replace("(\[.*\])U","",$url);
$find = array('"','&','<','>','\r\n','\n',);
$url = str_replace ($find, '-', $url);
$url = str_replace ('ß', 'ss', $url);
$url = str_replace (array('ö','Ö'), 'oe', $url);
$url = str_replace (array('ä','Ä'), 'ae', $url);
$url = str_replace (array('ü','Ü'), 'ue', $url);
$find = "ŔÁÂĂĹŕáâăĺŇÓÔŐŘňóôőřČÉĘËčéęëÇçĚÍÎĎěíîďŮÚŰůúű˙Ńń";
$replace = "aaaaaaaaaaooooooooooeeeeeeeecciiiiiiiiuuuuuuynn";
$url = strtr($url,$find,$replace);
$url = strtolower($url);
$url = ereg_replace("[^a-zA-Z0-9]", "-", $url);
$url = preg_replace("`([\-])+`", "\\1", $url);
$url = trim($url, '-');
$url = ( $url == "" ) ? $type : $url;
return $url;
} |
but it looks that isnt work because in ACP_FORUM_URL (admin panel)
i see nedoporu-ene-zp-soby-f88 (nedoporučené způsoby)
and slu-by-f53 (služby)
and others
thanks for help. |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
|
| Back to top |
|
 |
messal

Joined: 27 Dec 2006 Posts: 15
|
Posted: Tue Oct 30, 2007 4:16 pm Post subject: Re: About special characters remplacement |
|
|
LOL now i find it. i dont understand.)
But thanks.
There is for CZECH updated by ř and ě
| Code: | // --> Custom str_Replace arrays, to handle special cases properly
$this->seo_opt['url_find'] = array(utf8_chr(268),utf8_chr(269), // c
utf8_chr(356),utf8_chr(357), // t
utf8_chr(270),utf8_chr(271), // d
utf8_chr(317),utf8_chr(318), // l
utf8_chr(327),utf8_chr(328), // n
utf8_chr(381),utf8_chr(382), // z
utf8_chr(282),utf8_chr(283), // e
utf8_chr(344),utf8_chr(345), // r
);
$this->seo_opt['url_replace'] = array('c', 'c', 't', 't', 'd', 'd', 'l', 'l','n', 'n', 'z', 'z', 'e', 'e', 'r', 'r'); |
and there is utf chars for others
| Code: | | http://www.tony-franks.co.uk/UTF-8.htm |
|
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
TomaS PR2

Joined: 08 Jun 2007 Posts: 226
|
|
| Back to top |
|
 |
linhhuchong
Joined: 25 Nov 2007 Posts: 13
|
Posted: Thu Nov 29, 2007 3:58 pm Post subject: Re: About special characters remplacement |
|
|
Please help me with Vietnamese
à á ả ã ạ đ |
|
|
| Back to top |
|
 |
messal

Joined: 27 Dec 2006 Posts: 15
|
Posted: Fri Dec 14, 2007 3:23 pm Post subject: Re: About special characters remplacement |
|
|
find symbols on http://www.tony-franks.co.uk/UTF-8.htm
and write numbers dor it (must have CAPS font and small fonts Á and a)
thne add it after utf8_chr(344),utf8_chr(345), // r
and add 'a', 'a' to the end of $this->seo_opt['url_replace'] = array('c', 'c', 't', 't', 'd', 'd', 'l', 'l','n', 'n', 'z', 'z', 'e', 'e', 'r', 'r' |
|
|
| Back to top |
|
 |
CheeRees
Joined: 11 Dec 2007 Posts: 13
|
Posted: Wed Dec 19, 2007 10:45 am Post subject: Re: About special characters remplacement |
|
|
PLS and ů ??  |
|
|
| Back to top |
|
 |
Lesiu
Joined: 14 Jan 2008 Posts: 2
|
Posted: Mon Jan 14, 2008 4:26 pm Post subject: Re: About special characters remplacement |
|
|
I had the same problem with polish characters like ą ć ł and many more. I modified phpbb_seo_class.php but it didn't work at first. It started working when I used utf8_chr() function instead of &# numeric versions. Now it works fine. Thanks fot this thread  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
Ltlegend
Joined: 22 Jan 2008 Posts: 1
|
Posted: Fri Jan 25, 2008 5:56 am Post subject: Re: About special characters remplacement |
|
|
how can I replace letters like
if I have word like įvairūs it replaces to --> vair-s-f30 and I need ivairus-f30
Ą-to A
Č to c
Ė to e
Ę to e
Į to i
Š to s
Ų to u
Ū to u
Ž to z
how can I do that
? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: Sun Jan 27, 2008 9:35 am Post subject: Re: About special characters remplacement |
|
|
| Code: | // --> Custom str_Replace arrays, to handle special cases properly
$this->seo_opt['url_find'] = array(utf8_chr(268),utf8_chr(269), // c
utf8_chr(356),utf8_chr(357), // t
utf8_chr(270),utf8_chr(271), // d
utf8_chr(317),utf8_chr(318), // l
utf8_chr(327),utf8_chr(328), // n
utf8_chr(381),utf8_chr(382), // z
utf8_chr(282),utf8_chr(283), // e
utf8_chr(344),utf8_chr(345), // r
utf8_chr(362),utf8_chr(363), // u
);
$this->seo_opt['url_replace'] = array('c', 'c', 't', 't', 'd', 'd', 'l', 'l','n', 'n', 'z', 'z', 'e', 'e', 'r', 'r', 'u', 'u'); |
adds support for Ū and ū to u  |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|