I've just noticed calendars don't appear to be supported. Would it be possible to include them?
Thanks.
Hugh
This is a discussion on calendars within the Sitemap Features Archive forums, part of the vBulletin Links & Resources category; I've just noticed calendars don't appear to be supported. Would it be possible to include them? Thanks. Hugh...
I've just noticed calendars don't appear to be supported. Would it be possible to include them?
Thanks.
Hugh
You can use Custom Rewrite Rules to rewrite calendar URLs (there are some CRRs included with vBSEO for it, you should just uncomment them in vBSEO CP).
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Adding those CRRs is one of the first things I did when I installed the product. I still think it would be useful to add the calendar to the sitemap generator, it's an important application for a lot of forum owners...
Ah, I see. Currently you can only add the URLs manually in extra-urls.txt file to include them in sitemap.
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Any chance of this being a feature of future versions?
Hello,
I've created a small add-on for that. Please create vbseo_sm_calendar.php file in vbseo_sitemap/addons/ folder:and then add "vbseo_sm_calendar.php" in addons list in vB admincp->vBSEO Sitemap Generator options.PHP Code:<?php
/******************************************************************************************
* vBSEO Google/Yahoo Sitemap Generator for vBulletin v3.x.x by Crawlability, Inc. *
*-----------------------------------------------------------------------------------------*
* *
* Copyright й 2005-2008, Crawlability, Inc. All rights reserved. *
* You may not redistribute this file or its derivatives without written permission. *
* *
* Sales Email: sales@crawlability.com *
* *
*-------------------------------------LICENSE AGREEMENT-----------------------------------*
* 1. You are free to download and install this plugin on any vBulletin forum for which *
* you hold a valid vB license. *
* 2. You ARE NOT allowed to REMOVE or MODIFY the copyright text within the .php files *
* themselves. *
* 3. You ARE NOT allowed to DISTRIBUTE the contents of any of the included files. *
* 4. You ARE NOT allowed to COPY ANY PARTS of the code and/or use it for distribution. *
******************************************************************************************/
$ev_list = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "event WHERE visible = 1");
while ($event = $db->fetch_array($ev_list))
{
$url = 'calendar.php?do=getinfo&e=' . $event['eventid'] . '&day=' .
date('Y-m-d', $event['dateline_from']) . '&c=' . $event['calendarid'];
if(VBSEO_ON)
$url = vbseo_any_url($url);
if(!strstr($url, '://'))
$url = $vbseo_vars['bburl'] . '/' . $url;
vbseo_add_url($url, 0.5, '', 'daily');
}
?>
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Very much appreciated, thanks!