polish characters

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

polish characters

Postby janmyszkier » Sat Oct 13, 2007 12:04 am

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.
janmyszkier
PR0
PR0
 
Posts: 50
Joined: Fri Oct 12, 2007 11:47 pm
Location: Wroclaw, Poland.

Advertisement

Postby dcz » Sun Oct 21, 2007 12:07 pm

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

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/advance ... 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. :) 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 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21424
Joined: Fri Apr 28, 2006 9:03 pm

Postby janmyszkier » Sun Oct 21, 2007 12:18 pm

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.
janmyszkier
PR0
PR0
 
Posts: 50
Joined: Fri Oct 12, 2007 11:47 pm
Location: Wroclaw, Poland.

Postby dcz » Sun Oct 21, 2007 12:27 pm

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 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21424
Joined: Fri Apr 28, 2006 9:03 pm

Postby janmyszkier » Sun Oct 21, 2007 12:32 pm

cannot release a mod with zillions of useless lines of code either.


shame :P

however it seems newest RC of the Premod works perfectly without that code ^_^ good work !
janmyszkier
PR0
PR0
 
Posts: 50
Joined: Fri Oct 12, 2007 11:47 pm
Location: Wroclaw, Poland.

Postby dcz » Sun Oct 21, 2007 12:33 pm

What code ?
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21424
Joined: Fri Apr 28, 2006 9:03 pm

Postby janmyszkier » Sat Oct 27, 2007 5:10 pm

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
janmyszkier
PR0
PR0
 
Posts: 50
Joined: Fri Oct 12, 2007 11:47 pm
Location: Wroclaw, Poland.

Postby dcz » Sun Oct 28, 2007 12:38 pm

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: Select all
      $this->seo_path['phpbb_script'] =  $script_path;



After add :


Code: Select all
      // --> 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: Select all
      $url = preg_replace('`\[.*\]`U','',$url);



After add :


Code: Select all
      $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: Select all
Ą -> A
ą -> a
Ć -> C
ć -> c
ę -> e
Ę -> E
Ł -> L
ł -> l
Ń -> N
ń -> n
Ż -> Z
ż -> z
Ź -> Z
ź -> z


;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21424
Joined: Fri Apr 28, 2006 9:03 pm

Re: polish characters

Postby Defi » Wed Oct 06, 2010 8:29 am

Why i cant find that line in php_seo_class.php
Code: Select all
$this->seo_path['phpbb_script'] =  $script_path;


Im using phpBB_SEO_Ultimate_SEO_URL_v0.6.4
Defi
 
Posts: 1
Joined: Wed Oct 06, 2010 8:26 am


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 13 guests