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  
 
   
phpbb3 seo with Turkish

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite
::  
Author Message
lavinya
PR1
PR1


Joined: 24 Jul 2006
Posts: 161
Location: Turkey

phpbb3 seo with TurkishPosted: Mon Jul 23, 2007 12:06 pm    Post subject: phpbb3 seo with Turkish

hello. Thanks for mods.

I tested phpbb3 and phpbb seo all mod(rewrite, zero dupe...)
But there is problem with Turkish charaters.

http://en.wikipedia.org/wiki/Help:Turkish_characters
(please see)

Example:
forum is named "ĞğİıŞş" but URL looks like: .../topic-t5.html

So how can i make it that ĞğİıŞş(ALL turkish characters) replaces to g and s ... to s,i too?

How to fix?

Thanks.
Back to top
Visit poster's website
lavinya
PR1
PR1


Joined: 24 Jul 2006
Posts: 161
Location: Turkey

phpbb3 seo with TurkishPosted: Mon Jul 23, 2007 12:10 pm    Post subject: Re: phpbb3 seo with Turkish

This true?

Code:
   function format_url( $url, $type = 'topic' ) {
      $url = preg_replace('`\[.*\]`U','',$url);
      $url = preg_replace('`&(amp;)?#?[a-z0-9]+;`i','-',$url);
      $url = htmlentities($url, ENT_COMPAT, $this->encoding);
      $url = str_replace( array('Ğ', 'ğ'),'g', $url );
      $url = str_replace( array('İ', 'ı'),'i', $url );
      $url = str_replace( array('Ş', 'ş'),'s', $url );
      $url = preg_replace( '`&([a-z]+)(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig);`i',"\\1", $url );
      $url = preg_replace( array('`[^a-z0-9]`i','`[-]+`') , '-', $url);
      $url = trim($url, '-');
      $url = ( empty($url) ) ? $type : strtolower($url);
      return $url;
   }
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

phpbb3 seo with TurkishPosted: Fri Jul 27, 2007 5:18 pm    Post subject: Re: phpbb3 seo with Turkish

I think that this is the final solution : http://www.phpbb-seo.com/boards/advanced-seo-url/discussions-vt1229-15.html#9596

++

_________________
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
Page 1 of 1

Navigation Similar Topics

Jump to: