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 ForumsForumForumHow to fix the error?How to fix the error?
Previous
 
Next
New Post
11/17/2005 9:59 PM
 
What should I do to fix the error of the Forum module occured in DNN 3.2 ?
 
New Post
11/18/2005 7:50 AM
 

Sad to say my solution was to delete the 3.2 installation and install 3.1. this seems to have solved the problem as far as getting the forums working and luckily, as it was a first install, I did not lose any data. If you have updated to 3.2 from 3.1 then I do not have a solution for that.

 


Always in need of help and not afraid to ask
 
New Post
11/18/2005 8:55 AM
 

To dowload a quik fix use use my support web site.

The problem are located in obtaining the user profile.

All I did to fix it was the follwing:

in

Public Class ForumUserController
the shared function "GetForumUser"

add the folowing inside the "With fUser" section

.Profile = dnnUser.Profile

so the shared function "GetForumUser"  should read

-------------------------------------------------

Public Shared Function GetForumUser(ByVal UserID As Integer) As ForumUser

Dim _portalSettings As PortalSettings = PortalController.GetCurrentPortalSettings

Dim keyID As String = FORUM_USER_CACHE_KEY_PREFIX & UserID.ToString

Dim fUser As ForumUser

If DataCache.GetCache(keyID) Is Nothing Then

' If current user is authenticated, get it

If UserID > 0 Then

      Dim ctlForumUser As New ForumUserController

         fUser = ctlForumUser.UserGet(_portalSettings.PortalId, UserID)

'If we could not find this forum user, create it from DNN users data

If fUser Is Nothing Then

   Dim ctlDNNUser As New UserController

   Dim dnnUser As UserInfo = ctlDNNUser.GetUser(_portalSettings.PortalId, UserID)

   ' Insert new forum user with minumun requirement info

Try

      fUser = New ForumUser
      
With fUser
            .UserID = dnnUser.UserID
            .Alias = dnnUser.Membership.Username
            .Profile = dnnUser.Profile
      
End With

ctlForumUser.UserAdd(fUser)

Catch Exc As System.Exception

End Try

End If

Else ' If not, return an anonymous user

fUser = New ForumUser

With fUser

.UserID = -1

.Alias = "anonymous"

End With

End If

DataCache.SetCache(keyID, fUser)

End If

Return CType(DataCache.GetCache(keyID), ForumUser)

End Function


Gerhard Du Toit = Visible Online Solutions
 
New Post
11/21/2005 5:53 PM
 

Thanks. I haven't extensively tested, but it seems to work for me.


WildVoice.com Michael Levy - Are you ready to be heard? WildVoice.com
 
New Post
11/21/2005 6:01 PM
 

Hi,

This fix worked for me... I am running a clean install of DNN 4.0 and could not get users to show or be recognised in the forum. This resulted in errors whenever you tried to post a message etc. Uploading the modified DLL solved the issue. Thanks heaps for posting the solution.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumHow to fix the error?How to fix the error?


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