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

aveon 06-13-2007 10:32 AM

Quote:

Originally Posted by WhaLberg (Post 1267494)
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.

nice idea i would like to join to hell yea but im not a good coder but i always can learn...

boyle bir organizasyon gercekten iyi olur

Comp 06-13-2007 11:26 AM

Thanks Atakan

murrtex 06-13-2007 02:07 PM

well done master;)

Legendery. 06-13-2007 02:49 PM

Thank you very much
Teşekk?rler Atakan abi:)

saidsrc 06-22-2007 11:48 AM

atakan bey teşekkür ederim
rsslerden faydalanmayı düşünüyorum artık (:

thanks Mr. atakan

rizelim 06-23-2007 08:25 PM

thanks Mr. atakan

cetinerdogan 06-24-2007 01:50 PM

düzenleme için teşekukurler

Synergy 06-24-2007 04:31 PM

Thanks a lot...

ogameclub 06-25-2007 07:09 PM

Teşekkürler. Desteğe devam.

anytimetrance 06-25-2007 08:02 PM

sağol atakan

mummy 06-28-2007 04:50 PM

Teşekk?rler atakan s?per ;)

thanks atakan ;)

YeşiLMeN 07-03-2007 03:53 PM

Thank You, Hakan Atakan KoC !! :D

Installed..

Ellerine Sağlık Abi :D

OZeLBiRi 07-08-2007 10:14 AM

thanks Atakan

s?persin abi :)

Simasher 07-17-2007 10:38 AM

güzel bişi olmuş eline sağlık..

SuSpect 07-22-2007 12:42 AM

Selam, bu karakter sorunu forumda kullandığımız t?m rss lerde ge?erli değilmi?. Şahsen senin yaptığın rss feeds 'i kullanıyorum(haberler i?in). Ondaki sorunuda kaldırırmı?

Just a question :) tnx

Atakan KOC 07-23-2007 07:55 PM

Quote:

Originally Posted by SuSpect (Post 1297829)
Selam, bu karakter sorunu forumda kullandığımız t?m rss lerde ge?erli değilmi?. Şahsen senin yaptığın rss feeds 'i kullanıyorum(haberler i?in). Ondaki sorunuda kaldırırmı?

Just a question :) tnx

Two a lot of different thing. "Benim hazırladığımda zaten bu ?zellik vardı."

ACİLSERVİS 07-23-2007 10:32 PM

Atakan bey benim 3 adet rss sitem var konuları yine vBulletinden ?ekiyorum ama 1 satır yazı ?ıkıyor bunu nasıl arttırabilirim. ?rneğin fusion tabanlı bir siteden konu ?ektiğim zaman konu m?thiş uzun gelebiliyor. Ama vBulletinlerden ?ektiğim konular mesaj ?ok kısa oluyor. Bu konuda yardımcı olurmusun.

Fusiondan aldığım konu gayet iyi
http://img213.imageshack.us/img213/6546/fusionwf5.png

vBulletinden aldığım konu ?ok kısa
http://img503.imageshack.us/img503/5...ulletinpr5.png

zbahadir 09-10-2007 08:56 AM

Sadece AA'dan ?ekilen haberlerde bende hala sorun var.

Quote:

?STANBUL (A.A) - Fenerbah?e, Turkcell S?per Lig'in 5. haftas?nda ?aykur Rizespor ile yapaca?? ma??n haz?rl?klar?na bir g?nl?k iznin ard?ndan devam etti. Teknik direkt?r Zico y?netiminde Samand?ra Tesisleri'nde ger?ekle?tirilen antrenman 1 saat 10 dakika s?rd?.
Bunun bir ??z?m? var mıdır acaba?

TAN06 09-22-2007 08:05 AM

teşekkürler...

thanks

libabom 10-06-2007 08:18 AM

Benim merak ettiğim , forum konusu için rss oluşturulabiliyor.
Ancak sadece konu içindeki bir başlık için Rss oluşturulabilirmi ?

gokhannnnn 11-20-2007 10:03 AM

BU değişiklikleri yapınca birçok haber alınamıyor.

Cs.Net 12-30-2007 12:13 AM

thanks atakan abi:)

cSh 12-30-2007 08:50 AM

oncelikle teşekkürler...3.6.8 ve 3.7 beta 3 de karakter sorunu devam edio..bilginize...saygılarımızla...

first of all thanks... The Problem is going on at 3.6.8 ve 3.7 beta 3...to ur knowbase...with all respects of us...

Madlike 03-02-2008 08:54 AM

thanks.Atakan Koç

Powerofdreams 03-24-2008 06:24 AM

Thanks Atakan :)

Teşekk?rler Atakan abi umarım ?alır :)

prozac38 04-04-2008 06:20 PM

http://img201.imageshack.us/img201/669/adsznj3.jpg

ger?ekten yazılar d?zeldi ama --->'<--- karakteri yerine soru işareti ?ıkıyor bunu nasıl d?zeltebiliriz.

şimdiden teşekk?r ederim Atakan Ko? ;)

hugur44 06-02-2009 08:29 PM

arkadaşlar bunun 3.8.x için bir çözümü varmı.


All times are GMT. The time now is 05:28 PM.

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.01319 seconds
  • Memory Usage 1,840KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete