I have tried two add on site map generators and they both throw up this error code
The two generators are the one by code monkey on hereWarning: Division by zero in /home/thespain/public_html/vbseo_sitemap/vbseo_sitemap_functions.php on line 172
And this one from
Is there or are there any obvious mistakes in their set up that can be easily rectified?PHP Code:<?
# vbSEO Google Sitemap Generator - vbclassified Add On.
# Written by Mike Weinand (http://www.thebubbler.com)
# Full HTTP path to your gallery root (including trailing forwardslash)
$classified_url = 'http://www.thespainforum.com/vbclassified.php';
# Priority you want to assign to the sitemap pages
$category_priority = 0.8;
$ad_priority = 0.5;
# How often you wish to flag for updates
$category_update = 'daily';
$ad_update = 'weekly';
# Tables
$categories_table = 'vb_vbclassified_category';
$ads_table = 'vb_vbclassified';
# DON'T EDIT PAST HERE #############################################
vbseo_add_url(
$classified_url, 0.9, gmdate("Y-m-d"), 'daily'
);
$categories = $db->query_read('SELECT categoryid FROM ' . $categories_table . ' WHERE display > 0');
while ($category = $db->fetch_array($categories))
{
$modified = gmdate("Y-m-d");
vbseo_add_url(
$classified_url . '?do=category&categoryid='.$category['categoryid'],
$category_priority, $modified, $category_update
);
}
$ads = $db->query_read('SELECT classifiedid, dateline FROM ' . $ads_table . ' WHERE active = 1 ');
while ($ad = $db->fetch_array($ads))
{
$modified = gmdate("Y-m-d", $ad['dateline']);
vbseo_add_url(
$classified_url . '?do=ad&id='.$ad['classifiedid'],
$ad_priority, $modified, $ad_update
);
}
?>



LinkBack URL
About LinkBacks






Reply With Quote