Enpòtan: Paj sa a se lè l sèvi avèk bonbon (cookies). Sèvi ak sit entènèt sa a san yo pa vire sou bonbon nan navigatè, vle di ke ou dakò pou sèvi ak li.
Buy Now! Features Downloads

Gen ak nou!

Si ou ta renmen kòmanse lajan ak are vBET pou salè pou gwo travay Afilye pwogram.
Paj 3 nan 3 FirstPremye 123
Rezilta 21 24 nan 24

Thread: vBET 4.2.1 pa tradui vBSEO mesaj Javascript

  1. #21
    vBulletin Enterprise Translator (vBET) Anplwaye
    Join Date
    Me 2010
    Posts
    1,000

    Default

    Mwen pral tcheke li

  2. #22

    Default

    nenpòt ki nouvèl?

  3. #23
    vBulletin Enterprise Translator (vBET) Anplwaye
    Join Date
    Me 2010
    Posts
    1,000

    Default

    ou se dwa - sa a pa enkli nan vèsyon sa-a - mwen bezwen jwenn pou ki rezon.

  4. #24
    Michał Podbielski (vBET Anplwaye) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Vreman vre pinèz la tounen vin, men nou jwenn solisyon - li pral enkli nan lage pwochen.

    Pou repare quicke tanpri:
    1. Ranpli Open / gen ladan / vbenterprisetranslator_functions
    2. Jwenn fonksyon vbet_addScriptToTable:
    Code:
    function vbet_addScriptToTable($what) {
    global $vbulletin;
    if ($vbulletin->options['vbenterprisetranslator_vbseo_message'] && strpos($what[1], 'vbseo_jshtml[0]')) {
    $scriptIndex = 0;
    $position = 0;
    $prevPosition = 0;
    $scriptBuffer = '';
    $script = $what[1];
    $forumLanguage = $vbulletin->options['vbenterprisetranslator_forumlanguage'];
    global $vbet_serie;
    while (true) {
    $position = strpos($script, 'vbseo_jshtml['.$scriptIndex.']', $prevPosition);
    if (!$position) {
    break;
    }
    $position = strpos($script, '<table', $position);
    $end = strpos($script, '</table>', $position);
    $toTranslate = substr($script, $position, $end + strlen('</table>') - $position);
    $scriptBuffer .= substr($script, $prevPosition, $position).vbet_translateHTMLFromTo($toTranslate, $forumLanguage, $_REQUEST['language'], $vbet_serie);	
    ++$scriptIndex;
    $prevPosition = $end + strlen('</table>');
    }	
    $what[1] = $scriptBuffer.substr($script, $prevPosition);
    } else {
    $what[1] = vbet_getReEncoded($what[1]);
    }			
    return vbet_addToReplacementsBuffer($what);
    }
    3. Ranplase li pa:
    Code:
    function vbet_addScriptToTable($what) {
    global $vbulletin;
    if ($vbulletin->options['vbenterprisetranslator_vbseo_message'] && strpos($what[1], 'vbseo_jshtml[0]')) {
    $scriptIndex = 0;
    $position = 0;
    $prevPosition = 0;
    $scriptBuffer = '';
    $script = $what[1];
    $forumLanguage = $vbulletin->options['vbenterprisetranslator_forumlanguage'];
    global $vbet_serie;
    while (true) {
    $position = strpos($script, 'vbseo_jshtml['.$scriptIndex.']', $prevPosition);
    if (!$position) {
    break;
    }
    $position = strpos($script, '<ol>', $position);
    $end = strpos($script, '</ol>', $position);
    $toTranslate = substr($script, $position, $end + strlen('</ol>') - $position);
    $scriptBuffer .= substr($script, $prevPosition, $position).vbet_translateHTMLFromTo($toTranslate, $forumLanguage, $_REQUEST['language'], $vbet_serie);
    ++$scriptIndex;
    $prevPosition = $end + strlen('</ol>');
    }
    $what[1] = $scriptBuffer.substr($script, $prevPosition);
    } else {
    $what[1] = vbet_getReEncoded($what[1]);
    }
    return vbet_addToReplacementsBufferNoReencode($what);
    }
    function vbet_addToReplacementsBufferNoReencode($what) {
    global $vbet_replacementsBuffer;
    $vbet_replacementsBuffer[] = $what[1];
    return '<vbet'.(count($vbet_replacementsBuffer)-1).'/>';
    }
    Last edited by vBET; 24-05-11 nan 16:35.

Paj 3 nan 3 FirstPremye 123

Tags pou sa a Thread

Posting Permissions

  • Ou Pouvwa pa Post fil nouvo
  • Ou Pouvwa pa Post replies
  • Ou Pouvwa pa Post atachman
  • Ou Pouvwa pa modifye posts ou
  •