มีปัญหากับบ้าน (allfreechips) และปุ่ม fourm ใน navbar ของฉัน เหล่านี้จะไม่ได้รับการ site.com/lang/ เพิ่ม เชื่อมโยงอื่น ๆ ทั้งหมดจะ ทำงานส่วน /lang/
ขอบคุณ
คริส
มีปัญหากับบ้าน (allfreechips) และปุ่ม fourm ใน navbar ของฉัน เหล่านี้จะไม่ได้รับการ site.com/lang/ เพิ่ม เชื่อมโยงอื่น ๆ ทั้งหมดจะ ทำงานส่วน /lang/
ขอบคุณ
คริส
แก้ไขอย่างรวดเร็วสำหรับปัญหานี้
- เปิดไฟล์ 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]).'"';
}
ปัญหานี้จะคงที่ในรุ่นถัดไป
ข้อความในส่วนแรกทะลุออก แต่แทนนี้เป็นการแก้ไขปัญหา
Code:$output = preg_replace_callback('#action="([^"]*)#', 'vbet_createURLForAddressNoReplaceAction', $output); $output = preg_replace_callback('#href="([^"]*)#', 'vbet_createURLForAddressNoReplaceHref', $output);
ไม่แน่ใจว่า ถ้า นี้เกิดจากการเปลี่ยนแปลงหรือสิ่งที่ ฉันไม่ได้สังเกตเห็น
ถ้าฉันหน้าการตรวจสอบเช่น
เชื่อมโยงไปยังภาษาอื่น ๆ ไม่ถูกต้องCode:http://www.allfreechips.com/no/casino_review/646/loco-panda-casino.html
ดูดัตช์ก็จะเพิ่ม phpBB2 / และ /nl และการรักษาไม่Code:http://www.allfreechips.com/phpBB2/no/nl/casino_review/646/loco-panda-casino.html
วิธีออกจากหลักสูตรที่เพิ่มเส้นทางเวทีและลังอีก
นี่คือปัญหาอื่นที่เกิดขึ้นหลังจากการแก้ไขปัญหาก่อนหน้านี้
แก้ไขอย่างรวดเร็วสำหรับปัญหานี้
- เปิดไฟล์ includes/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-15 ที่ 16:06.
แก้ไข ขอบคุณ
ฉันดีใจที่ฉันสามารถช่วยให้คุณ