MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Adding profile pic to another container  (Mono Support )

Viewed 33529 time(s), 4 post(s) 2/22/2013 12:49:11 AMby Sergio
Sergio

Sergio

2/22/2013 12:49:11 AM
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!

This content has not been rated yet. 
15 Reputation 1 Total posts
kpeulic

kpeulic

2/22/2013 10:01:20 AM
You can use the  UserAvatar control from "..\Portal\MonoX\ModuleGallery\ProfileModule\UserAvatar.ascx".
This content has not been rated yet. 
1849 Reputation 181 Total posts
mnenvo2

mnenvo2

2/22/2013 7:01:21 PM
but how do you set it to use the current user (id)?
This content has not been rated yet. 
135 Reputation 15 Total posts
khorvat

khorvat

2/22/2013 7:23:12 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts