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
hope_umut



Joined: 08 Aug 2007
Posts: 7

About special characters remplacementPosted: Thu Aug 09, 2007 8:05 am    Post subject: Re: About special characters remplacement

only these characters
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 4006

About special characters remplacementPosted: Thu Aug 09, 2007 6:09 pm    Post subject: Re: About special characters remplacement

So for Turkish 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(286),utf8_chr(287), // g
         utf8_chr(304),utf8_chr(305), // i
         utf8_chr(350),utf8_chr(351), // s
      );
      $this->seo_opt['url_replace'] = array('g', 'g', 'i', 'i','s', 's');


Find :
Code:
      $url = preg_replace('`\[.*\]`U','',$url);


After add :
Code:
      $url = str_replace( $this->seo_opt['url_find'], $this->seo_opt['url_replace'], $url );


Should do it 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
hope_umut



Joined: 08 Aug 2007
Posts: 7

About special characters remplacementPosted: Wed Aug 15, 2007 2:20 pm    Post subject: Re: About special characters remplacement

thanks it works Very Happy
Back to top
messal



Joined: 27 Dec 2006
Posts: 15

About special characters remplacementPosted: Tue Oct 30, 2007 10:35 am    Post subject: Re: About special characters remplacement

hello

i used premod RC7

and there isnt in phpbb_seo_class.php
Code:
$this->seo_path['phpbb_script'] =  $script_path;


i find there fci:
Code:
   function format_url( $url, $type = 'topic' ) {
      $url=utf2ascii($url);
    $url = preg_replace("(\[.*\])U","",$url);
      $find = array('"','&','<','>','\r\n','\n',);
      $url = str_replace ($find, '-', $url);
      $url = str_replace ('ß', 'ss', $url);
      $url = str_replace (array('ö','Ö'), 'oe', $url);
      $url = str_replace (array('ä','Ä'), 'ae', $url);
      $url = str_replace (array('ü','Ü'), 'ue', $url);
      $find = "ŔÁÂĂĹŕáâăĺŇÓÔŐŘňóôőřČÉĘËčéęëÇçĚÍÎĎěíîďŮÚŰůúű˙Ńń";
      $replace = "aaaaaaaaaaooooooooooeeeeeeeecciiiiiiiiuuuuuuynn";
      $url = strtr($url,$find,$replace);
      $url = strtolower($url);
      $url = ereg_replace("[^a-zA-Z0-9]", "-", $url);
      $url = preg_replace("`([\-])+`", "\\1", $url);
      $url = trim($url, '-');
      $url = ( $url == "" ) ? $type : $url;
      return $url;
   }


but it looks that isnt work because in ACP_FORUM_URL (admin panel)
i see nedoporu-ene-zp-soby-f88 (nedoporučené způsoby)
and slu-by-f53 (služby)
and others

thanks for help.
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 4006

About special characters remplacementPosted: Tue Oct 30, 2007 2:44 pm    Post subject: Re: About special characters remplacement

messal wrote:
hello

i used premod RC7

and there isnt in phpbb_seo_class.php
Code:
$this->seo_path['phpbb_script'] =  $script_path;



Well, it should and actually is there in the released files.

Double check.

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



Joined: 27 Dec 2006
Posts: 15

About special characters remplacementPosted: Tue Oct 30, 2007 4:16 pm    Post subject: Re: About special characters remplacement

LOL now i find it. i dont understand.)

But thanks.

There is for CZECH updated by ř and ě
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
         utf8_chr(282),utf8_chr(283), // e
         utf8_chr(344),utf8_chr(345), // r
      );
      $this->seo_opt['url_replace'] = array('c', 'c', 't', 't', 'd', 'd', 'l', 'l','n', 'n', 'z', 'z', 'e', 'e', 'r', 'r');


and there is utf chars for others
Code:
http://www.tony-franks.co.uk/UTF-8.htm
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

About special characters remplacementPosted: Sat Nov 03, 2007 11:35 am    Post subject: Re: About special characters remplacement

messal wrote:

There is for CZECH updated by ř and ě


Thanks for reporting, it's a bit hard for me to figure out what characters are used in every language 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: Sat Nov 03, 2007 9:04 pm    Post subject: Re: About special characters remplacement

and especially in czech language Laughing

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



Joined: 25 Nov 2007
Posts: 13

About special characters remplacementPosted: Thu Nov 29, 2007 3:58 pm    Post subject: Re: About special characters remplacement

Please help me with Vietnamese
à á ả ã ạ đ
Back to top
messal



Joined: 27 Dec 2006
Posts: 15

About special characters remplacementPosted: Fri Dec 14, 2007 3:23 pm    Post subject: Re: About special characters remplacement

find symbols on http://www.tony-franks.co.uk/UTF-8.htm

and write numbers dor it (must have CAPS font and small fonts Á and a)

thne add it after utf8_chr(344),utf8_chr(345), // r

and add 'a', 'a' to the end of $this->seo_opt['url_replace'] = array('c', 'c', 't', 't', 'd', 'd', 'l', 'l','n', 'n', 'z', 'z', 'e', 'e', 'r', 'r'
Back to top
CheeRees



Joined: 11 Dec 2007
Posts: 13

About special characters remplacementPosted: Wed Dec 19, 2007 10:45 am    Post subject: Re: About special characters remplacement

PLS and ů ?? Confused
Back to top
Lesiu



Joined: 14 Jan 2008
Posts: 2

About special characters remplacementPosted: Mon Jan 14, 2008 4:26 pm    Post subject: Re: About special characters remplacement

I had the same problem with polish characters like ą ć ł and many more. I modified phpbb_seo_class.php but it didn't work at first. It started working when I used utf8_chr() function instead of &# numeric versions. Now it works fine. Thanks fot this thread Wink
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

About special characters remplacementPosted: Wed Jan 16, 2008 10:38 am    Post subject: Re: About special characters remplacement

Yes, utf8_chr() is the universal method here.
Generally speaking, the fastest would be to use proper encoding for your server directly, but the way we do it only requires few calls to it, so it's not a performance issue to do like this and be universal.

++

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



Joined: 22 Jan 2008
Posts: 1

About special characters remplacementPosted: Fri Jan 25, 2008 5:56 am    Post subject: Re: About special characters remplacement

how can I replace letters like
if I have word like įvairūs it replaces to --> vair-s-f30 and I need ivairus-f30
Ą-to A
Č to c
Ė to e
Ę to e
Į to i
Š to s
Ų to u
Ū to u
Ž to z

how can I do that
?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

About special characters remplacementPosted: Sun Jan 27, 2008 9:35 am    Post subject: Re: About special characters remplacement

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
         utf8_chr(282),utf8_chr(283), // e
         utf8_chr(344),utf8_chr(345), // r
         utf8_chr(362),utf8_chr(363), // u
      );
      $this->seo_opt['url_replace'] = array('c', 'c', 't', 't', 'd', 'd', 'l', 'l','n', 'n', 'z', 'z', 'e', 'e', 'r', 'r', 'u', 'u');


adds support for Ū and ū to u 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 3 of 4 Goto page Previous  1, 2, 3, 4  Next

Navigation Similar Topics

Jump to: