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  
 
   
About special characters remplacement
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

About special characters remplacementPosted: Mon Jun 11, 2007 5:50 pm    Post subject: Re: About special characters remplacement

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:
characterset         : Windows-1250


So I guess you are using another lang pack, I'd need a link to where it is made available please 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
Ľubor
PR0
PR0


Joined: 13 Feb 2007
Posts: 52
Location: Slovakia,Bratislava

About special characters remplacementPosted: Tue Jun 12, 2007 3:31 pm    Post subject: Re: About special characters remplacement

UTF-8
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

About special characters remplacementPosted: 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 :
Code:
Älenovia


And :

GROUP_MEMBERS :
Code:
ÄŒlenovia

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 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
Ľubor
PR0
PR0


Joined: 13 Feb 2007
Posts: 52
Location: Slovakia,Bratislava

About special characters remplacementPosted: Thu Jun 14, 2007 2:15 pm    Post subject: Re: About special characters remplacement

it´s no go !!! Sad Sad
Another is problem with
<code>
Ť
Š
Ď
Ľ
Ň
Č
Ž</code>
Evil or Very Mad Evil or Very Mad Evil or Very Mad
Back to top
Visit poster's website
&#317;ubor
PR0
PR0


Joined: 13 Feb 2007
Posts: 52
Location: Slovakia,Bratislava

About special characters remplacementPosted: Thu Jun 14, 2007 2:19 pm    Post subject: Re: About special characters remplacement

please send your phpbb_seo_class.php
And please upload Rolling Eyes
Thanks
Back to top
Visit poster's website
&#317;ubor
PR0
PR0


Joined: 13 Feb 2007
Posts: 52
Location: Slovakia,Bratislava

About special characters remplacementPosted: Thu Jun 14, 2007 5:41 pm    Post subject: Re: About special characters remplacement

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

and please
Code:

Ť
Š
Ď
Ľ
Ň
Č
Ž
Back to top
Visit poster's website
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 4006

About special characters remplacementPosted: 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 Wink

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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

About special characters remplacementPosted: Fri Jun 15, 2007 8:13 pm    Post subject: Re: About special characters remplacement

So now that it's working, you do not test Mr. Green

++

_________________
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
TomaS
PR2
PR2


Joined: 08 Jun 2007
Posts: 226

About special characters remplacementPosted: Fri Jul 27, 2007 6:38 pm    Post subject: Re: About special characters remplacement

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
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

About special characters remplacementPosted: Fri Jul 27, 2007 7:40 pm    Post subject: Re: About special characters remplacement

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 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
TomaS
PR2
PR2


Joined: 08 Jun 2007
Posts: 226

About special characters remplacementPosted: 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
Visit poster's website
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 4006

About special characters remplacementPosted: 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.

Wink

_________________
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
PR2


Joined: 08 Jun 2007
Posts: 226

About special characters remplacementPosted: Sun Jul 29, 2007 2:58 pm    Post subject: Re: About special characters remplacement

yop great work ,that exactly i needed now it is perfeckt thx many time Wink

_________________
phpBB podpora-slovak phpBB support
slovenský preklad pre phpbb3-slovak translate for phpBB3
predaj a kupa domeny, marketing a internetove podnikanie- Slovak domain center


Last edited by TomaS on Thu Sep 13, 2007 10:04 pm; edited 1 time in total
Back to top
Visit poster's website
hope_umut



Joined: 08 Aug 2007
Posts: 7

About special characters remplacementPosted: 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
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 4006

About special characters remplacementPosted: 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
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 2 of 4 Goto page Previous  1, 2, 3, 4  Next

Navigation Similar Topics

Jump to: