צפה בגרסא המלאה: נפתר רק קישורים קישורים בסרגל הניווט (homepahe ופורום) הם רק באנגלית הקשורים
יש לי בעיה עם הבית (allfreechips) fourm הלחצנים ' ' על בסרגל הניווט שלי, אלה אינם מקבלים את site.com/lang/ הוסיף. כל הקישורים אחרים מופיעים לפעול כצפוי עם הסעיפים /lang/.
תודה
כריס
Marcin Kalak
24-07-15, 09:15
תיקונים מהירים עבור בעיה זו:
פתח קובץ includes/vbenterprisetranslator_functions.php
מצא את הקוד:
$output = preg_replace_callback('#action="([^"]*)#s', 'vbet_createURLForAddressNoReplaceAction', $output);
$output = preg_replace_callback('#href="([^"]*)#s', 'vbet_createURLForAddressNoReplaceHref', $output);
להחליף אותו בקוד:
$output = preg_replace_callback('#action=["\']([^"\']*)["\']#s', 'vbet_createURLForAddressNoReplaceAction', $output);
$output = preg_replace_callback('#href=["\']([^"\']*)["\']#s', 'vbet_createURLForAddressNoReplaceHref', $output);
מצא את הקוד:
function vbet_createURLForAddressNoReplaceAction($what) {
return 'action="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]);
}
function vbet_createURLForAddressNoReplaceHref($what) {
return 'href="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]);
}
להחליף אותו בקוד:
function vbet_createURLForAddressNoReplaceAction($what) {
return 'action="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]).'"';
}
function vbet_createURLForAddressNoReplaceHref($what) {
return 'href="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]).'"';
}
בעיה זו תתוקן במהדורה הבאה.
טקסט על החלק הראשון היה קצת חופש, אבל החלפת זה הוא תיקון בעיית ה.
$output = preg_replace_callback('#action="([^"]*)#', 'vbet_createURLForAddressNoReplaceAction', $output);
$output = preg_replace_callback('#href="([^"]*)#', 'vbet_createURLForAddressNoReplaceHref', $output);
אני לא בטוח אם זה נגרם עקב השינוי או משהו לא שמתי לב
אם אני בעמוד סקירה כגון
http://www.allfreechips.com/no/casino_review/646/loco-panda-casino.html
הקישורים לשפות אחרות שגויים.
http://www.allfreechips.com/phpBB2/no/nl/casino_review/646/loco-panda-casino.html
ראה הולנדית זה היה מוסיף phpBB2 / /nl ואת שומר לא
. ככה את הקורס הוספת הנתיב פורום ולאנג אחר
Marcin Kalak
24-07-15, 16:01
זוהי בעיה נוספת, שהתרחשה לאחר תיקון בעיית הקודם.
תיקונים מהירים עבור בעיה זו:
פתח קובץ includes/vbenterprisetranslator_functions_url_tracking.php
מצא את הקוד:
if ($vbulletin->options['vbenterprisetranslator_translationlinkstype']) {
return vbet_createURLForAddressNoReplaceSEO($language, $address) ;
}
$bookmark = strpos($address, '#');
להחליף אותו בקוד:
if ($vbulletin->options['vbenterprisetranslator_translationlinkstype']) {
if (preg_match('/\/('.VBET_LANGUAGESMATCH.')\//', $address)) {
return $address;
}
return vbet_createURLForAddressNoReplaceSEO($language, $address) ;
}
$bookmark = strpos($address, '#');
בעיה זו תתוקן במהדורה הבאה. מצטער על הבלבול.
Marcin Kalak
25-07-15, 18:06
אני שמח שאני יכול לעזור לך.
Automatic Translations (Powered by Google, Microsoft®,
Yandex, SDL Language Cloud, IBM Watson and Apertium):
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.