Mono Support Adding profile pic to another container 

Viewed 35813 time(s), 4 post(s), 2/22/2013 12:49:11 AM - by Sergio
2/22/2013 12:49:11 AM
15 Reputation 1 Total posts

I would like to add the same profile picture that is displayed under Profile module to other places on the website, like at the homepage so that it shows your name and profile picture when you are logged in. Instead of the three buttons that come by default, like profile, message and logout. 

What would be a good way to know what control is taking care of this and just include on that page?

Appreciate the help!

1
2/22/2013 10:01:20 AM
1849 Reputation 181 Total posts

You can use the  UserAvatar control from "..\Portal\MonoX\ModuleGallery\ProfileModule\UserAvatar.ascx".

2
2/22/2013 7:01:21 PM
135 Reputation 15 Total posts

but how do you set it to use the current user (id)?

3
2/22/2013 7:23:12 PM
15993 Reputation 2214 Total posts

You need to set the userid property to SecurityUtility.GetUserId(), you can take a look at the GitHub demo pages project and then look at user profile pages like aboutme.aspx.

Regards

4
This is a demo site for MonoX. Please visit Mono Software for more info.