Ou kapab senpleman entegre vBET ak vBSEO Sitemap dèlko (li se gratis) Genyen ladan yo lyen ki mennen nan paj tradui nan pwodwi Sitemap.
Tanpri sonje byen ke enstriksyon ki anba a pral pèmèt ou ajoute nan lyen Sitemap ou a pou fil tradui paj. Paske nan rezon ki fè pèfòmans sa yo lyen yo pa pral tradui - pral gen sèlman te ajoute postal lang. Google ap jwenn reyèl paj kanmenm depi w ap jwenn 301 redireksyon. Tanpri note ke se pa pi bon apwòch - Google pwefere gen lyen final nan Sitemap pa redireksyon yon sèl, men fòse tradiksyon nan dè milye lyen nan tout lang nan an menm tan kapab touye sèvè ou oswa ou ka threated by Google kòm atak (si lyen yo pa cached ankò).
Si w gen nenpòt ladrès pwogramasyon PHP ou ka modifye enstriksyon ki anba a sipòte tou nan lòt pati nan Sitemap - pa sèlman fil URL. Solisyon ki anba a pral ajoute tradui lyen sèlman pou paj premye nan fil.
Entegrasyon enstriksyon:
Ou jis bezwen modifye yon dosye: vbseo_sitemap_functions.php nan vbseo_sitemap anyè.
Jwenn:
PHP Code:
vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");
Ak kote apre li fin...
Pou SEO lyen
PHP Code:
//additional code
require_once(DIR. '/includes/vbenterprisetranslator_functions_vbseo.php');
$alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi','fr','gl','de','el','iw','hi','hu','is','id','ga','it','ja','ko','lv','lt','mk','ms','mt','no','fa','pt','ro','ru','sr','sk','sl','es','sw','sv','zh-TW','th','tr','uk','vi','cy','yi');
if(!$archived) {
$strlenhost = strlen($vbseo_vars['bburl']."/");
$currentthreadurl = vbseo_url_thread($threadrow, 1, $archived);
$currentthreadurl_before = substr($currentthreadurl,0,$strlenhost);
$currentthreadurl_after = "/".substr($currentthreadurl,$strlenhost);
$lastpost =& $threadrow['lastpost'];
$vbseo_stat['t'] += sizeof($alanguages);
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl_before.$language.$currentthreadurl_after, $prior, $lastpost, $freq);
}
}
//end additional code
REMAK: RETIRE KÒD default lang ou nan $ Alanguages
Epitou si ou andikape kèk lang nan panèl opsyon ou gen efase kòd li yo tou.
Pou lyen ak lang = (PA sèvi avèk izolwa - se sèlman ki apwopriye pou tip lyen ou)
PHP Code:
//additional code
require_once(DIR. '/includes/vbenterprisetranslator_functions_vbseo.php');
$alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi','fr','gl','de','el','iw','hi','hu','is','id','ga','it','ja','ko','lv','lt','mk','ms','mt','no','fa','pt','ro','ru','sr','sk','sl','es','sw','sv','zh-TW','th','tr','uk','vi','cy','yi');
if(!$archived) {
$currentthreadurl = vbseo_url_thread($threadrow, 1, $archived) . '&language=';
$vbseo_stat['t'] += sizeof($alanguages);
$lastpost =& $threadrow['lastpost'];
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl.$language, $prior, $lastpost, $freq);
}
}
//end additional code
REMAK: RETIRE KÒD default lang ou nan $ Alanguages
Epitou si ou andikape kèk lang nan panèl opsyon ou gen efase kòd li yo tou.
************************************************** ******************************
OCHWA:
Si ou vle pou ajoute pou Sitemap tou lyen pou paj fil lòt (si fil gen plizyè paj), yo dwe Lè sa a, anplis postal soti nan etap dènye dwe ajoute nan lòt kote - ANVAN:
PHP Code:
$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
Nan kòd supplémentaires sa a nou gen tou pou chanje"1"a"$ P".