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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Display User Name in Text/HTML ModuleDisplay User Name in Text/HTML Module
Previous
 
Next
New Post
11/15/2006 3:20 PM
 
Within the text of the Text/HTML module, is it possible to display the logged in user's name?

Thanks,

Casey
 
New Post
11/15/2006 7:24 PM
 
you might check out our dbHTML module at Brillnat.com  It is a text HTML module that allows the display of information from a database.  The dbHTML module allows you to place tokens (or tags) in your HTML that are replaced with system values or database values or querystring values. 

In dbHTML to display the User name you can use the system tag available. 

The dbHTML has a many tags available including

 [sys:LongDate]
 [sys:ShortDate]
 [sys:LongTime]
 [sys:ShortTime]
 [sys:HomeDir]
 [sys:FullHomeDir]
 [sys:userinfo_FirstName]
 [sys:userinfo_FullName]
 [sys:userinfo_LastName]
 [sys:userinfo_UserID]
 [sys:userinfo_Username]
 [sys:userprof_Cell]
 [sys:userprof_City]
 [sys:userprof_Country]
 [sys:userprof_Fax]
 [sys:userprof_FirstName]
 [sys:userprof_FullName]
 [sys:userprof_IM]
 [sys:userprof_LastName]
 [sys:userprof_PostalCode]
 [sys:userprof_PreferredLocale]
 [sys:userprof_Region]
 [sys:userprof_Street]
 [sys:userprof_Telephone]
 [sys:userprof_TimeZone]
 [sys:userprof_Unit]
 [sys:userprof_Website]
 [sys:PortalInfo_Description]
 [sys:PortalInfo_PortalName]
 [sys:PortalInfo_PortalId]
 [sys:PortalInfo_PortalAlias]
 [sys:PortalInfo_Version]
 [sys:PortalInfo_Currency]
 [sys:PortalInfo_Email]
 [sys:query_UserAgent]
 [sys:query_Url]
 [sys:query_UrlReferrer]
 [sys:query_UserHostAddress]
 [sys:query_UserHostName]
 [sys:query_RawUrl]  

You just need to place the tag in you HTML and the module will do the replacement at display time. 

For example:  For the date/time you would just add [sys:LongDate] to get the date like "Wednesday, August 16, 2006", [sys:ShortDate] to get "8/16/2006", [sys:LongTime], [sys:ShortTime] ....

mj


Michael Jackson
Brillnat.com
Custom module development
Database access tokenized HTML modules
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Display User Name in Text/HTML ModuleDisplay User Name in Text/HTML Module


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