CS Nuggets

This blog is for addons, bugs, fixes, and issues pertaining to Community Server.

CS2007: Event Calendar Released!

NOTICE: Only registered users are allowed to post and download, so don't forget to register.

PACKAGE UPDATED 06/05/2007 21:10 PT:
The readme instructions have been updated to list a change to the resources.xml file that was left out.  Support for single tags has been added.  Dates must now be in the MM/DD/YYYY format where leading zeros are now required.  And a bug in the CS 2007 Module API was discovered for Forum posts.  A temporary patch was made to prevent the control from crashing, but Telligent will need to fix the API before edited Forum posts will work correctly with the calendar.

PACKAGE UPDATED 06/02/2007 16:00 PT:
A couple more bugs were found that popped up for people who had been running Dan Bartels original control.  Everyone should download this update as it fixes some bug in the SQL scripts as well.  Just copy all of the files in the Web folder over your current installation, and run both of this SQL scripts just as if you were installing this for the first time.  I also fixed some bugs in the CSS files that carried over from Dan's original control.

PACKAGE UPDATED 06/02/2007 00:01 PT:
After adding support for the single tag, I apparently deleted 1 too many ?'s from the regular expression which caused the regular [cal]date[/cal] tags to fail.  This update fixes the issue.

PACKAGE UPDATED 06/01/2007 07:30 PT:
I forgot to add the image files to the original package and a minor bug with updating profiles was fixed.

Well, its finally ready. The Community Server 2007 Event Calendar add-on is available for download.  If you have any problems with the installation, please post your issues here and I will address them as soon as I can.  If you have a show stopping issue, just comment out or remove the lines that you added to your communityserver.config file and everything should be ok.  You may want to back out the SiteUrls.config changes too, if you don't want users clicking on link.

You can read my post CS2007: Event Calendar Features to learn more about the control.  ENJOY!

Comments

Bill Bosacker said:

I updated the package to include some missing images and to fix a minor bug that occured if a user updated their profile.  Just copy the contents of the Web folder over your installation, replacing the existing files, and all should be good.

# June 1, 2007 7:36 AM

interscape said:

Bill,

Does the [cal:] code work for any application in CS, or just for the blogs?

Thanks!

-Robert

# June 1, 2007 12:24 PM

Bill Bosacker said:

Hey Robert,

It works in Blogs, Forums, Files and Galleries, just like Dan Bartels original control does.

Take it easy,

Bill

# June 1, 2007 4:53 PM

Qingsong said:

I followed your instruction in the readme.txt file. However two issues found:

1. I need to add an entry in resouces.xml file of <resource name="calendar">Calendar</resource>. Othereise I got resource name not found error.

2. The clock image does not show in my /Calendar page.

# June 5, 2007 11:36 AM

Qingsong said:

Hi, Robert,

To fix the clock image issue, I have to modify the calendar.aspx.

From: <img src='../images/calendar/clock.jpg' align="right">

To <img src="../images/calendar/clock.jpg" align="right">

# June 5, 2007 12:57 PM

Bill Bosacker said:

Hi Qingsong, your are correct.  I left out the resources.xml entry.  I'm putting together a new package and have added it to the instructions.

Thanks

# June 5, 2007 6:16 PM

stumpykilo said:

Just implemented on my site and added a test post in a forum and used the  format but nothing shows up on the calendar.

I looked at the wgb_CalendarEventThread and wgb_CalendarEventUser tables and there is an entry in the wgb_CalendarEventThread table but nothing in the wgb_CalendarEventUser table.

I am using the UserCalendarModule in the communityserver.config file.

Please advise.

Thanks.

# June 6, 2007 1:49 PM

Bill Bosacker said:

stumpy, try running the rebuild script and see if it shows up then.  Before you do that though, could you write down and post the values for the fields of the record in the thread table?  The user table currently only holds birthdays, so that just means that no one in your database has registered a birthday.

Take it easy,

Bill

# June 6, 2007 8:10 PM

stumpykilo said:

Here is the record that is in the THREAD table:

ThreadID---PostID---SettingsID---EventDate---EventYear---EventMonth---EventDay

111---310---1000---6/9/2007 12:00:00 AM---2007---6---9

I ran the rebuild script and still nothing on the calendar.

Also I did notice that I got an error when running the InstallCalendar.sql portion that creates the fnWGB_ExtractPropertyValue FUNCTION. Could this be the cause?  The error I get when trying to create that function is "Expression result length exceeds the maximum. 8000 max, 16000 found".

Thanks.

# June 7, 2007 6:06 AM

Bill Bosacker said:

That function is used to parse the extended properties of the user membership records, which is why your user table is empty as it is unable to parse the birthdates.  I'll take a look at it tonight and see if I can find anything wrong with it.  I am assuming that you are using SQL Server 2000, correct?

As for the record above, it looks like a good record.  The only thing that would prevent it from showing up on the calendar is permissions.  Is the account that you are logged in as able to read the post?

# June 7, 2007 8:29 AM

stumpykilo said:

Yes it is SQL Server 2000.

The user that I'm logging in as is the user that created the post and has admin privileges.  I can read the post fine but cannot see anything on the calendar.

Thanks.

# June 7, 2007 11:34 AM

Bill Bosacker said:

Hey stumpy, on the install script, try doing a search for '8000' and replace with '4000'.  That may fix your problem.

# June 7, 2007 7:48 PM

migael said:

Bill,

Thank you for updating and releasing the calendar addon for CS2007. Nice features and exactly what we like to have on our site.

I have installed/configured using your instructions, however the events do not automatically show in the calendar control.

Running the rebuild script does add them. I have tried adding event posts using different users with different CSRoles and using both CalendarModules - not at the same time ofcourse :)

Am I missing a config option or something else? Please advise.

Regards,

Migael

# June 12, 2007 5:05 AM

Bill Bosacker said:

Hey Migael, I'm glad you like it.  Out of the box, the control only supports events created by Administrators and Managers.  If you want other users to be able to add events as well, you will need to change which CSModule is used in your communityserver.config.

I've been thinking about creating a CalendarEventManager role, which you can give out individually as I think allowing all users to add events can cause problems.  The rebuild script does not check user rights and adds events for all posts, which is why it is working for you.

I'm going to look into implementing this, but it may take a week or two for me to get to it.

Take it easy, Bill.

# June 12, 2007 8:17 PM

swusatf said:

Bill,

I've added your Calendar Module (very nice!) after doing a brand new install of CS 2007 SP2 and for the life of me I can't get an event to show up at all (I've triple checked all the instructions for file changes and the tables, sprocs, etc are there).  I've added the appropriate  tag to a blog entry and it won't show up.  I've re-run the Rebuild script numerous times and it never adds anything and always says 0 rows affected.

Is it possible that something changed in SP2 (which came out after your last update) that is disabling things?

Blog Post: 208.106.246.24/.../default.aspx

Calendar: 208.106.246.24/.../calendar

I'm doing all this with the Admin module and my role is set to System Administrator.  Any ideas?

Thanks,

Jimmy

# June 14, 2007 6:05 PM

Bill Bosacker said:

Hey Jimmy,

You are having the same issue as another person was having.  I think it was a comment under a different blog thread.  You need to make sure that the tags are placed in the body of the text and not the tag area.  I think it was a big mistake to use the term tag for the category tag area, but it's too late to change.  Move the tags to the body of the post and everything will work for you.

Take it easy,

Bill

# June 14, 2007 6:28 PM

swusatf said:

Bill,

Thanks that was it.  You know I had spent a couple minutes wondering why your blog posts that were on the calendar didn't have any "CS Tags" on them.

Thanks a bunch it works great!

One appearance tip that I will add for anyone reading this.  If you create a css class in the appropriate file or override and give it a "display: none;" style and then when you insert your [cal:] tag put it in a div with that class.  That way when you edit the post the tag shows up (so you know it's there of course) both in WYSIWYG and HTML mode, but when the post displays to the public the tag isn't there.  Makes things a little cleaner, without changing the operation of the calendar.

Thanks,

Jimmy

# June 14, 2007 7:52 PM

Bill Bosacker said:

Jimmy,

You don't need to do that.  If you have rights to create calendar events and you place a tag in the body of your post, the tag is removed from the display body of the post.  All posts within CS have a Body field that contains the editor contents and a FormattedBody field that contains a scrubbed version of what is in the Body field and is used for display.

Take it easy,

Bill

# June 15, 2007 5:02 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)