Displaying user profile information on a custom badge

I can see where I can set a custom badge for a user but what I want to do is have a default badge which is displayed when I do not have a user logged in and a custom badge when a user is logged in.


I want to take the information from the profile and display on the custom badge and share the badge across all users that may use the device.


I have searched the programming guide and looked at the toolkit demos but haven't made connection. How can I retrieve this information and populate the html elements on the custom badge?