Quote Originally Posted by wowglider.de View Post
Text automatically translated from: German to: English
Translated text
I've really tried to follow the readme and instructions, but because of poor English I have found is obviously something wrong, I have my vbseo_sitemap_functions.php well-edited wrong.

Please help me change the file to correctly deal ...
Original text

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 ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi','fr','gl','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, $p, $archived); 
  $currentthreadurl_before = substr($currentthreadurl,0,$strlenhost); 
  $currentthreadurl_after = "/".substr($currentthreadurl,$strlenhost); 
  $lastpost =& $threadrow['lastpost']; 
  $vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls($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++)
    			{
    			$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
    			);
				
				}

    			if($showpost)
    			{

 ...
Text automatically translated from: German to: English
Translated text

This is the error that occurs when my Google Sitemap.xml's opens:

Status Details
Invalid URL
This is not a valid URL. Correct the URL and submit the data again.
URL:
http://array
Parent tag: url
Tag: loc
Problem identified on: 19/06/2010


Thank you!
Original text
Please note that in readme.html there is no Sitemap Generator description included. Integration instructions for Sitemap Generator are here: http://www.vbenterprisetranslator.co...tegration.html

As I see you have code described there but you have it wrong. Please undo those changes and copy our code first. Then check is it working. And after that if you want do optional modification described at the end of first post. And please make sure you do it right. Now it is wrong. According to optional modification step - you have to put our code in other place (before described line) and after that do small modification. Now you just changed one of our code line not as it was described.

Also - if Google cannot retrieve your sitemaps at all then make sure that you have appropriately set your .htaccess file. Please check integration instructions again - sitemap rule must be placed before vBET rules. If you are not sure about it - please just post here whole your .htaccess file and we will verify it

Please note that I do not know what do you mean by your last comment from last post here. Please describe it more if it is relevant

PS.
After we solve your issues this thread will be merged with Sitemap Generator integration thread. It stays here now only to make you easier to find it in place where you expect it, but we already have thread for Sitemap Generator integration issues.