PDA

View Full Version: Fjala Opaque në lidhje - fix shpejtë



Marcin Kalak
17-10-12, 11:47
Një fjalë të re tipar i padepërtueshëm për tituj shkaktuar këtë çështje në lidhje. Shpejtë do të rregullojmë për çështja është:

Fotografi Open përfshin / vbenterprisetranslator_functions_detection.php
Gjej kod:


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

Shto përpara kodin:

/*
Shtoni pas kodin:

*/

Kjo vetëm do të kthehet off fjalën errët për tituj. Në lirimin e ardhshëm ne do të rregullojmë këtë çështje.

Marcin Kalak
26-10-12, 10:46
Kthehu fix shpejtë fikur fjalën errët për tituj.
Kjo doze korrigjon një çështje me fjalë errët për titullin:

Fotografi Open përfshin / vbenterprisetranslator_functions_bbcode.php
Gjej kod:


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('','', Rezultati $, $ fillim);
në qoftë se ($ andUunhtmlSpecialChars) {
Rezultat $ = & unhtmlspecialchars ($ rezultati, i vërtetë);
}
}
kthehen $ rezultatin;
}

Zëvendësuar atë me kodin:


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('', ''),'', $ Rezultati);
në qoftë se ($ andUunhtmlSpecialChars) {
Rezultat $ = & unhtmlspecialchars ($ rezultati, i vërtetë);
}
}
kthehen $ rezultatin;
}


Kjo çështje do të jetë fikse në lirimin e ardhshëm.

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