Products

Solutions

Resources

Partners

Community

About

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 ForumsUsers OnlineUsers OnlineIt displays the username nat the desplay nameIt displays the username nat the desplay name
Previous
 
Next
New Post
10/31/2007 6:56 PM
 

Ive found what I would call a serious oversight in the Users Online module.  I the Latest field displays the username and not the displayname,  which mean that half the clients logon details are now visable.

How can this be modified to display the the displayname

 

 
New Post
11/1/2007 9:27 AM
 

I remember a solution posted many months ago, which modified the stored procedure populating the module by replacing user name with displayname.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/4/2008 6:15 PM
 

Yes modify the sp (the Last User Registered portion) to look like this:


create procedure dbo.GetOnlineUserStatistics

@PortalID  int

as

-- Anonymous User Count
select count(*)
from  AnonymousUsers
where PortalId = @PortalID

-- Users Online Count
select count(*)
from UsersOnline
where PortalId = @PortalID

-- Last User Registered
SELECT DisplayName,
       UserID
FROM   Users
WHERE  UserID = (select top 1 UserId from UserPortals where PortalID = @PortalID order by UserPortalId desc)

-- Membership Count
select count(*)
from   UserPortals
where PortalId = @PortalID

-- Members in last day
select count(*)
from UserPortals
where PortalId = @PortalID and CreatedDate > DateAdd(d, -1, GetDate())

-- Members day before
select count(*)
from UserPortals
where PortalId = @PortalID and CreatedDate > DateAdd(d, -2, GetDate()) and CreatedDate < DateAdd(d, -1, GetDate())

 

GO

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsUsers OnlineUsers OnlineIt displays the username nat the desplay nameIt displays the username nat the desplay name


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