Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Rss Turkish Character Problem Fixed Details »»
Rss Turkish Character Problem Fixed
Version: 1.00, by Atakan KOC Atakan KOC is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Major Additions - Version: 3.6.8 Rating:
Released: 06-12-2007 Last Update: Never Installs: 47
Code Changes  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-13-2007, 07:42 AM
PhoneiX PhoneiX is offline
 
Join Date: Feb 2007
Location: Ankara/T?rkiye
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 06-13-2007, 07:42 AM
WhaLberg's Avatar
WhaLberg WhaLberg is offline
 
Join Date: Nov 2006
Location: Dersaadet
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 06-13-2007, 07:46 AM
Atakan KOC's Avatar
Atakan KOC Atakan KOC is offline
 
Join Date: Feb 2006
Location: Istanbul
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WhaLberg View Post
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.....
Reply With Quote
  #5  
Old 06-13-2007, 07:49 AM
WhaLberg's Avatar
WhaLberg WhaLberg is offline
 
Join Date: Nov 2006
Location: Dersaadet
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a suggestion which is offtopic. What about all Turkish vBulletin coders become a team and code big modificiations?
Reply With Quote
  #6  
Old 06-13-2007, 07:53 AM
Atakan KOC's Avatar
Atakan KOC Atakan KOC is offline
 
Join Date: Feb 2006
Location: Istanbul
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A long time.....

Bu t?r bir geliştirme i?erisine girmek isterim. Ama kimseden teklif gelmedi.
Reply With Quote
  #7  
Old 06-13-2007, 07:53 AM
malisert malisert is offline
 
Join Date: May 2006
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thanks Atakan.Good job. *Installed* and *nominate for MOTM*.
Reply With Quote
  #8  
Old 06-13-2007, 08:06 AM
WhaLberg's Avatar
WhaLberg WhaLberg is offline
 
Join Date: Nov 2006
Location: Dersaadet
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Atakan KOC View Post
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.
Reply With Quote
  #9  
Old 06-13-2007, 08:08 AM
zbahadir's Avatar
zbahadir zbahadir is offline
 
Join Date: Jun 2006
Location: TRABZON/TR
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Teşekkürler düzenleme için.
Reply With Quote
  #10  
Old 06-13-2007, 10:04 AM
kaptanblack's Avatar
kaptanblack kaptanblack is offline
 
Join Date: Mar 2007
Location: Turkey
Posts: 397
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks atakan abi
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:14 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05273 seconds
  • Memory Usage 2,327KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete