Results 1 to 5 of 5

Exclude private calendars from sitemap (add-on: vbseo_sm_calendar.php)

This is a discussion on Exclude private calendars from sitemap (add-on: vbseo_sm_calendar.php) within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; I use 3 different calendars on my forum. Two of them are not visible to public. How can I exclude ...

  1. #1
    Member
    Real Name
    Alex
    Join Date
    May 2009
    Location
    Germany
    Posts
    35
    Liked
    0 times

    Question Exclude private calendars from sitemap (add-on: vbseo_sm_calendar.php)

    I use 3 different calendars on my forum. Two of them are not visible to public.

    How can I exclude the urls of these private calendars from the sitemap generator?

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    I don't believe any calendar urls are added to the sitemap.

  3. #3
    Member
    Real Name
    Alex
    Join Date
    May 2009
    Location
    Germany
    Posts
    35
    Liked
    0 times
    Well,

    they are added, because I use the calendar sitemap add-on (/vbseo_sitemap/addons/vbseo-sm_calendar.php).

    I added the generated sitemap file as attachment.

    This file contains 255 urls, but only a part of them are accessible by guests (and bots).
    Attached Files

  4. #4
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    You can try changing the main query to only include the ones you wish.

    Code:
    $ev_list = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "event WHERE visible = 1");
    to
    Code:
    $ev_list = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "event WHERE visible = 1 and calendarid = 1");
    to include only the main calendar.

  5. #5
    Member
    Real Name
    Alex
    Join Date
    May 2009
    Location
    Germany
    Posts
    35
    Liked
    0 times
    This solved the problem (with calendarid = 2).

    Thank you very much.

Similar Threads

  1. Replies: 6
    Last Post: 02-22-2011, 10:39 PM
  2. calendars
    By partyvibe in forum Sitemap Features Archive
    Replies: 6
    Last Post: 08-31-2008, 06:14 PM
  3. Multiple calendars
    By partyvibe in forum Custom Rewrite Rules
    Replies: 4
    Last Post: 08-29-2008, 08:16 PM
  4. Exclude links/files from sitemap
    By StarBuG in forum Sitemap Features Archive
    Replies: 1
    Last Post: 04-07-2008, 07:11 AM
  5. Exclude certain private forums from using redirect URLs for links?
    By Viper007Bond in forum General Discussion
    Replies: 3
    Last Post: 01-24-2008, 08:31 PM

Posting Permissions

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