Veure la Versió Completa: Resolt Només enllaços a navbar (homepahe i fòrum) enllaços són exclusivament en anglès relacionades amb
Tinc un problema amb l'habitatge (allfreechips) i fourm botons en el meu navbar, aquests no estan rebent l'site.com/lang/ afegeix. Tots els altres enllaços apareixen per treballar com s'espera amb el /lang/ seccions.
Gràcies
Chris
Marcin Kalak
24-07-15, 09:15
Ràpidament fixar per aquest assumpte:
L'arxiu obert inclou/vbenterprisetranslator_funcions.php
Trobar codi:
$output = preg_replace_callback('#action="([^"]*)#s', 'vbet_createURLForAddressNoReplaceAction', $output);
$output = preg_replace_callback('#href="([^"]*)#s', 'vbet_createURLForAddressNoReplaceHref', $output);
Reemplaçar-lo a codi:
$output = preg_replace_callback('#action=["\']([^"\']*)["\']#s', 'vbet_createURLForAddressNoReplaceAction', $output);
$output = preg_replace_callback('#href=["\']([^"\']*)["\']#s', 'vbet_createURLForAddressNoReplaceHref', $output);
Trobar codi:
function vbet_createURLForAddressNoReplaceAction($what) {
return 'action="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]);
}
function vbet_createURLForAddressNoReplaceHref($what) {
return 'href="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]);
}
Reemplaçar-lo a codi:
function vbet_createURLForAddressNoReplaceAction($what) {
return 'action="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]).'"';
}
function vbet_createURLForAddressNoReplaceHref($what) {
return 'href="'.vbet_createURLForAddressNoReplace($_REQUEST['language'], $what[1]).'"';
}
Aquest assumpte serà fixat en l'alliberament pròxim.
El text en la primera secció era una mica fora, però reemplaçant aquest està corregint l'assumpte.
$output = preg_replace_callback('#action="([^"]*)#', 'vbet_createURLForAddressNoReplaceAction', $output);
$output = preg_replace_callback('#href="([^"]*)#', 'vbet_createURLForAddressNoReplaceHref', $output);
No segur si això és causat pel canvi o somthing no he notat
Si sóc en una pàgina de revisió com
http://www.allfreechips.com/no/casino_review/646/loco-panda-casino.html
Els enllaços a altres llengües són incorrect.
http://www.allfreechips.com/phpBB2/no/nl/casino_review/646/loco-panda-casino.html
Veure per dutch està afegint phpBB2/ i /nl i mantenint el no
Això és manera fora naturalment afegint el camí de fòrum i un altre lang
Marcin Kalak
24-07-15, 16:01
Això és un altre assumpte que va ocórrer després de corregir un assumpte anterior.
Ràpidament fixar per aquest assumpte:
L'arxiu obert inclou/vbenterprisetranslator_funcions_url_seguint.php
Trobar codi:
if ($vbulletin->options['vbenterprisetranslator_translationlinkstype']) {
return vbet_createURLForAddressNoReplaceSEO($language, $address) ;
}
$bookmark = strpos($address, '#');
Reemplaçar-lo a codi:
if ($vbulletin->options['vbenterprisetranslator_translationlinkstype']) {
if (preg_match('/\/('.VBET_LANGUAGESMATCH.')\//', $address)) {
return $address;
}
return vbet_createURLForAddressNoReplaceSEO($language, $address) ;
}
$bookmark = strpos($address, '#');
Aquest assumpte serà fixat en l'alliberament pròxim. Trist per la confusió.
Marcin Kalak
25-07-15, 18:06
Sóc feliç et podria ajudar.
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.