Results 1 to 7 of 7

calendars

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...

  1. #1
    Junior Member
    Real Name
    hugh
    Join Date
    Apr 2007
    Posts
    19
    Liked
    0 times

    calendars

    I've just noticed calendars don't appear to be supported. Would it be possible to include them?

    Thanks.

    Hugh

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    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).

  3. #3
    Junior Member
    Real Name
    hugh
    Join Date
    Apr 2007
    Posts
    19
    Liked
    0 times
    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...

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Ah, I see. Currently you can only add the URLs manually in extra-urls.txt file to include them in sitemap.

  5. #5
    Junior Member
    Real Name
    hugh
    Join Date
    Apr 2007
    Posts
    19
    Liked
    0 times
    Any chance of this being a feature of future versions?

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Hello,

    I've created a small add-on for that. Please create vbseo_sm_calendar.php file in vbseo_sitemap/addons/ folder:
    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($url0.5'''daily');
        }

    ?>
    and then add "vbseo_sm_calendar.php" in addons list in vB admincp->vBSEO Sitemap Generator options.

  7. #7
    Junior Member
    Real Name
    hugh
    Join Date
    Apr 2007
    Posts
    19
    Liked
    0 times
    Very much appreciated, thanks!

Similar Threads

  1. Multiple calendars
    By partyvibe in forum Custom Rewrite Rules
    Replies: 4
    Last Post: 08-29-2008, 08:16 PM
  2. rewrite settings for custom calendars
    By nysports365 in forum Custom Rewrite Rules
    Replies: 11
    Last Post: 07-19-2007, 11:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •