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 )

36231 put(a) pogledan, 4 odgovor(a) 22.2.2013. 0:49:11Kreirao(la) Sergio
Sergio

Sergio

22.2.2013. 0:49:11
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!

Ovaj sadržaj još nije ocijenjen. 
15 Reputacija 1 Ukupno objava
kpeulic

kpeulic

22.2.2013. 10:01:20
You can use the  UserAvatar control from "..\Portal\MonoX\ModuleGallery\ProfileModule\UserAvatar.ascx".
Ovaj sadržaj još nije ocijenjen. 
1849 Reputacija 181 Ukupno objava
mnenvo2

mnenvo2

22.2.2013. 19:01:21
but how do you set it to use the current user (id)?
Ovaj sadržaj još nije ocijenjen. 
135 Reputacija 15 Ukupno objava
khorvat

khorvat

22.2.2013. 19:23:12
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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava