• 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)

Troubleshoot problems

Started by Marius P.


Replies: 13
Views: 15667

Important Announcement: PHPVibe Video Sharing CMS End of Life

Started by Marius P.


Replies: 1
Views: 41416

Search problem on mobile for v5

Started by mihai


Replies: 1
Views: 1852

2 Problem for EDGE

Started by sowieso


Replies: 1
Views: 2460

insite ads issue when selecting above/below video player location

Started by georgepanaitescu


Replies: 3
Views: 23493

The problem of text chatting PHPVibe 5.0.

Started by Nayn


Replies: 4
Views: 7467

embed video does not work on v5

Started by neospider69


Replies: 6
Views: 52129