| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
lavinya PR1


Joined: 24 Jul 2006 Posts: 161 Location: Turkey
|
Posted: 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 |
|
 |
|
 |
lavinya PR1


Joined: 24 Jul 2006 Posts: 161 Location: Turkey
|
Posted: 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 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |