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 13465 time(s), 6 post(s) 17.10.2012 10:35:00by 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.
Dieser Inhalt wurde noch nicht bewertet. 
429 Reputation 46 Total posts
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.
Dieser Inhalt wurde noch nicht bewertet. 
7207 Reputation 956 Total posts
johnsamuel

johnsamuel

19.10.2012 08: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
Dieser Inhalt wurde noch nicht bewertet. 
429 Reputation 46 Total posts
imarusic

imarusic

19.10.2012 09: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.
Dieser Inhalt wurde noch nicht bewertet. 
3016 Reputation 428 Total posts
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
Bewertet mit 5,00, 1 Besucher. 
0 Reputation 3 Total posts
GeorgeBirbilis13

GeorgeBirbilis13

09.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
Dieser Inhalt wurde noch nicht bewertet. 
211 Reputation 26 Total posts