| |
|
| :: |
| Author |
Message |
janmyszkier
Joined: 12 Oct 2007 Posts: 42 Location: Wroclaw, Poland.
|
Posted: Sat Oct 13, 2007 12:04 am Post subject: polish characters |
|
|
polish characters won't show
I'm terribly sorry but the author of this mod asked me to remove it from the forum :/
To mods: please remove this topic. |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
janmyszkier
Joined: 12 Oct 2007 Posts: 42 Location: Wroclaw, Poland.
|
Posted: Sun Oct 21, 2007 12:18 pm Post subject: Re: polish characters |
|
|
nono it's not the problem, this has been fixed and i placed a fix proposed by my friend, i was however asked then to remove it from the forum. But if anyone will have problems with polish characters on utf-8 can wait till seo converts it like it should or ask me by pm we will help then. I'm sorry for this but it's the only way i can help. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Sun Oct 21, 2007 12:27 pm Post subject: Re: polish characters |
|
|
Do you meant that you do all this not to share your solution ?
Besides, there is nothing to convert, the phpBB SEO mod rewrite do already have a method to handle special cases, it's only a matter of setting them up.
Let's hope your "so private" method is as light as ours
We of course cannot handle all exceptions for all languages by default, since we cannot know all languages on hearth and we cannot release a mod with zillions of useless lines of code either.
If you want to, I can still give you the proper replacements to handle polish properly, just edit your topic title to something like "polish characters custom replacements" if you want to.
++ |
_________________ 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 |
|
 |
janmyszkier
Joined: 12 Oct 2007 Posts: 42 Location: Wroclaw, Poland.
|
Posted: Sun Oct 21, 2007 12:32 pm Post subject: Re: polish characters |
|
|
| Quote: | | cannot release a mod with zillions of useless lines of code either. |
shame
however it seems newest RC of the Premod works perfectly without that code ^_^ good work ! |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
janmyszkier
Joined: 12 Oct 2007 Posts: 42 Location: Wroclaw, Poland.
|
Posted: Sat Oct 27, 2007 5:10 pm Post subject: Re: polish characters |
|
|
ok i checked it out and it doesn't
one of the pro's of merging codes during update
here's the fix:
http://87.105.130.108/phpbb_seo.zip |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Sun Oct 28, 2007 12:38 pm Post subject: Re: polish characters |
|
|
Oh, so you did use the method we discussed .
But your links does not work anymore.
I prefer to use utf8_chr() to make it more readable, must not be this different as far as page loading since they are called once.
So to make it handy, for polish characters, you'll need to 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(260),utf8_chr(261), // Aa
utf8_chr(262),utf8_chr(263), // Cc
utf8_chr(280),utf8_chr(281), // Ee
utf8_chr(321),utf8_chr(322), // Ll
utf8_chr(323),utf8_chr(324), // Nn
utf8_chr(379),utf8_chr(380), // Zz
utf8_chr(377),utf8_chr(378), // Zz
);
$this->seo_opt['url_replace'] = array('a', 'a', 'c', 'c', 'e', 'e', 'l', 'l','n', 'n', 'z', 'z', 'z', 'z'); |
Find :
| Code: | | $url = preg_replace('`\[.*\]`U','',$url); |
After add :
| Code: | | $url = str_replace( $this->seo_opt['url_find'], $this->seo_opt['url_replace'], $url ); |
ó -> o
Ó ->O
Should be handled properly by default.
This will take care of :
| Code: |
Ą -> A
ą -> a
Ć -> C
ć -> c
ę -> e
Ę -> E
Ł -> L
ł -> l
Ń -> N
ń -> n
Ż -> Z
ż -> z
Ź -> Z
ź -> z |
++ |
_________________ 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 |
|
|
|
|
|
|
|