| |
|
| :: |
| Author |
Message |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
|
 |
Ľubor PR0

Joined: 13 Feb 2007 Posts: 52 Location: Slovakia,Bratislava
|
Posted: Tue Jun 12, 2007 3:31 pm Post subject: Re: About special characters remplacement |
|
|
| UTF-8 |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: Wed Jun 13, 2007 4:12 pm Post subject: Re: About special characters remplacement |
|
|
Yes, I flighted a bit to find an utf8 source, but I finally found one here http://jan.fecik.sk/files/phpbb3-lang-slovak.zip ( http://www.pcforum.sk/slovensky-preklad-na-phpbb-3-vt9229.html ).
The thing is I'm not sure these chars will render well on the ISO-8859-1 char-set used on phpBB SEO, but I have this working here : http://phpbb3.phpbb-seo.net/test-forum-1-f2/c-and-c-test-for-czech-language-t40.html
What I did is I used the č and Č characters from the groups.php file of the above lang pack :
GROUP_IS_HIDDEN :
And :
GROUP_MEMBERS :
They do not render the same way they do in my php editor, so in case the following does not work directly, you will have to grab the č from the GROUP_IS_HIDDEN entry and Č with the GROUP_MEMBERS one.
So open phpbb_seo_class.php and find :
| Code: | | $url = preg_replace('`\[.*\]`U','',$url); |
After add :
| Code: | | $url = str_replace( array('Ä', 'ÄŒ'),'c', $url ); |
These char-set things can really be tricky, and it's pretty hard to find proper information about characters like these, especially because the topic is mostly covered by people concerned, and ho well, I do not speak Czech nor slovak fluently, yet
++ |
_________________ 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 |
|
 |
Ľubor PR0

Joined: 13 Feb 2007 Posts: 52 Location: Slovakia,Bratislava
|
Posted: Thu Jun 14, 2007 2:15 pm Post subject: Re: About special characters remplacement |
|
|
it´s no go !!!
Another is problem with
<code>
Ť
Š
Ď
Ľ
Ň
Č
Ž</code>
 |
|
|
| Back to top |
|
 |
Ľubor PR0

Joined: 13 Feb 2007 Posts: 52 Location: Slovakia,Bratislava
|
Posted: Thu Jun 14, 2007 2:19 pm Post subject: Re: About special characters remplacement |
|
|
please send your phpbb_seo_class.php
And please upload
Thanks |
|
|
| Back to top |
|
 |
Ľubor PR0

Joined: 13 Feb 2007 Posts: 52 Location: Slovakia,Bratislava
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
Posted: Fri Jun 15, 2007 7:14 am Post subject: Re: About special characters remplacement |
|
|
http://phpbb3.phpbb-seo.net/test-forum-1-f2/cc-tt-dd-ll-nn-t41.html
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(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
);
$this->seo_opt['url_replace'] = array('c', 'c', 't', 't', 'd', 'd', 'l', 'l','n', 'n'); |
Find :
| Code: | | $url = preg_replace('`\[.*\]`U','',$url); |
After add :
| Code: | | $url = str_replace( $this->seo_opt['url_find'], $this->seo_opt['url_replace'], $url ); |
Tell us if there are other chars like these, the method is now universal, juts a matter of knowing what to replace with what. |
_________________ 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 |
|
 |
dcz Administrateur - Site Admin

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

Joined: 08 Jun 2007 Posts: 226
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

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

Joined: 08 Jun 2007 Posts: 226
|
Posted: Fri Jul 27, 2007 9:36 pm Post subject: Re: About special characters remplacement |
|
|
ok i want ž,Ž replace on z just like here or only add z but i know charset for it
| 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
);
$this->seo_opt['url_replace'] = array('c', 'c', 't', 't', 'd', 'd', 'l', 'l','n', 'n'); | i am not koder so i want help from you or from here
thx a lot |
_________________ phpBB podpora-slovak phpBB support
slovenský preklad pre phpbb3-slovak translate for phpBB3
predaj a kupa domeny, marketing a internetove podnikanie- Slovak domain center |
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
Posted: Sun Jul 29, 2007 11:46 am Post subject: Re: About special characters remplacement |
|
|
http://phpbb3.phpbb-seo.net/another-test-forum-f4/cc-tt-dd-ll-nn-zz-ss-t42.html
žŽ needed an extra replace, šŠ is handled by htmlentities().
So just add :
| 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
);
$this->seo_opt['url_replace'] = array('c', 'c', 't', 't', 'd', 'd', 'l', 'l','n', 'n', 'z', 'z'); |
Instead of the code you mentionned.
 |
_________________ 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 |
|
 |
TomaS PR2

Joined: 08 Jun 2007 Posts: 226
|
|
| Back to top |
|
 |
hope_umut
Joined: 08 Aug 2007 Posts: 7
|
Posted: Wed Aug 08, 2007 8:44 pm Post subject: Re: About special characters remplacement |
|
|
I have some turkish characters problem which are below
ğ must be g
ı must be i
ş must be s
Can you help me? |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
Posted: Thu Aug 09, 2007 7:09 am Post subject: Re: About special characters remplacement |
|
|
| hope_umut wrote: | I have some turkish characters problem which are below
ğ must be g
ı must be i
ş must be s
Can you help me? |
Are these the only problems you have ?
Or do you as well need the previous replace (the one already proposed here) ? |
_________________ 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 |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|