Same problem as usually. You should start thinking easy, just provide FINISHED code for every need.
I try to edit it, but it doesnt work. Look how much ppl in this thread has problems, just make some samples like:
Sitemap without SEO links
Sitemap with SEO Links
Sitemap without SEO links, multiple pages
Sitemap with SEO Links, multiple pages
Would save you alot of time.
How i understand your tutorial i edited the .php this way:
Code:
vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");
$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
//additional code
require_once(DIR. '/includes/vbenterprisetranslator_functions_vbseo.php');
$alanguages = array ('en','fr');
if(!$archived) {
$strlenhost = strlen($vbseo_vars['bburl']."/");
$currentthreadurl = vbseo_url_thread($threadrow, %p, $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
for($p=1; $p<=$totalpages; $p++)
But it isnt working...
What problems i found?
1.) FIND "vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");"
This string doesnt exist. Theres "only" "vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");"
If i would add it where you says it breaks the code.
2.) other steps are okay and understandable.
3.) OPTIONAL:
If you want to add to sitemap also links for other thread pages (if thread have several pages), then additional code from last step must be added in other place - BEFORE:
PHP Code:
$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
Also in this additional code you have to change 1 to $p.
This is absolutly not understandable. I dont know what to do. I cant understand it simply. Just clarify what and where...