phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
polish characters

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
janmyszkier



Joined: 12 Oct 2007
Posts: 42
Location: Wroclaw, Poland.

polish charactersPosted: 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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

polish charactersPosted: Sun Oct 21, 2007 12:07 pm    Post subject: Re: polish characters

There must be some misunderstanding here. It's a pretty good place to ask about this if you are using phpBB3 Wink

So first, are you using phpBB3 or phpBB2 ?

Because you as well posted in the phpBB2 forum for this :
http://www.phpbb-seo.com/boards/advanced-mod-rewrite/discussions-vt1405.html#11976
janmyszkier wrote:
I'll continue the topic and sorry for bumping it:

Ą -> A
ą -> a
Ć -> C
ć -> c
ę -> e
Ę -> E
Ł -> L
ł -> l
Ń -> N
ń -> n
ó -> o
Ó ->O
Ż -> Z
ż -> z
Ź -> Z
ź -> z

ok done. Smile informed matthew_l already


Please tell me about the phpBB version, and we'll continue either here or on the other thread.

_________________
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
Visit poster's website
janmyszkier



Joined: 12 Oct 2007
Posts: 42
Location: Wroclaw, Poland.

polish charactersPosted: 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 Smile 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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

polish charactersPosted: 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 Wink

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
Visit poster's website
janmyszkier



Joined: 12 Oct 2007
Posts: 42
Location: Wroclaw, Poland.

polish charactersPosted: 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 Razz

however it seems newest RC of the Premod works perfectly without that code ^_^ good work !
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

polish charactersPosted: Sun Oct 21, 2007 12:33 pm    Post subject: Re: polish characters

What code ?

_________________
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
Visit poster's website
janmyszkier



Joined: 12 Oct 2007
Posts: 42
Location: Wroclaw, Poland.

polish charactersPosted: Sat Oct 27, 2007 5:10 pm    Post subject: Re: polish characters

ok i checked it out and it doesn't Smile
one of the pro's of merging codes during update Smile

here's the fix:
http://87.105.130.108/phpbb_seo.zip
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

polish charactersPosted: Sun Oct 28, 2007 12:38 pm    Post subject: Re: polish characters

Oh, so you did use the method we discussed Wink.
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


Wink

++

_________________
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
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: