PDA

Orijinalini görmek için tıklayınız: Bağlantılar Opak kelime - hızlı düzeltme



Marcin Kalak
17-10-12, 11:47
Yeni özellik opak bir sözcük için başlık bağlantıları sorunu neden oldu. Hızlı-ecek saptamak belgili tanımlık piyasaya çıkarma için:

Açık dosya includes/vbenterprisetranslator_functions_detection.php
Kodu bulun:


$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);

Önce kodu ekleyin:

/*
Sonra kodu ekleyin:

*/

Bu yalnızca opak word başlıkları için kapatmak. Bir sonraki sürümde bu sorunu çözecektir.

Marcin Kalak
26-10-12, 10:46
Önceki hızlı düzeltme opak word başlıkları için kapatın.
Bu hızlı bir düzeltme başlık için opak word ile bir sorunu düzeltir:

Açık dosya includes/vbenterprisetranslator_functions_bbcode.php
Kodu bulun:


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(''', $result, $başlangıç);
Eğer ($andUunhtmlSpecialChars) {}
$Sonuç = & unhtmlspecialchars ($result, true);
}
}
$ Sonuç;
}

Bunun için kodu değiştirin:


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('', ', '', $sonuç);
Eğer ($andUunhtmlSpecialChars) {}
$Sonuç = & unhtmlspecialchars ($result, true);
}
}
$ Sonuç;
}


Bu sorun bir sonraki sürümde giderilecektir.

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