OK, tá mé ar deireadh figured seo amach amháin. Imigh mé beagán ó na treoracha sa phost, ach d'oibrigh sé mar a charm:
1. Added seo a htaccess:
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. Cuireadh glaoch fheidhm seo go dtí deireadh an forghníomhú reviewpost:
PHP Code:
if(@include_once(DIR . '/includes/vbenterprisetranslator_functions_hooks.php'))
{
vbet_global_complete($output);
}
3. atreorú vbenterprisetranslator_functions_redirect.php agus daoine faoi mhíchumas in eagar le haghaidh saincheaptha eolaire:
PHP Code:
foreach (explode("\n",$vbulletin->options['vbet_outside_dirs']) AS $folder)
{
$folder = trim($folder);
if (stripos($url, $folder) !== false)
{
return;
}
}
4. a athrú / da / lensreviews / a / lensreviews / da /, agus a shocrú URLanna bratach
chur leis an fheidhm seo a leanas go glúin 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;
}
Is dócha go bhfuil bealach níos cliste a dhéanamh # 4, ach tá sé seo d'oibrigh! Tá mé an-sásta, de réir mar a fháil ar an ailt athbhreithniú a dhéanamh ar beagnach 1,000,000 pageviews sa mhí, agus beidh cuairteoirí tiomáint aistriúcháin fiú níos mó.
Demo: Pentax Anmeldelser - Pentax Lionsa Anmeldelser og omfattende bunachar sonraí