Orijinalini görmek için tıklayınız: Çözülmüş Gezinti çubuğu Tek Link (homepahe ve forum) Linkleri sadece İngilizce ile ilgili
Benim gezinti çubuğu üzerinde ev (allfreechıps) ve kuruyoruz düğmeleri ile bir sorunu var, bu yeterli değil site.com/lang/ eklendi. Diğer tüm bağlantılar /lang/ bölümleri ile beklendiği gibi çalışması için görünür.
Teşekkürler
Chris
Marcin Kalak
24-07-15, 09:15
Bu sorun için hızlı bir düzeltme:
Dosya Aç includes/vbenterprisetranslator_functions.php
Kodu bulun:
$output = preg_replace_callback('#action="([^"]*)#s', 'vbet_createURLForAddressNoReplaceAction', $output);
$output = preg_replace_callback('#href="([^"]*)#s', 'vbet_createURLForAddressNoReplaceHref', $output);
Bunun için kodu değiştirin:
$output = preg_replace_callback('#action=["\']([^"\']*)["\']#s', 'vbet_createURLForAddressNoReplaceAction', $output);
$output = preg_replace_callback('#href=["\']([^"\']*)["\']#s', 'vbet_createURLForAddressNoReplaceHref', $output);
Kodu bulun:
function vbet_createURLForAddressNoReplaceAction($what) {
return 'action="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]);
}
function vbet_createURLForAddressNoReplaceHref($what) {
return 'href="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]);
}
Bunun için kodu değiştirin:
function vbet_createURLForAddressNoReplaceAction($what) {
return 'action="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]).'"';
}
function vbet_createURLForAddressNoReplaceHref($what) {
return 'href="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]).'"';
}
Bu sorun bir sonraki sürümde giderilecektir.
İlk bölümde metin biraz kötüydü, ama bu değiştirme sorunu düzeltme.
$output = preg_replace_callback('#action="([^"]*)#', 'vbet_createURLForAddressNoReplaceAction', $output);
$output = preg_replace_callback('#href="([^"]*)#', 'vbet_createURLForAddressNoReplaceHref', $output);
Eğer bu değişiklik neden olup olmadığından emin değil ya da farkında değil aslında
eğer bir inceleme sayfası gibi olursam
http://www.allfreechips.com/no/casino_review/646/loco-panda-casino.html
diğer diller için bağlantıları yanlıştır.
http://www.allfreechips.com/phpBB2/no/nl/casino_review/646/loco-panda-casino.html
PhpBB2/ /nl ekleme ve hiçbir tutmak için Hollandalı bakın
Bu ders, forum yolu ve başka bir lang ekleme yolu kapalı.
Marcin Kalak
24-07-15, 16:01
Bu önceki bir sorunu düzelttikten sonra yaşanan başka bir sorundur.
Bu sorun için hızlı bir düzeltme:
Dosya aç includes/vbenterprisetranslator_functions_url_tracking.php
Kodu bulun:
if ($vbulletin->options['vbenterprisetranslator_translationlinkstype']) {
return vbet_createURLForAddressNoReplaceSEO($language, $address) ;
}
$bookmark = strpos($address, '#');
Bunun için kodu değiştirin:
if ($vbulletin->options['vbenterprisetranslator_translationlinkstype']) {
if (preg_match('/\/('.VBET_LANGUAGESMATCH.')\//', $address)) {
return $address;
}
return vbet_createURLForAddressNoReplaceSEO($language, $address) ;
}
$bookmark = strpos($address, '#');
Bu sorunu bir sonraki sürümde giderilecektir. Karışıklık için özür dilerim.
Marcin Kalak
25-07-15, 18:06
Ben size yardımcı olabilir sevindim.
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.