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