About special characters remplacement

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

Moderator: Moderators

Postby dcz » Mon Jun 11, 2007 5:50 pm

Grr, I just cannot find it in the lang_czech from phpBB.com http://www.phpbb.com/languages/?type=20x

And it looks a bit strange to me to see it code with :
Code: Select all
characterset         : Windows-1250


So I guess you are using another lang pack, I'd need a link to where it is made available please ;)

++
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: 21325
Joined: Fri Apr 28, 2006 9:03 pm

Advertisement

Postby Lubor » Tue Jun 12, 2007 3:31 pm

UTF-8
Lubor
PR0
PR0
 
Posts: 52
Joined: Tue Feb 13, 2007 6:37 pm
Location: Slovakia,Bratislava

Postby dcz » Wed Jun 13, 2007 4:12 pm

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 ... t9229.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- ... e-t40.html

What I did is I used the č and Č characters from the groups.php file of the above lang pack :

GROUP_IS_HIDDEN :
[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: 21325
Joined: Fri Apr 28, 2006 9:03 pm

Postby Lubor » Thu Jun 14, 2007 2:15 pm

it´s no go !!! :( :(
Another is problem with
<code>
Ť
Š
Ď
Ľ
Ň
Č
Ž</code>
:evil: :evil: :evil:
Lubor
PR0
PR0
 
Posts: 52
Joined: Tue Feb 13, 2007 6:37 pm
Location: Slovakia,Bratislava

Postby Lubor » Thu Jun 14, 2007 2:19 pm

please send your phpbb_seo_class.php
And please upload :roll:
Thanks
Lubor
PR0
PR0
 
Posts: 52
Joined: Tue Feb 13, 2007 6:37 pm
Location: Slovakia,Bratislava

Postby Lubor » Thu Jun 14, 2007 5:41 pm

at preset
http://linux.sk-net.sk/zac-iatoc-nici-f30/
zac-iatoc-nici-f

and please
Code: Select all
Ť
Š
Ď
Ľ
Ň
Č
Ž
Lubor
PR0
PR0
 
Posts: 52
Joined: Tue Feb 13, 2007 6:37 pm
Location: Slovakia,Bratislava

Postby SeO » Fri Jun 15, 2007 7:14 am

http://phpbb3.phpbb-seo.net/test-forum- ... n-t41.html ;)

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(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: 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 );


Tell us if there are other chars like these, the method is now universal, juts a matter of knowing what to replace with what.
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby dcz » Fri Jun 15, 2007 8:13 pm

So now that it's working, you do not test :mrgreen:

++
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: 21325
Joined: Fri Apr 28, 2006 9:03 pm

Postby TomaS » Fri Jul 27, 2007 6:38 pm

thx dcz it works good but pls one spel ž,Ž to z i dont know charakter of it
thx for help finaly the seo go i just delet one folder in common.php and its work
phpBB podpora-slovak phpBB support
slovenský preklad pre phpbb3-slovak translate for phpBB3
predaj a kupa domeny, marketing a internetove podnikanie- Slovak domain center
TomaS
PR2
PR2
 
Posts: 229
Joined: Fri Jun 08, 2007 1:22 am

Postby dcz » Fri Jul 27, 2007 7:40 pm

TomaS wrote:thx dcz it works good but pls one spel ž,Ž to z i dont know charakter of it
thx for help finaly the seo go i just delet one folder in common.php and its work


Just tell me with what you would like to replace this letter and I'll give you the code for it ;)
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: 21325
Joined: Fri Apr 28, 2006 9:03 pm

Postby TomaS » Fri Jul 27, 2007 9:36 pm

ok i want ž,Ž replace on z just like here or only add z but i know charset for it
Code: Select all
// --> 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
TomaS
PR2
PR2
 
Posts: 229
Joined: Fri Jun 08, 2007 1:22 am

Postby SeO » Sun Jul 29, 2007 11:46 am

http://phpbb3.phpbb-seo.net/another-tes ... s-t42.html

žŽ needed an extra replace, šŠ is handled by htmlentities().

So just add :

Code: Select all
      // --> 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.

;)
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby TomaS » Sun Jul 29, 2007 2:58 pm

yop great work ,that exactly i needed now it is perfeckt thx many time :wink:
Last edited by TomaS on Thu Sep 13, 2007 10:04 pm, edited 1 time in total.
phpBB podpora-slovak phpBB support
slovenský preklad pre phpbb3-slovak translate for phpBB3
predaj a kupa domeny, marketing a internetove podnikanie- Slovak domain center
TomaS
PR2
PR2
 
Posts: 229
Joined: Fri Jun 08, 2007 1:22 am

Postby hope_umut » Wed Aug 08, 2007 8:44 pm

I have some turkish characters problem which are below
ğ must be g
ı must be i
ş must be s

Can you help me?
hope_umut
 
Posts: 7
Joined: Wed Aug 08, 2007 6:25 pm

Postby SeO » Thu Aug 09, 2007 7:09 am

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) ?
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

PreviousNext

Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 6 guests