Topic: SEO and google sitemap

found that SEO breaks google sitemap.

I changed update.php to fix this problem :

if ($set_google_generate)
{
$writeStr="";
if ($set_validation == 1) { $val_string2 = " where ad_is_validated = 1"; } else { $val_string2 = ""; }
$writeStr.="\n";

$sql_links = "select ad_id, ad_title_clean from $ads_tbl $val_string2";
$result = q ($sql_links);

while($row=mysql_fetch_array($result))
{
$ad_id = $row["ad_id"];
$title = $row["ad_title_clean"];
$writeStr.="\n";
$writeStr.="weekly\n";
$writeStr.="http://".$set_url."/" .$ad_id."-".$title.".htm"."\n";
//$writeStr.="http://".$set_url."/" .linkDetail($ad_id)."\n";
$writeStr.="\n";
}
$writeStr.="\n\n";

$fp = fopen("images/google.xml","w+");
fwrite($fp,$writeStr);
fclose($fp);
}

Thumbs up Thumbs down

Re: SEO and google sitemap

What is the question?