Calendar dvent details for authenticated users only

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
8/8/2009 9:49:47 AM
Gravatar
Total Posts 2

Calendar dvent details for authenticated users only

Joe,

I would like to have an option to hide event details from unauthenticated users for any given calendar object. This would be beneficial for sites, such as youth-related sites, where you may want to give visitors an idea of the type of activities you plan but do not want them to know exactly when and where they are.

I was able to implement a simple version, which would apply to all calendar events, by modifying EventCalendarModule.ascx to do this, as shown in the snippet below, by adding the event link only if the user is authenticated.

Finally, is this something that could also be added to Event Calendar Pro as I will be purchasing it for the event registration functionality?

<%if (Request.IsAuthenticated) { %>
<a href='<%# SiteRoot + "/EventCalendar/EventDetails.aspx?ItemID=" + Container.DataItem["ItemID"] + "&mid=" + Container.DataItem["ModuleID"] + "&pageid=" + PageId %>'>
<% } %>
<%# Server.HtmlEncode(Container.DataItem["Title"].ToString()) %>
<%if (Request.IsAuthenticated) { %>
</a>
<% } %>

8/8/2009 9:57:48 AM
Gravatar
Total Posts 18439

Re: Calendar dvent details for authenticated users only

I will add a module setting to Event Calendar Pro for the next release that will allow the option to hide details from unauthenticated users.

Best,

Joe 

8/8/2009 12:35:10 PM
Gravatar
Total Posts 2

Re: Calendar dvent details for authenticated users only

Thanks Joe. A couple of beers are on the way.

8/8/2009 12:56:34 PM
Gravatar
Total Posts 18439

Re: Calendar dvent details for authenticated users only

Hey Brian,

Many thanks! Much appreciated.

Cheers,

Joe 

9/1/2009 12:12:32 PM
Gravatar
Total Posts 18439

Re: Calendar dvent details for authenticated users only

This is now implemented in Event Calendar Pro version 0.0.1.6. There is a new module setting for "Hide details from unauthenticated". If checked then users who are not signed in see a message indicating that event details are only visible to site member swho sign in. They still can see the event name and start and end times.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.