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 ForumsForumForumFirst and Lastname in forum instead of AliasFirst and Lastname in forum instead of Alias
Previous
 
Next
New Post
8/24/2006 4:26 AM
 

First, you need to understand that editing this the way you did will only change the name for the new users. (As this is what gets inserted into the alias field). To make this change otherwise, so Alias is irrelevant, you need to edith the Forum_User code's Info object. This inherites from DNN's user so where it sets the alias based on a database value (retrieved from the forum_users table) you make this a public read only property that is the value of the current membership.displayname (or whatever it is exactly from core for display name). This is how I am editing the option in the source now to implement that feature we are talking about. I know this works, but there are other areas affected by making this a read only property. These places, however, become irrelevant for the most part because you will no longer need Alias.


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
8/29/2006 4:48 PM
 
.
 
New Post
10/29/2006 10:26 PM
 

Well after sometime learning more about asp.net, dotnetnuke, visual studio and compiling i have answered my questions and a once php program has become an asp.net convert:

It was dnnUser.DisplayName not dnnUser.Membership.DisplayName and once i compiled the forum solution it worked!!

 
New Post
2/9/2007 10:41 AM
 
Simon,  thanks for pointing me here.  I understand the idea behind what is being done, but I'm not sure how to  do it exactly.  I've got the source version downloaded and compiling without any errors.

I'm thinking the page to edit is the DotNetNuke.Forum project Compnents/Users/ForumUserInfo.vb file.
In there I want to edit the Alias at line 192:

Public Property [Alias]() As String
            Get
                Return mAlias
            End Get
            Set(ByVal Value As String)
                mAlias = Value
            End Set
        End Property

But not quite understanding the dnnUser.DisplayName because I get dnnUser is not declared.  Am I in the right area?


Andrew Walker

Learn to make your own beer and wine at homeIf you enjoy making your own beer and/or wine - be sure to check out http://www.ForemostBrewing.com
 
New Post
2/11/2007 2:23 PM
 
what you want to do once you have installed the source code over your installation is to open the DotNetNuke.Forum.sln located in the dotnetnuke\desktopmodule\forum folder.
Once this is open then you want to open the Compnents\Users\ForumUserController.vb file and find the following function: 

Public Shared Function GetForumUser(ByVal UserID As Integer, ByVal UpdateLastVisit As Boolean) As ForumUser

In that function where it has this statement:

If Not dnnUser Is Nothing Then
' the user is a DNN user but has never visited the forums
' so lets create a forum user
New ForumUserWith fUserEnd With

fUser = 

 .UserID = dnnUser.UserID

//Change

.Alias = dnnUser.Membership.Username

//to

.Alias = dnnUser.DisplayName

 

 Compile and it should work for all NEW forum users.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumFirst and Lastname in forum instead of AliasFirst and Lastname in forum instead of Alias


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