DanBartels.CS.CalendarControl

This post has 266 Replies | 35 Followers

Top 25 Contributor
Posts 1,160
Points 70,210
CS Developers
DanBartels Posted: Tue, Feb 21 2006 11:50 AM

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

This is the excerpt from the files libarary where you can download the control

http://communityserver.org/files/40/csmodules/entry513095.aspx

I just wanted to start a thread for discussions on the topic....

I still need to update my old FreeTextBoxWrapper code; right now, I just replace the standard telligent wrapper, which was a shortcut, and isnt very user friendly of me...

Also I plan to update the control to make placing items on the calendar require the user have moderator / admin or owner access to the forum / blog / gallery / or file gallery they are trying to add to the calendar...

I should have a plan on how I am going to drop the source for this too after my meetings at Telligent HQ this week...

Stay tuned, and thanks for the compliments; too bad I didnt win =P

  • | Post Points: 605
Not Ranked
Posts 24
Points 340
Quokka replied on Tue, Feb 21 2006 12:41 PM

Can I also suggest an enhancement that if someone in their profile has selected to enter their birthday that their username be placed in the calendar entry coinciding with their day as

Username's Birthday

This would link to their profile view.  Something I know many other php boards do and would be a  real nice feature for a community.  Obviously for larger boards it may be inpractical so an on  or off setting to display this on the calendar might also be handy. I don't think its necessary to calculate how many years old they are but maybe an option in the display...

Username's XXX Birthday

Thanks for your consideration.

P.S. Sorry it would be nice when you opened the calendar that the current day was highlighted differently.

  • | Post Points: 5
Top 500 Contributor
Posts 76
Points 845
jwendl replied on Wed, Feb 22 2006 9:51 AM

Hey Dan,

Interested in adding time funcitonality to it at all? I sort of hacked it together on my CS installation, but wouldn't mind assisting in getting it to work for all timezones etc. Maybe have the tag look like [cal]01-01-2006 07:00[/cal] or other valid string. Then in the DatePicker module having three textboxes that would be hour, minute, second. The reason I ask is that having just the event show up on the day cell is a bit ambiguous if you have > 3 items. Also I extended it to actually replace the [cal] tag with text that says the date that the event is taking place in the post too. So in mine it replaces

[cal : 01012006070000] with "This event will take place Monday January 01, 2006 at 07:00 am". which makes it easier to identify when it is taking place after clicking on the event link.

Also how were you thinking of separating your toolbutton from replacing the FreeTextBox.dll?

Additionally there is something wrong with the calendar module when an anonymous user attempts to view it (it throws an exception).

I think this is a really cool idea for any community to have Smile [:)] so thank you for all of the hardwork and time you put into it. 

(I just realized I am rambling, sorry but I woke up at 5 am this morning and am running on low fuel.)  

"When the gods choose to punish us, they merely answer our prayers." -Oscar Wilde

  • | Post Points: 5
Not Ranked
Posts 23
Points 400

Dan,

I hate to bother you but can you direct me to any info in regards to the following error for your great calendar module?

The located assembly's manifest definition with name 'ComponentArt.Web.UI' does not match the assembly reference.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Many thanks in advance!

Rick

St Louis Ram Fan's Community Site STLRAMS.COM
  • | Post Points: 35
Top 25 Contributor
Posts 1,160
Points 70,210
CS Developers

Are you running the latest version, I had updated it on 2-22 to work with the CA control we shipped with CS2.0 RTM...

Dan

  • | Post Points: 20
Not Ranked
Posts 23
Points 400

Oops.. My bad - It works like a champ now.  Thanks again

Rick

P.S.  How hard is it to convert from the free 2.0 version to the Standard Edition?

St Louis Ram Fan's Community Site STLRAMS.COM
  • | Post Points: 20
Top 25 Contributor
Posts 1,160
Points 70,210
CS Developers

CS Licenses?  You just buy them, and add the license file via the CS Control Panel...  The core CS code is all the same, so there are no other changes required (unless you are installing the other addons like FTP, Mail Gateway, or Enterprise Search...)

Component Art is a different story, the version reference is compiled into our application, and at best you will have some compiler warnings about virsioning...

Dan

  • | Post Points: 5
Top 500 Contributor
Posts 52
Points 740
mrfleck replied on Tue, Mar 7 2006 10:47 AM

If I add a calendar even in a forum where regular users don't have permissions, I see it just fine, but if I login as a reg user or do not login at all the calendar throws this error:

[NullReferenceException: Object reference not set to an instance of an object.]
   CommunityServer.Components.Permissions.ValidatePermissions(Section section, Permission permission, User user, Post p) in D:\src\slashpoker.com\trunk\src\Components\Permissions.cs:36
   CommunityServer.Components.Permissions.ValidatePermissions(Section section, Permission permission, User user) in D:\src\slashpoker.com\trunk\src\Components\Permissions.cs:28
   DanBartels.CS.Calendar.Components.CalendarItem.UserCanView() +85

After some debugging (I don't have the cal source though so I have no Idea what the calling method is doing) I find that when it hits the section for the post where everyone and registerd users have no permissions, it calls the above method passing in a null value for that section.

FYI I am using the 2.0 assembly.

Will the source be release soon so that we can debug stuff like this?

Ideas?

  • | Post Points: 20
Top 500 Contributor
Male
Posts 47
Points 745
tfox replied on Thu, Mar 9 2006 3:00 PM

Well.... I seem to have an issue with the calendar control.
I just downloaded the newest version, installed it on my test machine, and it worked perfectly.
I installed it on my live machine, and it seemed to work fine.  Until I added some dates to a future month.  Then we I go to the calendar page, and try to switch to a previous, or the next month, the control just states that it's "Loading"

I removed the dates that I posted in the forum messages, and tried it again, and it still does the same thing (doesn't do it on my test machine)

When I look at the IE browswer, it has an error indication in the bottom left had, and when I view the details, it stats the following...

Line: 2
Char:  3002
Error: Object doesn't support this property or method
Code: 0
URL:  http://sbs2003.playmor.com/cs/calendar/default.aspx

I know this probably doesn't help much on determing the problem, but I thought I would ask any suggestions anyone might have.

Terry Fox www.playmor.com

  • | Post Points: 20
Top 500 Contributor
Posts 57
Points 850
bombus replied on Sat, Mar 11 2006 5:36 PM
Hey Tfox,

It sounds like it may have something to do with a proxy server? I'm experiencing the same problem on numerous ComponentArt controls. If Dan figures this out, maybe he'll solve all of my CA bugs! Anyway, check out this thread to read what I talking about and maybe that will help you narrow down the issue:

http://communityserver.org/forums/thread/520356.aspx
  • | Post Points: 35
Top 500 Contributor
Posts 52
Points 740
mrfleck replied on Tue, Mar 14 2006 2:13 PM
Are you going to be releasing the code to this so I can fix my error above? If not, would you grant me permission to decompile and send you what I find?
  • | Post Points: 20
Top 500 Contributor
Male
Posts 47
Points 745
tfox replied on Tue, Mar 14 2006 6:07 PM

After reading the article, it sounds exactly like my problems.
I'm sitting behind an ISA server, and I'm having problems with some of the other controls also, it just wasn't a big enough deal for me to mess with yet, but the calendar control was kind of important to me.

Hopefully the can figure it out, it would be nice to get everything working the way it's supposed to.
It's unfortunate though that I have to go in and change code to get, say, the email problem resolved, you would think this would have a simple update we could download, but o'well.

Thanks for the info though, it was very helpful, and I'll start following that forum also.

Terry Fox www.playmor.com

  • | Post Points: 5
Not Ranked
Posts 11
Points 140
ggsoftware replied on Wed, Mar 15 2006 10:34 AM
Hi Dan,
Do you have an update on your Calendar control? I could really do with the calendar posts being restricted to moderator/admin. Alternatively, is the source now available?

Thanks for the great work!
  • | Post Points: 35
Top 10 Contributor
Male
Posts 2,373
Points 15,755
MVPs
Dave replied on Tue, Apr 11 2006 11:26 AM

ggsoftware:
Hi Dan,
Do you have an update on your Calendar control? I could really do with the calendar posts being restricted to moderator/admin. Alternatively, is the source now available?

Same here, could do with the source code to restrict access

  • | Post Points: 5
Top 500 Contributor
Posts 53
Points 760
Iturea replied on Thu, Apr 13 2006 3:21 PM

ggsoftware:
Hi Dan,
Do you have an update on your Calendar control? I could really do with the calendar posts being restricted to moderator/admin. Alternatively, is the source now available?

Thanks for the great work!

The calendar is amazing but it is kind of scary to run it without any control on who can use it.  If anyone updates this to restrict access please let me know.  I would like a copy of the new dlls...

Thanks in advance!!

10 percent of my blood is Dr. Pepper
  • | Post Points: 50
Page 1 of 18 (267 items) 1 2 3 4 5 Next > ... Last » | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

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