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

Earn with us!

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

Thread: Forum Blocks still buggy and also not translated

  1. #1

    Default Forum Blocks still buggy and also not translated

    Michal,

    The forum blocks are still buggy. The end of the thread title is still showing [/langtitle], and the thread is showing it in the original posters language.

    Example:



    Thread TEXT should be in user viewing language?

    Using vBET that came out today (4.2.2)

  2. #2
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    I see it and I know the reason without code checking. Yes - it is our bug. vBET is checking for '...' in titles to solve titles in other languages which where cut (correction of bug: http://www.vbenterprisetranslator.co...r-problem.html). We miss hat user can set there '...' himself

    It seems that correcting one bug we created another one - sorry for tat miss. We will take care about this. Please note that it will happen only with titles in other languages having originally '...' at the beginning. We will give quick fix for that here.

    About TEXT not in viewed language - this is unfortunately out of our scope at this moment - please see here for explanation: http://www.vbenterprisetranslator.co....html#post2735

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

    Default

    Corrected. For quick fix please:
    1. Edit file /inclues/vbenterprisetranslator_functions_bbcode.html
    2. Find:
    PHP Code:
    if ($endShorted && $endShorted $end) {
    $end $endShorted 3;
    $toParse substr($title,$start,$end $start).'[/langtitle]'
    3. REPLACE by:
    PHP Code:
    if ($endShorted && $endShorted $end) {
    $nextStart strpos($title'[langtitle='$endShorted);
    if (!
    $nextStart || $nextStart $end) {
    $toParse substr($title,$start,$end $start);
    } else {
    $end $endShorted 3;
    $toParse substr($title,$start,$end $start).'[/langtitle]';


  4. #4

    Default

    Quote Originally Posted by vBET View Post
    Corrected. For quick fix please:
    1. Edit file /inclues/vbenterprisetranslator_functions_bbcode.html
    2. Find:
    PHP Code:
    if ($endShorted && $endShorted $end) {
    $end $endShorted 3;
    $toParse substr($title,$start,$end $start).'[/langtitle]'
    3. REPLACE by:
    PHP Code:
    if ($endShorted && $endShorted $end) {
    $nextStart strpos($title'[langtitle='$endShorted);
    if (!
    $nextStart || $nextStart $end) {
    $toParse substr($title,$start,$end $start);
    } else {
    $end $endShorted 3;
    $toParse substr($title,$start,$end $start).'[/langtitle]';

    Not working... here is the whole block

    PHP Code:
    if (false === $end) {
    $endShorted strpos($title'...'$start);

        if (
    $endShorted && $endShorted $end) {
            
    $nextStart strpos($title'[langtitle='$endShorted);
            if (!
    $nextStart || $nextStart $end) {
                
    $toParse substr($title,$start,$end $start);
            } else {
                
    $end $endShorted 3;
                
    $toParse substr($title,$start,$end $start).'[/langtitle]';
            }  
        } else {
            break;
        }
    } else {
        
    $end += 12;


  5. #5
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    You used it in wrong place... Please undo those changes and use it in appropriate place. Whole block should be:
    PHP Code:
    if (!$toParse) {
    $endShorted strpos($title'...'$start);
    if (
    $endShorted && $endShorted $end) {
    $nextStart strpos($title'[langtitle='$endShorted);
    if (!
    $nextStart || $nextStart $end) {
    $toParse substr($title,$start,$end $start);
    } else {
    $end $endShorted 3;
    $toParse substr($title,$start,$end $start).'[/langtitle]';
    }
    } else {
    $toParse substr($title,$start,$end $start);
    }            


    And this is block just after this one which you changed.

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
  •