Ou ka tou senpleman entegre vBET ak vBSEO Sitemap Generator (li se gratis) genyen ladan yo lyen ki mennen nan tradui paj ak CMS nan pwodwi Sitemap.
Si w te gen dosye ou deja edited, tanpri, Upload orijinal vèsyon
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ò).
Nan premye ou gen jwenn dosye vbseo_sitemap_functions_vbseo.php ou a nan
rasin fowòm -> vbseo_sitemap -> vbseo_sitemap_functions_vbseo.php
Louvri ak edit li ak nenpòt ki pwogram tèks-koreksyon
Sou nan konmansman an anpil jwenn liy sa a:
PHP Code:
global $vbulletin, $vbseo_vars, $vbseo_stat, $vboptions, $db, $forumcache, $bbuserinfo;
Epi li mete nan apre li fin, sa a:
PHP Code:
require_once(DIR. '/includes/vbenterprisetranslator_functions_vbseo.php'); $alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','pl','et','tl','fi','fr','gl','de','el', 'en','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');
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.
Epi jwenn liy sa a:
PHP Code:
vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");
pou entegre tradui fil
epi si w ap itilize SEO lyen sa vle di mete nan apre li fin:
PHP Code:
if(!$archived) { $strlenhost = strlen($vbseo_vars['bburl']."/");
$currenturl = vbseo_url_thread($threadrow, 1, $archived);
$currenturl_before = substr($currenturl,0,$strlenhost);
$currenturl_after = "/".substr($currenturl,$strlenhost);
$lastpost =& $threadrow['lastpost'];
global $alanguages;
foreach($alanguages as $language) {
vbseo_add_url($currenturl_before.$language.$currenturl_after, $prior, $lastpost, $freq); } }
oswa nan ka ou se PA lè l sèvi avèk lyen SEO sa vle di :
PHP Code:
if(!$archived) {
global $alanguages;
$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);
}
}
Pa sèvi ak tou de peyi yo!
**** Sa a yon pati nan solisyon se sèlman pou vBulletin nan Piblikasyon Suite divinò ****
Lè sa a, ou, ou gen jwenn liy sa yo de
PHP Code:
$prior = vbseo_sm_priority($vboptions['vbseo_sm_priority_cmssec'], $relp2);
PHP Code:
$prior = vbseo_sm_priority($vboptions['vbseo_sm_priority_cmsent'], $relp2);
epi si w ap itilize SEO lyen sa vle di mete apre tou de peyi yo:
PHP Code:
global $alanguages;
$strlenhost = strlen($vbseo_vars['bburl']."/");
$currenturl = vbseo_url_cms($drow);
$currenturl_before = substr($currenturl,0,$strlenhost);
$currenturl_after = "/".substr($currenturl,$strlenhost);
foreach($alanguages as $language) { $added_urls += vbseo_add_url($currenturl_before.$language.$currenturl_after, $prior, $drow['lastupdated'], $vboptions['vbseo_sm_freq_cms']); }
oswa nan ka ou se PA lè l sèvi avèk lyen SEO sa vle di kote yo apre chak nan yo:
PHP Code:
global $alanguages;
$strlenhost = strlen($vbseo_vars['bburl']."/");
$currentthreadurl = vbseo_url_cms($drow) . '?language=';
foreach($alanguages as $language) {
$added_urls += vbseo_add_url($currentthreadurl.$language, $prior, $drow['lastupdated'], $vboptions['vbseo_sm_freq_cms']); }
Pa sèvi ak tou de peyi yo (avèk yo epi san yo pa seo lyen)!
Fen koreksyon epi jwi li!
Bon chans!