DanBartels.CS.Calendar


posted by DanBartels
Fri, Feb 3 2006

Downloads: 3,159
File size: 795.8kB
Views: 11,552
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://communityserver.org/forums/permalink/516549/516549/ShowThread.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

Leo wrote Re: Calendar Module
on Fri, Feb 3 2006 11:26 AM
If someone uses this module, will there be an easy upgrade path to the CS official event calendar module?
DanBartels wrote Re: Calendar Module
on Mon, Feb 20 2006 9:52 PM
nope probably not... this was just meant to show how one could easily leverage the CSModule events to add functionality to their site... Dan
longshot wrote Re: Calendar Module
on Tue, Feb 21 2006 8:43 AM
Is there still going to be a fix so it would work on CS2.0 final?
racerx wrote Re: Calendar Module
on Wed, Feb 22 2006 1:22 PM
It works perfectly for me on RTM. Thanks, great module!
cromwellryan wrote Re: Calendar Module
on Wed, Feb 22 2006 4:16 PM
It does "function" in my RTM install, but the theme is mostly missing. http://www.cromwellhaus.com/CS/calendar/default.aspx
cromwellryan wrote Re: Calendar Module
on Wed, Feb 22 2006 4:20 PM
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"/>
chrishawn wrote Re: Calendar Module
on Fri, Feb 24 2006 9:59 PM
this is a great contol.. maybe a suggestion is a dropdown filter of what forum to show events for or all
JamesCurran wrote Re: Calendar Module
on Tue, Mar 14 2006 4:46 AM
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
IvanBrebner wrote Re: Calendar Module
on Mon, Mar 27 2006 1:36 AM
hey there looks pretty good but could there be the option of direct entries into the Calendar?
Raimons wrote Re: Calendar Module
on Wed, Apr 5 2006 1:53 PM
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.
TKC wrote Re: Calendar Module
on Fri, Apr 21 2006 12:00 PM
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?
Rich Wallace wrote Re: Calendar Module
on Sun, Apr 23 2006 8:49 PM
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
CS_Admin wrote Re: Calendar Module
on Sun, Apr 23 2006 9:39 PM
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
DanBartels wrote Re: DanBartels.CS.Calendar
on Mon, Apr 24 2006 3:58 PM
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
Rich Wallace wrote Re: DanBartels.CS.Calendar
on Thu, Apr 27 2006 1:31 PM
Forgive me, I'll post any further issues there. Thanks again for the hard work Dan!
theikell wrote Re: DanBartels.CS.Calendar
on Sun, Apr 30 2006 11:00 AM
I have discovered that if a post is made with a calendar tag in it and that post is later deleted, the calendar page will error.
mrbrown38 wrote Re: DanBartels.CS.Calendar
on Tue, Aug 15 2006 5:10 PM
Has this mod be testing with CS 2.1?
baiksusan wrote Re: DanBartels.CS.Calendar
on Sun, Aug 20 2006 2:08 AM
test
dimitrisv wrote Re: DanBartels.CS.Calendar
on Tue, Aug 29 2006 10:41 AM
Is this module CS 2.1 compatible?
ZoomyX wrote Re: DanBartels.CS.Calendar
on Fri, Sep 29 2006 6:33 PM
I tried to implement this but afer it was all said and done all I got was "We cannot serve your request at this time" message when I navigate to my website
deKode wrote Re: DanBartels.CS.Calendar
on Wed, Oct 4 2006 2:00 PM
I'd like to see not only the ability have an event, but a way for users to say, "Sign Me Up" and have a list of what registered users have signed up to go to the event.
Cainrajraj wrote Re: DanBartels.CS.Calendar
on Wed, Oct 18 2006 6:06 PM
theikell said: I have discovered that if a post is made with a calendar tag in it and that post is later deleted, the calendar page will error. I can confirm that :(
jgrovert wrote Re: DanBartels.CS.Calendar
on Thu, Nov 30 2006 12:02 AM
Is it possible to have multiple calendars that a user can choose from?
Bill Bosacker wrote Re: DanBartels.CS.Calendar
on Mon, Dec 4 2006 5:39 AM
It took me a bit of work, but I was able to fully implment the control into my CS 2.1 SP1 ASP.NET 2.0 sites. WOW, that's a mouthful. Anywho, do you know when the source will be available? And I wasn't sure how to get the calendar picker working as the link in your original post is broken.
Bill Bosacker wrote Re: DanBartels.CS.Calendar
on Mon, Dec 4 2006 5:42 AM
BTW, I made it so that only registered users can see the calendar on my systems, so if you go to my site and don't see it, just register an account.
games 2 wrote re: DanBartels.CS.Calendar
on Sun, Apr 8 2007 9:27 PM
thanks .,
kids games wrote re: DanBartels.CS.Calendar
on Mon, Apr 9 2007 3:46 AM
It works perfectly for me, thanks
kids games wrote re: DanBartels.CS.Calendar
on Mon, Apr 9 2007 3:48 AM
The module is great
films wrote re: DanBartels.CS.Calendar
on Tue, Apr 10 2007 2:48 AM
GREAT ..
games wrote re: DanBartels.CS.Calendar
on Wed, May 2 2007 7:27 PM
yaaaah, Very good work
dmwc wrote re: DanBartels.CS.Calendar
on Fri, Jun 1 2007 1:13 AM
After install , get exception at jobs ScheduleBirthdaysJob Failed System.Data.SqlClient.SqlException: Invalid column name 'cs_UserID'. Invalid column name 'cs_LastActivity'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at DanBartels.CS.Calendar.CalendarSqlDataProvider.GetUsersNotIndexed(Int32 count, Int32 SettingsID, Int32 mockSectionID) at DanBartels.CS.Calendar.Components.ScheduleBirthdaysJob.IndexUsers(Int32 settingsID) at CommunityServer.Components.SiteSettingsManager.IterateSiteSettings(SiteSettingsListIterator iter) at DanBartels.CS.Calendar.Components.ScheduleBirthdaysJob.Execute(XmlNode node)
Anupam2 wrote re: DanBartels.CS.Calendar
on Fri, Jun 1 2007 3:37 AM
How to link Calendar with Forums
uuu1888 wrote re: DanBartels.CS.Calendar
on Mon, Jun 11 2007 10:56 AM
thanks .,
kwasi wrote re: DanBartels.CS.Calendar
on Wed, Jul 25 2007 2:49 PM
i'm trying to install the calendar on my CS2.1 SP2 site and keep getting this error: Could not load file or assembly 'ComponentArt.Web.UI, Version=2006.1.1109.1, Culture=neutral, PublicKeyToken=9bc9f846553156bb' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) please help...
swish wrote re: DanBartels.CS.Calendar
on Thu, Aug 16 2007 8:04 AM
Thanks :)
games for all wrote re: DanBartels.CS.Calendar
on Fri, Aug 24 2007 1:28 AM
nice .... Thanks
forum. wrote re: DanBartels.CS.Calendar
on Thu, Aug 30 2007 12:31 AM
god :)
upload photos wrote re: DanBartels.CS.Calendar
on Fri, Oct 5 2007 1:27 AM
thank you maan
mhmdkhamis wrote re: DanBartels.CS.Calendar
on Thu, Nov 1 2007 4:27 PM
great thanks
mhmdkhamis wrote re: DanBartels.CS.Calendar
on Tue, Nov 6 2007 5:55 PM
great
games wrote re: DanBartels.CS.Calendar
on Wed, Dec 26 2007 9:56 AM
thanks
games wrote re: DanBartels.CS.Calendar
on Wed, Dec 26 2007 9:56 AM
thanks
testyourself wrote re: DanBartels.CS.Calendar
on Sun, May 18 2008 6:16 PM
testyourself [url=http://test.com]testyourself[/url] testyourself [url= http://test.com ] testyourself [/url]
jaketrimble wrote re: DanBartels.CS.Calendar
on Mon, May 19 2008 7:16 PM
I have noticed that users that do not have permissions to view a particular blog get an error when they go to the calendar page. I thought this was already configured to only show posts that the user had permissions for. How do I fix this. Please help. Thanks in advance.
wrote re: DanBartels.CS.Calendar
on Wed, Jul 23 2008 8:40 AM
wrote re: DanBartels.CS.Calendar
on Wed, Jul 23 2008 8:40 AM
wrote re: DanBartels.CS.Calendar
on Wed, Jul 23 2008 8:41 AM
Dr.Adams wrote re: DanBartels.CS.Calendar
on Tue, Oct 21 2008 10:45 AM

Cool

Dr.Adams wrote re: DanBartels.CS.Calendar
on Wed, Oct 29 2008 3:07 PM

Its good!

Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com