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.

Show default Avatars in the Users section of Social Networking  (Mono Support )

13296 put(a) pogledan, 6 odgovor(a) 17.10.2012. 10:35:00Kreirao(la) johnsamuel
johnsamuel

johnsamuel

17.10.2012. 10:35:00
Hi, We want to display avatars all Users in this section. Is there are control setting for this? At present User avatars only show if the User has uploaded a .jpg. If the User has not replaced the default avatar then they are not displayed in the User list.
Ovaj sadržaj još nije ocijenjen. 
429 Reputacija 46 Ukupno objava
denis

denis

17.10.2012. 11:53:15
I am assuming that you are referring to the Dashboard.aspx page in the demo site. You just have to set the ShowValidAvatarsOnly property of the ctlNewUsers part to false to achieve this.
Ovaj sadržaj još nije ocijenjen. 
7207 Reputacija 956 Ukupno objava
johnsamuel

johnsamuel

19.10.2012. 8:35:37
Thanks Denis, I'm in the page /MonoX/Pages/SocialNetworking/Dashboard.aspx now but cannot identify ctlNewUsers part. I go to the Web part properties but these are for the whole Social Networking page. I cannot see ctlNewUsers. Where is this? Thanks
Ovaj sadržaj još nije ocijenjen. 
429 Reputacija 46 Ukupno objava
imarusic

imarusic

19.10.2012. 9:13:58
Hi Johnsamuel,

ctlNewUsers control is not in the web part zone so you need to open Dashboard markup and set the "ShowValidAvatarsOnly" property directly on the "ctlNewUsers" control.

Regards.
Ovaj sadržaj još nije ocijenjen. 
3016 Reputacija 428 Ukupno objava
GeorgeBirbilis11

GeorgeBirbilis11

19.10.2012. 14:55:35
if you open up MonoX/Pages/SocialNetworking/Dashboard.aspx you see:

<div class="people">
<MonoX:NewUsers
runat="server"
ID="ctlNewUsers"
CacheDuration="600"
IsPagerVisible="false"
ShowValidAvatarsOnly="true"
SortBy="SortRandomly"
PageSize="20"
PagingEnabled="false" >
</MonoX:NewUsers>
</div>

need to edit the control property (XML attribute ShowValidAvatarsOnly) there
Ocjena 5,00, 1 glas(ova). 
0 Reputacija 3 Ukupno objava
GeorgeBirbilis13

GeorgeBirbilis13

9.11.2012. 12:37:11
we just had the case where it was considering as invalid also some avatars coming from gravatar.com, without an obvious reason and was hiding those users

anyway I feel the default behaviour should be to show ALL avatars, even for those with no image/gravatar to thus suggest to the users to set their avatar
Ovaj sadržaj još nije ocijenjen. 
211 Reputacija 26 Ukupno objava