DanBartels.CS.Calendar

I wrote a little calendar module, that adds a calendar to the toolbar, and lets you tag your posts so their titles show on a community calendar for your site...

it also has a freetextbox wrapper with an integrated popup date picker, this feature was a last minute adder, and only really works for USA dates, and is probably not appropriate for large sites....

I will work on providing a better wrapper for the calendar picker button, and will probably make adding a post to the calendar require moderate permissions...  The source for this control will also be made public when I can get it cleaned up.

Dan

Got Questions or Comments?  The discussion is over here http://dev.communityserver.com/forums/p/470407/516549.aspx#516549

Update 02.03.2006 : Note there was an error in the originally included communityserver.merge.config which had the wrong namespace for the CSModule...  the correct module registration would be

<add name = "CalendarLinkModule" type = "DanBartels.CS.Calendar.Components.CalendarLink, DanBartels.CS.Calendar" />

Update 02.21.2006 : I rebuilt the calendar module to update the Component Art control reference to match that of the CS 2.0 RTM; I also included ASPNET 2.0 versions of the binaries (in the bin\framework2 folder) these should only be used with CS installs that were compiled under VS2005.

Update 04.24.2006 : I fixed a permissions glitch which would cause an error if the calendar tried to display a post the user didnt have access to.  I added a new CSModule,  AdminCalendarLink, which only adds administrative posts to the calendar.  I also made a new job and module, which adds users birthdays from their profile to the calendar.

Update 05.01.2006 : I forgot to put the latest Calendar.dll in the bin\framework2 folder...  I updated the zip, you need to make sure the dll is 2.0.60424 or higher to work with asp.net 2

Update 05.24.2006 : Fixed support for adding file gallery items onto the calendar.  Updated Admin calendar link to use current user not post author for the permissions check.  Update the calendar/default.aspx to use applicaiton paths not relative ones for the stylesheet

Update 5.25.2006 : (no binary changes) Updated out of date CommunityServer.merge.config
Added a ComponentArt script update from Ben Tiedt to fix callbacks failing through a proxy

Update 5.27.2007 : Updated control to be CS 2007 compatable, added new install documentation; the zip contains both the original CS2 version and the new CS2007 version.

Comments
  • Re: Calendar Module

    If someone uses this module, will there be an easy upgrade path to the CS official event calendar module?
  • Re: Calendar Module

    nope probably not... this was just meant to show how one could easily leverage the CSModule events to add functionality to their site... Dan
  • Re: Calendar Module

    Is there still going to be a fix so it would work on CS2.0 final?
  • Re: Calendar Module

    It works perfectly for me on RTM. Thanks, great module!
  • Re: Calendar Module

    It does "function" in my RTM install, but the theme is mostly missing. http://www.cromwellhaus.com/CS/calendar/default.aspx
  • Re: Calendar Module

    I've found the fix. In the Calendar\default.aspx file, change the following lines from: <CS:Style runat="server" Href="../Themes/default/style/Common.css" Enqueue="True" RelativePosition="First" ID="Style1"/> <CS:Style runat="server" Href="../Themes/default/style/Home.css" Enqueue="True" RelativePosition="First" ID="Style2"/> <CS:Style runat="server" Href="../Themes/default/style/common_print.css" Enqueue="True" RelativePosition="First" ID="Style3" media="print"/> <CS:Style runat="server" Href="../Themes/default/style/home_print.css" Enqueue="True" RelativePosition="First" ID="Style4" media="print"/> to: <CS:Style runat="server" Href="Common.css" Enqueue="True" RelativePosition="First" ID="Style1"/> <CS:Style runat="server" Href="Home.css" Enqueue="True" RelativePosition="First" ID="Style2"/> <CS:Style runat="server" Href="common_print.css" Enqueue="True" RelativePosition="First" ID="Style3" media="print"/> <CS:Style runat="server" Href="home_print.css" Enqueue="True" RelativePosition="First" ID="Style4" media="print"/>
  • Re: Calendar Module

    this is a great contol.. maybe a suggestion is a dropdown filter of what forum to show events for or all
  • Re: Calendar Module

    Dan I found a bug in the calendar module. In GetCalendarItems(), you do the query: SELECT c.PostID, c.SettingsID, c.SectionID, c.EventDate, s.ApplicationType FROM db_CalendarItems AS c INNER JOIN cs_Posts AS p ON c.PostID = p.PostID INNER JOIN cs_Sections AS s ON c.SectionID = s.SectionID WHERE c.[EventDate] >= @fromDate and c.[EventDate] < @toDate ORDER BY c.EventDate That's getting all calendar posts for all websites. You than try to add all of them to the calendar for one particular website, and things get ugly. The fix is to filter on the SettingsID as well: WHERE c.[EventDate] >= @fromDate and c.[EventDate] < @toDate AND c.SettingsID = @SettingsID with CSContext.Current.SettingsID assigned to @SettingsID
  • Re: Calendar Module

    hey there looks pretty good but could there be the option of direct entries into the Calendar?
  • Re: Calendar Module

    The module is great, however is it possible to show us the sourcecode? I want to extend the CS with a few modules for my basketball team.
  • Re: Calendar Module

    I'm banging up against what is probably an old problem -- the ComponentArt "manifest definition" error when I try to view the Calendar. I've put in the <bindingRedirect> command in my web.config, but it keeps coming up. Odd thing: the error claims it can't load "Version=2006.1.1109.1" but my local version is 2006.1.1109.2. I've tried various old and new parameters in <bindingRedirect>, but the error is always the same. Suggestions?
  • Re: Calendar Module

    I have installed the calendar and my users can create entries to the calendar, as I'd like...but when they go to view the calendar, the app chokes and vomits...how can I allow members of my 'Registered Users' access and still make posts to the calendar? The error I receive is mentioned here: http://communityserver.org/forums/permalink/526593/525685/ShowThread.aspx#525685
  • Re: Calendar Module

    am i jsut missing it? or, is the only way to add a something to the calendar, to put in the [cal] date [/cal] tag, which, is beyond users
  • Re: DanBartels.CS.Calendar

    The permissions issue has been fixed with version 2. I have also added the ability to limit the calendar posts to ones made by admins. If you install the freetextboxwraper that comes with the calendar, you should have a calendar icon in the freetextbox, which you can use to add items to the calendar. Please note that this module is not officially supported, but you would do better posting questions on this forms thread... than here in the file gallery.. http://communityserver.org/forums/permalink/516549/516549/ShowThread.aspx#516549
  • Re: DanBartels.CS.Calendar

    Forgive me, I'll post any further issues there. Thanks again for the hard work Dan!