View Full Version : vBET 4.4.6 and 3.5.4 Released

12-01-12, 04:24
Hello :)

Today we have bug fixing releases for 3.x and 4.x. Also some little improvements - details below.


Guest Cache active also for logged users on Archive pages.
We figured our that archive looks same no matter what privileges users have. So we can use here Full File Guest Cache. In case if it is not appropriate for your forum you can disable it by Admin CP -> vBET Cache -> Guest Cache -> Full archive Guest Cache
Validation for some vBET options
This will be mostly helpful for new users. vBET validates some configuration parameters set in Admin CP.

Bugs Corrected:

Apertium errors recognition (http://www.vbenterprisetranslator.com/forum/vbet4-troubleshooting/2715-unable-translate-thread.html#post11513)
Microsoft errors recognition (http://www.vbenterprisetranslator.com/forum/troubleshooting/2636-still-getting-blank-translations-2.html#post11258)

18-01-12, 17:17
Here is an additonal quickfix for users with PHP version < 5.2.0. If you have newer version of PHP than 5.2.0 instaled on your server, you don't have to make any changes.

In file:

forum root -> includes -> vbenterprisetranlator_class_translator.php

Find (it should begin near line 472) :

$token = json_decode (curl_exec($obj_connection));
self::$token_ttl = time() + ($token->{'expires_in'});
self::$token = 'Authorization: Bearer '.$token->{'access_token'};
return 'Authorization: Bearer '.$token->{'access_token'};

and replace it with:

$fulltoken = curl_exec($obj_connection);
preg_match('/{"access_token":"(.*?)"/', $fulltoken, $token);
preg_match('/"expires_in":"(.*?)"/', $fulltoken, $expires);
self::$token_ttl = time() + $expires[1];
self::$token = 'Authorization: Bearer '.$token[1];
return 'Authorization: Bearer '.$token[1];

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
vBET 4.9.99 brings automatic translations