Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads vBET5 Test

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 5 of 5

Thread: Long posts and error vbet_containsSeparated

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    6

    Default Long posts and error vbet_containsSeparated

    Text automatically translated from: Polish to: English
    Translated text
    Information from Users: Here you have the errors on the forum - Page 236

    When using longer fastings appear error:
    Code:
    Catchable fatal error: Argument 3 passed to vbet_containsSeparated() must be an instance of int, integer given, called in /usr/local/www/apache24/data/forum.alfaholicy.org/includes/vbenterprisetranslator_functions_detection.php on line 158 and defined in /usr/local/www/apache24/data/forum.alfaholicy.org/includes/vbenterprisetranslator_functions_detection.php on line 173
    In file vbenterprisetranslator_functions_detection.php marked as a comment the following lines:
    Code:
    //if(vbet_containsSeparated($message, $ignoredLen, $index)) {^M
    //$message = substr_replace($message, ''.$ignored.'' $index, $ignoredLen);^M //$index += VBET_NOTRANSLATE_LENGTH;^M //}^M
    The solution helped but I do not know whether or not oznaczylem comments something important?
    Original text

  2. #2
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    Aug 2012
    Posts
    480

    Default

    Text automatically translated from: Polish to: English
    Translated text
    You zakomentowałeś wrapping words/phrases from incoming messages in notranslate bbcode. If your file vbenterprisetranslator_functions_detection.php is surely the current?
    This function should be as follows:
    PHP Code:
                    if(vbet_containsSeparated($message,$ignoredLen$index)) {
                        
    $message substr_replace($message'[notranslate]'.$ignored.'[/notranslate]'$index$ignoredLen);
                        
    $index += VBET_NOTRANSLATE_LENGTH;
                    } 
    You can try to download the latest vBET and update the file (i see that you are using the latest version). If you do not ignore words/operative part in AdminCP->vBET->Translation Options->Ignored words/sentences It then this feature is not theoretically you need.
    Original text
    Last edited by Marcin Kalak; 18-05-17 at 15:49.

  3. #3
    Junior Member
    Join Date
    May 2011
    Posts
    6

    Default

    Text automatically translated from: Polish to: English
    Translated text
    Unfortunately I Ignore words. Because instead of the Alfa Romeo translators me Alpha Romeo. How to do this to be ok?

    Before purchasing and installing the latest version (a few days ago) used free version. Can therefore such pot plants?
    Original text

  4. #4
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    Aug 2012
    Posts
    480

    Default

    Text automatically translated from: Polish to: English
    Translated text
    The best download again the latest version vBET and all the files from a folder Upload Replace them on the server .
    Original text

  5. #5
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    Aug 2012
    Posts
    480

    Default

    Text automatically translated from: Polish to: English
    Translated text
    To resolve this issue:
    1) open file: includes/vbenterprisetranslator_functions_detection.php
    2) Find the line:
    PHP Code:
    function vbet_containsSeparated($text$ignoredLenint $index) { 
    3) Replace the:
    PHP Code:
    function vbet_containsSeparated($text$ignoredLen$index) { 
    This change will be implemented in the next release vBET. Please note that to wrappers old words in marker [notranslate) use the option AdminCP->vBET Tools->Opaque Ignored Words.
    Original text
    Last edited by Marcin Kalak; 27-05-17 at 09:05.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33