Back to vBulletin 3.6 Add-ons

Rss Turkish Character Problem Fixed
Mod Version: 1.00, by Atakan KOC

This modification is in the archives.
vB Version: 3.6.8 Rating: (9 votes - 5.00 average) Installs: 47
Released: 13 Jun 2007 Last Update: Never Downloads: 136
Not Supported Code Changes  

Rss Turkish character Problem Fix
By H.Atakan KOÇ
http://www.onsayfa.com/ - http://www.sonkonu.com/
Sanırım Bu Sorunada Çözüm Bulduk

Open File forum/includes/cron/rssposter.php

Find

PHP Code:
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ######################################################################## 


Add Below


PHP Code:
function trtrans ($str)
{

$trans = array("ğ" => "ğ",
               
"Ä".chr(158) => "Ğ",
               
"ı" => "ı",
               
"İ" => "İ",
               
"ç" => "ç",
               
"Ç" => "Ç",
               
"ü" => "ü",
               
"Ü" => "Ü",
               
"ö" => "ö",
               
"Ö" => "Ö",
               
"Å".chr(158) => "Ş",
               
"ş" => "ş",
               
"ß" => "ß",
               
"ä" => "ä",
               
"Ã".chr(132) => "Ä"

               
);
               
$out strtr($str$trans); 
// $out = $str;
   
$badwordchars=array(
   
"\xe2\x80\x98","\xe2\x80\x99","\xe2\x80\x9a",
   
"\xe2\x80\x9b","\xe2\x80\xb2","\xe2\x80\xb5",
   
"\xe2\x80\x9c","\xe2\x80\x9d","\xe2\x80\x9e",
   
"\xe2\x80\x9f","\xe2\x80\xb3","\xe2\x80\xb6",
   
"\xe2\x80\xa6","\xe2\x82\xac","\xe2\x86\x92",
   
"\xe2\x86\x90","\xe2\x86\x91","\xe2\x86\x93",
   
"\xe2\x80\x94"
   
);
   
   
$fixedwordchars=array(
   
"‘","’","‚",
   
"‛","′","‵",
   
"“","”","„",
   
"‟","″","‶",
   
"…","€","→",
   
"←","↑","↓",
   
"—"
   
);
   
    
$out=str_replace($badwordchars,$fixedwordchars,$out);
    return 
$out;

There 2 codes same from the given below so please change both of them.

Find

PHP Code:
$itemdata->set('title'strip_bbcode(convert_wysiwyg_html_to_bbcode($feed['xml']->parse_template($feed['titletemplate'], $item)))); 
Replace

PHP Code:
$itemdata->set('title'trtrans(strip_bbcode(convert_wysiwyg_html_to_bbcode($feed['xml']->parse_template($feed['titletemplate'], $item))))); 

find


PHP Code:
$itemdata->set('pagetext'$pagetext); 
replace

PHP Code:
$itemdata->set('pagetext'trtrans($pagetext)); 
Find

PHP Code:
$itemdata->set('title'strip_bbcode(convert_wysiwyg_html_to_bbcode($feed['xml']->parse_template($feed['titletemplate'], $item)))); 
Replace

PHP Code:
$itemdata->set('title'trtrans(strip_bbcode(convert_wysiwyg_html_to_bbcode($feed['xml']->parse_template($feed['titletemplate'], $item))))); 

find


PHP Code:
$itemdata->set('pagetext'$pagetext); 
replace

PHP Code:
$itemdata->set('pagetext'trtrans($pagetext)); 
http://www.tvpano.com/ - http://www.tvpano.com/yabanci-dizi/ - http://www.tvpano.com/yerli-dizi/ - http://www.tvpano.com/anime/

Download

This modification is archived, downloads are still allowed.

File Type: %1$s tcpf.txt (3.1 KB, 127 downloads)


vblts.ru supports vBulletin®, 2022-2025