พีดีเอ

View Full Version : คำทึบแสงในการเชื่อมโยง - แก้ไขอย่างรวดเร็ว



Marcin Kalak
17-10-12, 11:47
คุณลักษณะคำใหม่ขุ่นสำหรับชื่อทำให้เกิดปัญหาในการเชื่อมโยง ด่วนจะแก้ไขสำหรับปัญหาคือ:

เปิดแฟ้ม includes/vbenterprisetranslator_functions_detection.php
ค้นหารหัส:


$index = 0;
$index_prev = 0;
$index_prev_s = 0;
while (true) {
if($index_prev_s!=$index_prev)
{
$index_prev=$index;
$index_prev_s=$index_prev;
}
$index = strpos($title,$ignored, $index);
$help = substr($title,$index_prev, ($index-$index_prev));
if ($index !== false) {
if(vbet_containsSeparated($title,$ignoredLen, $index)) {
$index_prev_s++;
if((strstr($help,""))) {
$title = substr_replace($title, ''.$ignored.'', $index, $ignoredLen);
$index += VBET_LARGE_LANGTITLE_NT_LENGTH;
}
else
{
$title = substr_replace($title, ''.$ignored.'', $index, $ignoredLen);
$index += VBET_LANGTITLE_NT_LENGTH;
}
}
} else {
break;
}
$index += $ignoredLen;
}
$title = str_replace("[langtitle=".$language."] ", " ", $title);

เพิ่มรหัสก่อนที่จะ:

/*
เพิ่มหลังจากรหัส:

*/

นี้จะปิดทึบแสงคำสำหรับชื่อ ในรุ่นถัดไปเราจะแก้ไขปัญหานี้

Marcin Kalak
26-10-12, 10:46
โปรแกรมแก้ไขด่วนก่อนหน้านี้ปิดทึบ word สำหรับชื่อเรื่อง
โปรแกรมแก้ไขด่วนนี้แก้ไขปัญหากับ word ทึบสำหรับชื่อเรื่อง:

เปิดแฟ้ม includes/vbenterprisetranslator_functions_bbcode.php
ค้นหารหัส:


function vbet_parseTitle(&$title, $removeNotTranslateSection = false, $andUunhtmlSpecialChars = true) {
global $vbulletin;
$tag_list = array();
$tag_list['option']['langtitle'] = array(
'callback' => 'handle_external',
'external_callback' => 'vbet_handle_bbcode_langtitle',
'strip_empty' => true,
'stop_parse' => true,
'disable_smilies' => true,
'disable_wordwrap' => true,
'strip_space_after' => 0
);
$parser = new vB_BbCodeParser($vbulletin, $tag_list, false);
$result = $parser->do_parse($title, 1, 0, 1, 0, 0, 0);
unset($parser);
if ($removeNotTranslateSection) {
$start = 0;
$result =& vbet_replaceFirstOffset('', '', $result, $start);
$result =& vbet_replaceFirstOffset(''', ผลลัพธ์$ $เริ่มต้น);
ถ้า{($ andUunhtmlSpecialChars)
ผลลัพธ์$ = & unhtmlspecialchars ($ผลลัพธ์ จริง);
}
}
ส่งกลับผลลัพธ์$
}

แทนรหัส:


function vbet_parseTitle(&$title, $removeNotTranslateSection = false, $andUunhtmlSpecialChars = true) {
global $vbulletin;
$tag_list = array();
$tag_list['option']['langtitle'] = array(
'callback' => 'handle_external',
'external_callback' => 'vbet_handle_bbcode_langtitle',
'strip_empty' => true,
'stop_parse' => true,
'disable_smilies' => true,
'disable_wordwrap' => true,
'strip_space_after' => 0
);
$parser = new vB_BbCodeParser($vbulletin, $tag_list, false);
$result = $parser->do_parse($title, 1, 0, 1, 0, 0, 0);
unset($parser);
if ($removeNotTranslateSection) {
$start = 0;
$result =& str_replace(array('', ', '', ผลลัพธ์$);
ถ้า{($ andUunhtmlSpecialChars)
ผลลัพธ์$ = & unhtmlspecialchars ($ผลลัพธ์ จริง);
}
}
ส่งกลับผลลัพธ์$
}


ปัญหานี้จะคงที่ในรุ่นถัดไป

Automatic Translations (Powered by Google, Microsoft®, Yandex, SDL Language Cloud, IBM Watson and Apertium):
AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translations delivered by vBET 4.10.1