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 ForumsEventsEventsGetUserTimeZone (and other) Corrections for VS2005GetUserTimeZone (and other) Corrections for VS2005
Previous
 
Next
New Post
5/3/2006 11:41 AM
 
I am playing around with the 3.2 source in VS 2005 and noticed some errors in the GetUserTimeZone() subroutine in the EventController.vb file.

VS2005 doesn't like the way the PortalController and UserController objects are accessed. The (paraphrased) error is this "Access of a shared member through an instance will not be evaluated."

I don't think VS 2003 cared about this kind of error. Here is the corrections I made to the code. I haven't tested it, but it should work for either version.


Private Sub GetUserTimeZone()
  Try
    ' Set Default to Portal TimeZone Offset
    Dim objPortalSettings As DotNetNuke.Entities.Portals.PortalSettings =  DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings
    Me.UserTimeZone = objPortalSettings.TimeZoneOffset
    Dim objUserInfo As DotNetNuke.Entities.Users.UserInfo = DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo
    ' Set Default to Portal Time Zone
    Dim TimeZone As Integer = objPortalSettings.TimeZoneOffset
    If Not objUserInfo Is Nothing Then
      If objUserInfo.UserID <> -1 Then
        Me.UserTimeZone = objUserInfo.Profile.TimeZone
      End If
    Else
    End If
  Catch
  End Try
End Sub

 
New Post
5/4/2006 9:26 AM
 
I've had trouble under VS2005 with this source (on a DNN4.x project).

Are you using DNN3.x or 4.x? if 4.x, how did you modify the Events source/project?

esmamlin atxgeek.me
 
New Post
5/8/2006 9:20 AM
 

Ah, I got it working in VS2005.  If it helps anyone, I made a few notes and posted them in this thread:

http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/21/threadid/33285/scope/posts/Default.aspx


esmamlin atxgeek.me
 
New Post
5/9/2006 10:10 AM
 
I have found a few more errors like the one above. They can be corrected in a similar fashion.

The EventSignupsController Class in EventController.vb should be marked as Public. EventDetails.ascx.vb needs to create an instance of that class.

I will post more corrections as I come across them.

 
New Post
5/9/2006 1:59 PM
 

I found a couple more Classes in the EventController.vb file that need to be made public. EventCategoryController is used in EventEditCategories.ascx.vb and EventLocationController is used in EventEditLocations.ascx.vb.

In the cmdUpdateSelected_Click subroutine found in EventModerate.ascx.vb. Line 222 "objCal = Me.objCtlEvent.EventsGet.." needs to moved line to 220 just below the "For Each" statement. Otherwise the objCal object will not be set correctly for "Case Deny" and the emails sent out for denied requests will have the wrong information.

Similarly "objEnroll = Me.objCtlEventSignups.EventsSignupsGet.." found on line 265 needs to be moved up a few lines to line 263.

I also cannot find the PopupEvent.js file referenced in EditEvents.ascx

Questions and comments welcome.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsGetUserTimeZone (and other) Corrections for VS2005GetUserTimeZone (and other) Corrections for VS2005


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