重要:此頁面會使用Cookie (cookies). 使用本網站不關閉瀏覽器中的cookie,即表示您同意使用它。
現在購買! 特點 下載

賺錢與我們聯繫!

如果您想要開始賺錢與貝特聯接 聯盟計畫。
結果 177

主題: 只有在巡覽列 (homepahe 和論壇) 連結的連結是只有英語相關

  1. #1
    高級會員
    註冊日期
    2010年6月
    帖子
    276

    Default 只有在巡覽列 (homepahe 和論壇) 連結的連結是只有英語相關

    我的巡覽列上有家 (allfreechips) 和位按鈕的問題,這些都得不到補充說: site.com/lang/。 所有其他連結似乎與 /lang/ 部分正常工作。

    謝謝
    克里斯

  2. #2
    禁止
    註冊日期
    2012 年 8 月
    帖子
    481

    Default

    快速修復此問題:
    • 打開的檔 includes/vbenterprisetranslator_functions.php
    • 查找代碼:
      PHP Code:
      $output preg_replace_callback('#action="([^"]*)#s''vbet_createURLForAddressNoReplaceAction'$output);
      $output preg_replace_callback('#href="([^"]*)#s''vbet_createURLForAddressNoReplaceHref'$output); 
    • 替換代碼:
      PHP Code:
      $output preg_replace_callback('#action=["\']([^"\']*)["\']#s''vbet_createURLForAddressNoReplaceAction'$output);
      $output preg_replace_callback('#href=["\']([^"\']*)["\']#s''vbet_createURLForAddressNoReplaceHref'$output); 
    • 查找代碼:
      PHP Code:
      function vbet_createURLForAddressNoReplaceAction($what) {
      return 
      'action="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]);
      }
      function 
      vbet_createURLForAddressNoReplaceHref($what) {
      return 
      'href="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]);

    • 替換代碼:
      PHP Code:
      function vbet_createURLForAddressNoReplaceAction($what) {
      return 
      'action="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]).'"';
      }
      function 
      vbet_createURLForAddressNoReplaceHref($what) {
      return 
      'href="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]).'"';


    此問題將在下一版本中修復。

  3. #3
    高級會員
    註冊日期
    2010年6月
    帖子
    276

    Default

    第一節文字有點冷淡,但取代這糾正這一問題。

    Code:
    $output = preg_replace_callback('#action="([^"]*)#', 'vbet_createURLForAddressNoReplaceAction', $output);
    $output = preg_replace_callback('#href="([^"]*)#', 'vbet_createURLForAddressNoReplaceHref', $output);

  4. #4
    高級會員
    註冊日期
    2010年6月
    帖子
    276

    Default

    不知道是否這造成的變化或東西我沒有注意到

    如果我如審查網頁上

    Code:
    http://www.allfreechips.com/no/casino_review/646/loco-panda-casino.html
    連結到其他語言不正確。

    Code:
    http://www.allfreechips.com/phpBB2/no/nl/casino_review/646/loco-panda-casino.html
    請參閱為荷蘭人它添加 phpBB2 / /nl 和保持無
    這是從課程添加論壇路徑和另一郎

  5. #5
    禁止
    註冊日期
    2012 年 8 月
    帖子
    481

    Default

    這是發生在更正以前的問題之後的另一個問題。
    快速修復此問題:
    • 打開的檔 包括/ vbenterprisetranslator_functions_url_tracking.php
    • 查找代碼:
      PHP Code:
      if ($vbulletin->options['vbenterprisetranslator_translationlinkstype']) {
      return 
      vbet_createURLForAddressNoReplaceSEO($language$address) ;
      }
      $bookmark strpos($address'#'); 
    • 替換代碼:
      PHP Code:
      if ($vbulletin->options['vbenterprisetranslator_translationlinkstype']) {
      if (
      preg_match('/\/('.VBET_LANGUAGESMATCH.')\//'$address)) {
      return 
      $address;
      }
      return 
      vbet_createURLForAddressNoReplaceSEO($language$address) ;
      }
      $bookmark strpos($address'#'); 

    此問題將在下一版本中修復。抱歉為混亂。
    最後編輯者 Marcin Kalak; 24-07-1516:06.

  6. #6
    高級會員
    註冊日期
    2010年6月
    帖子
    276

    Default

    更正謝謝

  7. #7
    禁止
    註冊日期
    2012 年 8 月
    帖子
    481

    Default

    我很高興我能幫助你。

標籤這個主題

發帖權限

  • 可能不會 發表新主題
  • 可能不會 發表回复
  • 可能不會 上傳附件
  • 可能不會 編輯您的文章
  •