Ok, Mwen te finalman kalkile sa a soti yon sèl. Mwen yon ti jan sekarte soti nan enstriksyon yo afiche, men li te travay tankou yon cham:
1. Added sa a takses:
Code:
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$ index.php?language=$1 [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ $2?language=$1 [L,QSA]
2. Added sa a rele fonksyon nan fen ekzekisyon reviewpost:
PHP Code:
if(@include_once(DIR . '/includes/vbenterprisetranslator_functions_hooks.php'))
{
vbet_global_complete($output);
}
3. edited Reoryantasyon vbenterprisetranslator_functions_redirect.php ak moun andikape pou anyè koutim:
PHP Code:
foreach (explode("\n",$vbulletin->options['vbet_outside_dirs']) AS $folder)
{
$folder = trim($folder);
if (stripos($url, $folder) !== false)
{
return;
}
}
4. chanje / da / lensreviews lensreviews / / / da / a, ansanm ak ranje URL drapo
te ajoute fonksyon ki anba la a yo bay jenerasyon URL:
PHP Code:
function vbet_externalConsensus($address, $language)
{
global $vbulletin;
foreach (explode("\n",$vbulletin->options['vbet_outside_dirs']) AS $folder)
{
$folder = trim($folder);
if (stripos($address, $folder) !== false)
{
$address = str_replace(array('/forums/',"/{$_REQUEST['language']}/"),array('/','/'), $address);
return str_replace("/$folder/","/$folder/$language/", $address);
}
}
return false;
}
Gen se pwobableman yon jan ki pi entelijan fè # 4, men sa a te travay! Mwen trè kontan, menm jan seksyon yo ki revize jwenn prèske 1,000,000 pageviews yon mwa, yon ak tradiksyon ap kondi menm plis vizitè yo.
Demo: Pentax Anmeldelser - Pentax Lens Anmeldelser Og, omfattende baz done