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  
 
   
Problem with charaters

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
sanis



Joined: 05 Jan 2007
Posts: 47

Problem with charatersPosted: Sun Jun 03, 2007 10:21 am    Post subject: Problem with charaters

Hello.
I have just installed Advanced SEO URL for phpBB3.
It works and i am happy Smile but there is problem with lithuanian charaters.
For example, forum is named "Svetainių kūrimas" but URL looks like http://stotis.net/svetaini-k-rimas-f20/
So, how can i make it that ų replaces to u and ū to u too?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

Problem with charatersPosted: Sun Jun 03, 2007 10:57 am    Post subject: Re: Problem with charaters

sanis wrote:
Hello.
I have just installed Advanced SEO URL for phpBB3.
It works and i am happy Smile but there is problem with lithuanian charaters.
For example, forum is named "Svetainių kūrimas" but URL looks like http://stotis.net/svetaini-k-rimas-f20/
So, how can i make it that ų replaces to u and ū to u too?


Here a nice one.

Looks like ų and ū do only have a numerical entitie equivalent.
So we need to treat them separately.

In phpbb_seo_class.php find :

Code:
      $url = htmlentities($url, ENT_COMPAT, $this->encoding);


After add :

Code:
      $url = str_replace( array('ų', 'ū'),'u', $url );


You may need to actually use the correponding numerical entitie here, eg & #371; and & #371; (without the spaces between & and #).

++

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



Joined: 05 Jan 2007
Posts: 47

Problem with charatersPosted: Sun Jun 03, 2007 11:11 am    Post subject: Re: Problem with charaters

Thanks, now it works better than it can Smile

Keep good working Wink
Back to top
sanis



Joined: 05 Jan 2007
Posts: 47

Problem with charatersPosted: Sun Jun 03, 2007 11:43 am    Post subject: Re: Problem with charaters

Hello again Smile
In phpBB3.phpbb-seo.com i saw nice statistics on footer:
Quote:
Seo : 0.00345 s ( 3.51 % ) - 6 Titles ( 9.51 % ) - 22 URLs rewritten ( 90.49 % )

How can i add them into my forum ? Smile
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

Problem with charatersPosted: Sun Jun 03, 2007 12:18 pm    Post subject: Re: Problem with charaters

I'll soon make a mod out of this 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 1 of 1

Navigation Similar Topics

Jump to: