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 2 of 2

Thread: Opaque word in links - quick fix

  1. #1
    Banned
    Join Date
    Aug 2012
    Posts
    481

    Default Opaque word in links - quick fix

    A new feature opaque word for titles caused the issue in links. Quick will fix for the issue is:
    1. Open file includes/vbenterprisetranslator_functions_detection.php
    2. Find code:
      PHP Code:
      $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,"[langtitle=")) && (!strstr($help,"[/langtitle]"))) {
      $title substr_replace($title'[/langtitle]'.$ignored.'[langtitle='.$language.']'$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."] [/langtitle]"" "$title); 
    3. Add before the code:
      PHP Code:
      /* 
    4. Add after the code:
      PHP Code:
      */ 

    This will only turn off opaque word for titles. In next release we will fix this issue.
    Last edited by Marcin Kalak; 17-10-12 at 19:06.

  2. #2
    Banned
    Join Date
    Aug 2012
    Posts
    481

    Default

    Previous quick fix turn off opaque word for titles.
    This quick fix corrects a issue with opaque word for title:
    1. Open file includes/vbenterprisetranslator_functions_bbcode.php
    2. Find code:
      PHP Code:
      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_listfalse);
      $result $parser->do_parse($title101000);
      unset(
      $parser);
      if (
      $removeNotTranslateSection) {
      $start 0;
      $result =& vbet_replaceFirstOffset('<!--vBET_SNTA--><!--vBET_NRE-->'''$result$start);
      $result =& vbet_replaceFirstOffset('<!--vBET_ENTA-->'''$result$start);
      if (
      $andUunhtmlSpecialChars) {
      $result =& unhtmlspecialchars($resulttrue);
      }
      }
      return 
      $result;

    3. Replace it to code:
      PHP Code:
      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_listfalse);
      $result $parser->do_parse($title101000);
      unset(
      $parser);
      if (
      $removeNotTranslateSection) {
      $start 0;
      $result =& str_replace(array('<!--vBET_SNTA--><!--vBET_NRE-->''<!--vBET_ENTA-->'), ''$result);
      if (
      $andUunhtmlSpecialChars) {
      $result =& unhtmlspecialchars($resulttrue);
      }
      }
      return 
      $result;


    This issue will be fixed in the next release.

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
  •