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  
 
   
Not Change After Upgrade the last version SEO

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
::  
Author Message
MorYeL
phpBB SEO Team
phpBB SEO Team


Joined: 11 Aug 2006
Posts: 99

Not Change After Upgrade the last version SEOPosted: Mon Jul 09, 2007 10:05 am    Post subject: Not Change After Upgrade the last version SEO

Hi. We are using the versiyon which is before the last version. Language of our forums is iso-8859-9 turkish. But there is very changing on lats version. And when we install this last versiyon our urls will be changed. becouse for example ş was = s, ü was=u , ö was= o etc. on the version of whish is before the last versiyon... And the search engines has been saved our urls. They must not change (urls). What should we do for not change our urls and install the last version? Thanks…
Back to top
Visit poster's website
lavinya
PR1
PR1


Joined: 24 Jul 2006
Posts: 159
Location: Turkey

Not Change After Upgrade the last version SEOPosted: Mon Jul 09, 2007 10:07 am    Post subject: Re: Not Change After Upgrade the last version SEO

I have same problem...
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Not Change After Upgrade the last version SEOPosted: Mon Jul 09, 2007 5:47 pm    Post subject: Re: Not Change After Upgrade the last version SEO

You can, as said in the release thread, continue to use the 0.2.2 version of the format_url() code.

++

_________________
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
lavinya
PR1
PR1


Joined: 24 Jul 2006
Posts: 159
Location: Turkey

Not Change After Upgrade the last version SEOPosted: Tue Jul 10, 2007 9:39 am    Post subject: Re: Not Change After Upgrade the last version SEO

Hello.
Ok. But how can we use this. I mean how can we use format_url() code and where on current version ?
Back to top
Visit poster's website
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3128

Not Change After Upgrade the last version SEOPosted: Tue Jul 10, 2007 6:24 pm    Post subject: Re: Not Change After Upgrade the last version SEO

In phpbb_seo_class.php, the one from the last version, you'll find :
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 = 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 = ( $url == "" ) ? $type : strtolower(trim($url, '-'));
      return $url;
   }


The best would be to keep the code you where previously using for this function, as I guess it already was modded a bit for your needs.

The original 0.2.2 code for this is :
Code:
   function format_url( $url, $type = 'topic' ) {
      $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;
   }

_________________
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: