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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How does DotNetNuke Forums use Display Name instead of User Name as a userHow does DotNetNuke Forums use Display Name instead of User Name as a user's alias
Previous
 
Next
New Post
10/20/2008 3:49 PM
 

Hi there,

You know when we post on this Forums, our Display Name, for example, mine is "yy", shows up as the User Alias name for the post. For the DotNetNuke Blogs, it's also using the Display Name instead of the User Name as the alias name.

I have added the Forum and Blog modules to my pages in the application that I'm working on using DotNetNuke framework. But it always uses the User Name to display as the Author for the posts on Forums and Blogs. And when click into it, the User Profile page is showing a user's User Name instead of a user's Display Name as the Alias. I want to use Display Name for the author's name.

Is there anyway to set/configure this for the two modules using the admin or host account? or Do I have to extend the current modules to make the switch from using the Display Name to User Name?

Thank you very much!

 
New Post
10/20/2008 3:59 PM
 

I found the answer for the Forum module.

It's available under the Settings for the module. Here I can pick Display Name instead of User Name to display for the post's author.


 

But for blog, in the Blog Settings, I only found the following option. The Display Name is not an options here.

When displaying your identity use:

Any idea from anybody? Thank you very much!

 
New Post
10/20/2008 5:43 PM
 

For the Blog module, I found even for the Blogs on www.dotnetnuke.com it's a user's User Name displayed as the author of a comment instead of the Display Name, even though it's the Display Name showing up as Your Name in the Add Comment pane.

But this doesn't make sense. The Display Name should be displayed for the authors of the comments for a blog. Is there a way to change this or is this a bug in the DotNetNuke framework and might get fixed/improved in the future releases?

Thanks!

 
New Post
11/22/2008 6:50 PM
 

 I'd love to see this resolved. Same issue with the Blog module. One reason you want a display name that's different from the login name is for additional security, so people can't try to guess a password now that they have a user name. So now that I implement the blog module I have to go back and explain to my users why they are seeing their login name rather than their display name. Idiotic. It's really pretty tedious and amateurish that the DNN people let this kind of idiosyncracy exist. They spend so much time and money promoting themselves, but get defensive when bugs are pointed out in their product, and claim that the user has no right to complain since they're getting the product for free. Hey, I wouldn't mind paying at all for a decent program. I'd sure rather pay $100 if it's going to save me 20 hours, sheesh, that's $5 per hour, and  then multiply this times the number of hours wasted in endless pursuit of weird errors. It's beyond belief. To read Shawn Walker, he thinks people want to know, and spends half of his book talking about how late they worked one night and how much pizza they ate. Hey, everybody works long hours, especially with buggy programs.

 

 
New Post
1/17/2009 12:44 PM
 

A solution, at least in my DNN 4.9, is to make some small modifications in the following 4 stored procedures in de DDN-database:
dnn_Blog_GetComment, dnn_Blog_ListComments, dnn_Blog_Upgrade_ListComments, dnn_Blog_AddComment.

The first three stored procedures retrieve comment-data from the database for displaying purposes in the page where your blog is. The original queries retrieve the UserName. The modification in all the three procedures is to let them retrieve the DisplayName as username. This works for new and old comments.

The fourth stored procedure saves a new comment in the table 'dnn_Blog_Comments'. Originally it stores the username the field 'Author'. Here, the modification is to retrieve the DisplayName from the table 'dnn_users' and save this in the field 'Author' of the table 'dnn_Blog_Comments'. Because the exsisting comment still have the username in the field 'Author', this works only for newly added comments.

See below for the modified stored procedures.

Arnout Esser

This solution may be cheap, but at least it's free :)

 

dnn_Blog_GetComment

SELECT C.CommentID, C.EntryID, C.UserID, C.Title, C.Comment, C.AddedDate, U.FirstName + ' ' + U.LastName AS UserFullName, C.Author, C.Approved, U.DisplayName AS UserName
FROM   dbo.dnn_Blog_Comments C LEFT OUTER JOIN dbo.dnn_Users U ON C.UserID = U.UserID
WHERE  (C.CommentID = @CommentID)

 


dnn_Blog_ListComments

SELECT C.CommentID, C.EntryID, C.UserID, C.Title, C.Comment, C.AddedDate, U.FirstName + ' ' + U.LastName AS UserFullName, C.Author, C.Approved, U.DisplayName AS UserName
FROM   dbo.dnn_Blog_Comments C LEFT OUTER JOIN dbo.dnn_Users U ON C.UserID = U.UserID
WHERE  (C.EntryID = @EntryID) AND (C.Approved = 1 OR C.Approved <> @ShowNonApproved)

 


dnn_Blog_Upgrade_ListComments

SELECT C.CommentID, C.EntryID, C.UserID, C.Title, C.Comment, C.AddedDate, U.FirstName + ' ' + U.LastName AS UserFullName, U.DisplayName AS UserName
FROM   dbo.dnn_NewBlog_Comments C LEFT OUTER JOIN dbo.dnn_Users U ON C.UserID = U.UserID
WHERE  (EntryID = @EntryID)

 

dnn_Blog_AddComment

ALTER PROCEDURE dbo.dnn_Blog_AddComment
 @EntryID int,
 @UserID int,
 @Title nvarchar(255),
 @Comment ntext,
 @Author nvarchar(50),
 @Approved bit
AS

DECLARE @Author2 AS nvarchar(50)

SELECT @Author2=DisplayName FROM dnn_Users WHERE (dnn_Users.UserID = @UserID)

INSERT INTO dbo.dnn_Blog_Comments (
 [EntryID],
 [UserID],
 [Title],
 [Comment],
 [Author],
 [Approved],
 [AddedDate]
) VALUES (
 @EntryID,
 @UserID,
 @Title,
 @Comment,
 @Author2,
 @Approved,
 GetUTCDate()
)

select SCOPE_IDENTITY()
 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How does DotNetNuke Forums use Display Name instead of User Name as a userHow does DotNetNuke Forums use Display Name instead of User Name as a user's 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