Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsUser Event Enrollment - Possible Report???User Event Enrollment - Possible Report???
Previous
 
Next
New Post
1/30/2009 1:21 PM
 

Hi Kay,

In the events table you will also see keys for PortalID and ModuleID, so you can always add extra where clauses with these correctly qualified.

Cheers
Roger


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
1/30/2009 2:09 PM
 

You might be interested in the following post (and example code) regarding extending EVENTS module functionality with a (free) helper module.  I use this technique quite a bit on various DNN sites:
 
   Create an "Events Status" module in two steps 
   Step 1: Add the free SQL module to a page.   
   Step 2: Copy-and-paste provided SQL query into SQL module settings.
   http://www.eguanasolutions.com/DNN_Blog/EntryID/5.aspx

The example code also shows how to use module-supported tokens so the results can be limited to the host portal.  You can also use tokens to limit results to the current user (i.e., "show me all the events I've previously attended").

 
Here is another post on using a similar (also free) module with an EVENTS module example to show a user-sortable list of events:
 
   http://www.eguanasolutions.com/DNN_Blog/EntryID/15.aspx
 
That example also shows one method of setting up events to allow users to sort by city, county and state (notable because the EVENTS module does not have "city", "county" and "state" data fields).
 

Finally, the free modules used in the above links support HTML in the results so you can easily create "clickable" lists of events.  See this post for an example of including HTML in the response:
 
   http://www.eguanasolutions.com/DNN_Blog/EntryID/13.aspx

 
Cheers!
-mamlin


esmamlin atxgeek.me
 
New Post
2/18/2009 1:14 PM
 

Hello,

Does anyone have an idea of how to get the sql statement to show the actual event? Whats happening is that when I setup a recurring event and a user chooses to enroll in an event, the statement actually returns the date of the first occurence of the event, not the day the user enrolled for? Can someone advise?

 

SELECT

 

Events.EventName AS Event, Users.FirstName AS [First Name], Users.LastName AS [Last Name], Users.Email AS [E-Mail], .EventTimeBegin AS Date EventsSignups INNER JOIN ON EventsSignups.EventID = Events.EventID INNER JOIN ON EventsSignups.UserID = Users.UserID BY Date DESC

FROM

 

Events

 

Users

 

ORDER

 

 
New Post
2/18/2009 3:28 PM
 

In this statement:

SELECT


Events.EventName AS Event, Users.FirstName AS [First Name], Users.LastName AS [Last Name], Users.Email AS [E-Mail], Events.EventTimeBegin AS Date

FROM

EventsSignups INNER JOIN
Events

ON EventsSignups.EventID = Events.EventID INNER JOIN
Users

ON EventsSignups.UserID = Users.UserID
ORDER

BY Date DESC

EventTimeBegin is returned as the date. However, as a recurring event, what would be the property to identify the actual day of the event, not the first occurence of the recurring event?

 
New Post
2/18/2009 3:51 PM
 

Hi Kay,

In versions prior to 4.1.x (which is not a production release yet), the recurrence information is encoded in the RepeatType and Period attributes. To be honest I wouldn't want to interpret this in SQL code. In 4.1.x the mechanism for storing recurring events is substantially changed, and you would be able to get this information directly from the events table - you can look here for more details.

The current release candidate 4.1.2 is available on www.dnnevents.net. Not that that version still has some known bugs, we anticipate release an update very soon.

Cheers
Roger

 


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsUser Event Enrollment - Possible Report???User Event Enrollment - Possible Report???


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out