vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Rss Turkish Character Problem Fixed (https://vborg.vbsupport.ru/showthread.php?t=149595)

Atakan KOC 06-12-2007 10:00 PM

Rss Turkish Character Problem Fixed
 
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)); 

TvPano - Yabancı Dizi - Yerli Dizi - Anime

PhoneiX 06-13-2007 07:42 AM

I was also working to solve this character problem for a couple of days. However, lack of PHP knowledge, i couldn't solve this. Now I found what i need. Thanks Atakan! *Installed!*
PS:First post reserved:p

WhaLberg 06-13-2007 07:42 AM

Bunu bulmanız iyi oldu, kafayı çizdirecek bu RSS karakter kodlaması. Teşekkürler.

It's good that you fixed it. I'ma going crazy because of the charset of RSS. Thanks.

Atakan KOC 06-13-2007 07:46 AM

Quote:

Originally Posted by WhaLberg (Post 1267481)
Bunu bulmanız iyi oldu, kafayı ?izdirecek bu RSS karakter kodlaması. Teşekk?rler.

It's good that you fixed it. I'ma going crazy because of the charset of RSS. Thanks.

Eğer başka sorun yaşarsanız yazın. Ona g?re geliştirmeye devam edelim....

If other problem pls write.....

WhaLberg 06-13-2007 07:49 AM

I have a suggestion which is offtopic. What about all Turkish vBulletin coders become a team and code big modificiations?

Atakan KOC 06-13-2007 07:53 AM

A long time..... :)

Bu t?r bir geliştirme i?erisine girmek isterim. Ama kimseden teklif gelmedi.

malisert 06-13-2007 07:53 AM

Atakan hocam iyi iş cıkartmıssın walla.Ayrıca kuruldu ve ayın modifikasyonu seceneklerine de tıkladım.Helal olsun sana gururumuzsun :D

Thanks Atakan.Good job. *Installed* and *nominate for MOTM*.

WhaLberg 06-13-2007 08:06 AM

Quote:

Originally Posted by Atakan KOC (Post 1267487)
A long time..... :)

Bu t?r bir geliştirme i?erisine girmek isterim. Ama kimseden teklif gelmedi.

To tell the truth, I just know you, me and there are like 2-3 guys either. I don't know more. Let's open a topic related to this and see who can do what. You know, we have an idiom: "There is power where there is union." :) Let me know what you think.

zbahadir 06-13-2007 08:08 AM

Teşekkürler düzenleme için.

kaptanblack 06-13-2007 10:04 AM

thanks atakan abi :)


All times are GMT. The time now is 07:39 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01125 seconds
  • Memory Usage 1,774KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete