Sitemap Creator 1.5 SEO ON

Hey Jesse, I was just showing people that the mod was not working even by the poster of the original thread, however I’ve since got mine working after I uploaded sculptingstudio’s php code, note I have seo addon turned off because theres no proven research that having seo on/off actually does anything, works 1.3.5sp3, however it does say “

This XML file does not appear to have any style information associated with it. The document tree is shown below.”, I don’t know if this matters, google hasn’t rejected my sitemap, at least not yet…lol



UPDATE - appartently Google Loves this sitemap…

Property Status

Sitemap type Web

Format Sitemap

Submitted 31 minutes ago

Last downloaded by Google 22 minutes ago

Status OK

Total URLs in Sitemap 32

Indexed URLs in Sitemap Help Help

No data available. Please check back soon.

Sitemap errors and warnings

No errors or warnings found.


```php

//=======================================================================
// File: GOOGLE_SITEMAP.PHP
// Description: Google Sitemap Generator.
// Created: 2006-10-12
// Ver: $Id: google_sitemap.php 2 2006-10-12 00:0:00Z lsb $
//
// Copyright 2006 (c) RENS Management, LLC. All rights reserved.
//========================================================================

if ( !defined('IN_CSCART') ) { die('Access denied'); }

$products=$categories=array();
$categories_all=db_get_array("SELECT category_id FROM $db_tables[categories] WHERE membership_id=0 && avail='Y'");
$products_all=db_get_array("SELECT product_id FROM $db_tables[products] WHERE avail='Y'");
while (list(, $cats) = each($categories_all)) $categories[]=$cats['category_id'];
while (list(, $items) = each($products_all)) $products[]=$items['product_id'];

header("Content-Type: text/xml;charset=utf-8");
$lastmod = date("Y-m-d", time());
$siteurl = utf8_encode(htmlentities("$http_location"));
echo <<





$siteurl

$lastmod

daily

1.0

\n

START;



// process categories

foreach ($categories as $category) {

$link = utf8_encode(htmlentities(“$http_location/$index_script?$target_name=categories&category_id=$category”));

echo <<


$link

$lastmod

daily

0.5

\n

LINKS;

}



// process products

foreach ($products as $product) {

$link = utf8_encode(htmlentities(“$http_location/$index_script?$target_name=products&product_id=$product”));

echo <<


$link

$lastmod

daily

0.5

\n

LINKS;

}



echo <<




END;

exit;

?>

```

Well I don’t know how much it matters but the original posters code is not formatted correctly.



If I can remember correctly, when I upgraded to 135 some time ago I was receiving errors and being rejected by Google. After searching a pulling hair the only correction I needed to make to the original sitemap by sculptingstudio was the following in [COLOR=“blue”]BLUE[/COLOR]:




// process categories
foreach ($categories as $category) {
$link = utf8_encode(htmlentities("$http_location/$index_script?$target_name=categories&category_id=$category"));
echo <<
[COLOR="blue"]$siteurl/$link[/COLOR]
$lastmod
daily
0.5
\n
LINKS;
}

// process products
foreach ($products as $product) {
$link = utf8_encode(htmlentities("$http_location/$index_script?$target_name=products&product_id=$product"));
echo <<
[COLOR="Blue"]$siteurl/$link[/COLOR]
$lastmod
daily
0.5
\n
LINKS;
}

Well, for ****'s and grin’s I decided to go back with just [COLOR=“SeaGreen”]$link[/COLOR] and sure enough I got the same errors as way back when.






[QUOTE]Sitemap type Web

Format Sitemap

Submitted 24 minutes ago

Last downloaded by Google 12 minutes ago

Status Errors

Total URLs in Sitemap 1

Indexed URLs in Sitemap Help Help

1

Sitemap errors and warnings

Line Status Details

Details 13 Invalid URL

This is not a valid URL. Please correct it and resubmit. Help Help

URL:

Parent tag:

Tag:

Problem detected on: diagnostics-and-testing/air-bag-diagnostics.html

url

loc

Nov 13, 2008

Details 19 Invalid URL

This is not a valid URL. Please correct it and resubmit. Help Help

URL:

Parent tag:

Tag:

Problem detected on: shop-equipment/band-saws-stationary.html

url

loc

Nov 13, 2008

Details 25 Invalid URL

This is not a valid URL. Please correct it and resubmit. Help Help

URL:

Parent tag:

Tag:

Problem detected on: shop-equipment/lubrication-equipment/fluid-dispensing-fluid-handling.html

url

loc

Nov 13, 2008

Details 31 Invalid URL

This is not a valid URL. Please correct it and resubmit. Help Help

URL:

Parent tag:

Tag:

Problem detected on: cordless-power-tools/charging-batteries.html

url

loc

Nov 13, 2008

Details 37 Invalid URL

This is not a valid URL. Please correct it and resubmit. Help Help

URL:

Parent tag:

Tag:

Problem detected on: general-tools-and-supplies/measuring-instruments/bore-gauges.html

url

loc

Nov 13, 2008

Details 43 Invalid URL

This is not a valid URL. Please correct it and resubmit. Help Help

URL:

Parent tag:

Tag:

Problem detected on: air-power-tools/air-angle-grinders.html

url

loc

Nov 13, 2008

Details 49 Invalid URL

This is not a valid URL. Please correct it and resubmit. Help Help

URL:

Parent tag:

Tag:

Problem detected on: air-conditioning-service/a-c-r-r-r-machines-charging-scales.html

url

loc

Nov 13, 2008

Details 55 Invalid URL

This is not a valid URL. Please correct it and resubmit. Help Help

URL:

Parent tag:

Tag:

Problem detected on: chrome-sockets-and-drive-tools/bit-sockets-hex-torx-plug-sockets.html

url

loc

Nov 13, 2008

Details 61 Invalid URL

This is not a valid URL. Please correct it and resubmit. Help Help

URL:

Parent tag:

Tag:

Problem detected on: electric-power-tools/angle-grinders.html

url

loc

Nov 13, 2008

Details 67 Invalid URL

This is not a valid URL. Please correct it and resubmit. Help Help

URL:

Parent tag:

Tag:

Problem detected on: automotive-service/brake-service/brake-bleeding.html

url

loc

Nov 13, 2008[/QUOTE]

And when I put [COLOR=“SeaGreen”]$siteurl/$link[/COLOR] back in.




[QUOTE]Sitemap type Web

Format Sitemap

Submitted 35 minutes ago

Last downloaded by Google 23 minutes ago

Status OK

Total URLs in Sitemap 7798

Indexed URLs in Sitemap Help Help

1727

Sitemap errors and warnings

No errors or warnings found.[/QUOTE]

This mod is now an Addon, please refer to the new thread:

[thread=9171]ADDON: XML Sitemap 1.0[/thread]