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;
?>
```