This will index your vbClassified categories and ads.
Make a new file with this in it:
And then add that file to your addons directory as well as addons list in the AdminCP.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.thebubbler.com/forums/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