Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Users Online Mo...  Display FirstName Lastname
Previous Previous
 
Next Next
New Post 1/23/2006 2:15 AM
User is offline Darren Lock
4 posts
10th Ranked


Display FirstName Lastname 
Would it be possible to have the module display FirstName/LastName as our users are all Intranet users and their Usernames are obscure domainname/personnel number.
 
New Post 7/26/2006 8:59 AM
User is offline Andrew Proctor
1 posts
10th Ranked


Re: Display FirstName Lastname 
I managed ths by making a small change to the stored procedure dbo.GetOnlineUsers. I changed this:

SELECT
    UO.UserID,
    U.Username

To this:

SELECT
    UO.UserID,
    U.DisplayName AS Username

Probably not an ideal way of doing it, and it'll almost certainly get overwritten at the next update, but for now it works for me and displays wahtever I have in the Users.DisplayName field for that user (for me, its Firstname & " " & lastName)

HTH
 
New Post 7/26/2006 12:58 PM
User is offline michael jackson
172 posts
Brillnat.com
9th Ranked


Re: Display FirstName Lastname 

If you don't want to mess with the module code, you could put the following sql statement into the reports module (dnn4)

something like:

select u.Firstname, u.LastName from usersonline as UO inner join users as U on UO.UserID=U.Userid where UO.PortalID=0

(change the portalid to your portalID in the example)

Or I have a module that is similar to the text.html module but allows data access and you could put that query into it and then format the output anyway you like. 

 

mj

 


Michael Jackson
Brillnat.com
Custom module development
Database access tokenized HTML modules
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Users Online Mo...  Display FirstName Lastname
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


telerik
telerik r.a.d.controls suite is the most innovative and comprehensive toolset for ASP.NET development, tailored for seamless integration with the DotNetNuke project. This integrated collection of controls allows professionals to build web-solutions with the UI richness and responsiveness of desktop applications.
dnn.telerik.com
CrystalTech
CrystalTech Web Hosting™ provides first-class service and support. Our value-packed ASP.NET plans offer DNN installation, SQL 2005 and up to 100 domain names starting at only $16.95 per month!
CrystalTech.com
DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP