• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Another character-translation problem on Seo urls

Started by saYRam,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

saYRamTopic starter

The video title is: 1 Erkek 1 Kadın 2 Çocuk || Kamera Arkası Düğün Çok komik
Url is: 1-erkek-1-kadin-2-amp-ccedil-ocuk-kamera-arkasi-d-amp-uuml-g-amp-uuml-n-amp-ccedil-ok-komik

I read some topics in forum about character translations in functions.html.php and functions.php

I added/changed those code pieces to functions.html.php

    function _html($txt){
        //return nl2br(stripslashes(html_entity_decode($txt, ENT_QUOTES, 'UTF-8')));
        return turkishcharacters(stripslashes(html_entity_decode($txt, ENT_QUOTES)));
    }


    function turkishcharacters( $string )
    {
      $string = str_replace ( 'ç', 'ç', $string );
      $string = str_replace ( 'ý','ı',$string );
      $string = str_replace ( 'Ç', 'Ç', $string );
      $string = str_replace ( 'Ö', 'Ö', $string );
      $string = str_replace ( 'Ý', 'Ü', $string );
      $string = str_replace ( 'Ð','Ğ',$string );
      $string = str_replace ( 'Þ','Ş', $string );
      $string = str_replace ( 'Ý','İ', $string );
      $string = str_replace ( 'ö','ö', $string );
      $string = str_replace ( 'þ','ş', $string );
      $string = str_replace ( 'ð','ğ', $string );
      $string = str_replace ( 'ü','ü', $string );
      $string = str_replace ( 'ý','ı', $string );
      $string = str_replace ( '&','&', $string );
 
      return $string;
    }


Nothing changed.

But i figured out that the problem is not here. I Believe problem occurs when video datas fetched. After fetched video data and before saving them to database some translations work needed.

Can you please guide me to do this? Or any other solutions?

Thank you.
  •  

Similar topics (7)