PHP Code:
if($vboptions['vbseo_sm_freq_tsmart'])
{
$dpassed = (time() - $threadrow['lastpost'])/86400;
if($dpassed<3)$freq = 'daily';
else if($dpassed<10)$freq = 'weekly';
else if($dpassed<100)$freq = 'monthly';
else $freq = 'yearly';
}else
$freq = $vboptions['vbseo_sm_freq_t'];
vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");
//additional code
$alanguages = array ('en');
if(!$archived) {
$strlenhost = strlen($vbseo_vars['bburl']."/");
$currentthreadurl = vbseo_url_thread($threadrow, 1, $archived);
foreach($alanguages as $language) {
$vbseo_stat['t']++;
$enchancedthreadurl = substr($currentthreadurl,0,$strlenhost). $language."/".substr($currentthreadurl,$strlenhost);
vbseo_add_url($enchancedthreadurl, $prior, $threadrow['lastpost'], $freq);
}
}
//end additional code
for($p=1; $p<=$totalpages; $p++)
{
$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
vbseo_url_thread($threadrow, $p, $archived),
vbseo_url_thread($threadrow, $p, $archived, true),
$prior,
$threadrow['lastpost'],
$freq
);
}
그 변경된 부분