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 )

Viewed 6801 time(s), 6 post(s) 10/17/2012 10:35:00 AMby johnsamuel
johnsamuel

johnsamuel

10/17/2012 10:35:00 AM
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.
This content has not been rated yet. 
429 Reputation 46 Total posts
denis

denis

10/17/2012 11:53:15 AM
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.
This content has not been rated yet. 
7207 Reputation 956 Total posts
johnsamuel

johnsamuel

10/19/2012 8:35:37 AM
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
This content has not been rated yet. 
429 Reputation 46 Total posts
imarusic

imarusic

10/19/2012 9:13:58 AM
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.
This content has not been rated yet. 
3016 Reputation 428 Total posts
GeorgeBirbilis11

GeorgeBirbilis11

10/19/2012 2:55:35 PM
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
Rated 5.00, 1 vote(s). 
0 Reputation 3 Total posts
GeorgeBirbilis13

GeorgeBirbilis13

11/9/2012 12:37:11 PM
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
This content has not been rated yet. 
211 Reputation 26 Total posts