Active Social MembersList Control
24 Apr 2010 02:20 PM
    The Active Social Members list control can be used in a variety ways. This control is used for displaying members within your community. There are several different ways that you can filter the members list using the properties listed below.
    Property Description
    FriendsOnly Determines whether or not to restrict list to friends only.
    Possible Values: True or False
    Default Value: False
    FilterByGroupId Allows to filter members by a particular group id.
    Possible Values: Numbers larger than 0
    Default Value: -1
    Note: The current group id will be used when added to a group view control.
    FilterByUserId This will restrict the members list to friends of the specified user id.
    Possible Values: Numbers larger than 0
    Default Value: -1
    Note: When Friends Only is set to True, the value will default to the id of the current logged in user unless the control is being used on a ProfileView control.  When used on a ProfileView control this value will always default to the userid of the profile currently being viewed.
    OnlineOnly Determines whether or not to restrict the list to users that are currently online.
    Possible Values: True or False
    Default Value: False
    RoleId This will filter users according to a specific role id. This will default to the Member Role specified in the Active Social Control Panel.
    Possible Values: Numbers larger than 0.
    Default Value: The value specified for the Member Role in the Active Social Control Panel

    Additional Properties
    Property Description
    PagingEnabled Option to disable paging for control.  This is useful when only displaying a short list of members.
    Possible Values: True or False
    Default Value: True
    PageSize Number of records to display. 
    Possible Values: Numbers larger than 1
    Default Value: Page size value specified in the Active Social Control Panel
    RandomOrder Option to display results in a random order.  This is useful when displaying a random list of group members.
    Possible Values: True or False
    Default Value: False
    RepeatDirection Determines the repeating direction for the results output.
    Possible Values: 0 or 1
    Default Value: 1
    Note: 0 = Horizontal, 1 = Vertical

    Examples

    New Members for a group
    
    <active:memberslist templatename="Groups/GroupsNewMembers" pagingenabled="False" pagesize="5" runat="server">
    

    Template
    
    [AS:CONTROL:LIST]
    [AS:CONTROL:LIST:HEADER]
    <ul>
        [/AS:CONTROL:LIST:HEADER]
        [AS:CONTROL:LIST:ITEM]
        <li>
        <a href="[AS:PROFILE:USERURL]">
        <img alt="" style="border-width: 0px; border-style: solid;" src="[AS:HANDLER:PROFILEPIC]?PortalId=[AS:PORTALSETTINGS:PORTALID]&amp;uid=[AS:PROFILE:USERID]&amp;h=24&amp;w=24" title="[AS:PROFILE:DISPLAYNAME]" />
        [AS:PROFILE:DISPLAYNAME]
        </a>
        </li>
        [/AS:CONTROL:LIST:ITEM]
        [AS:CONTROL:LIST:ALTITEM]
        <li>
        <a href="[AS:PROFILE:USERURL]">
        <img alt="" style="border-width: 0px; border-style: solid;" src="[AS:HANDLER:PROFILEPIC]?PortalId=[AS:PORTALSETTINGS:PORTALID]&amp;uid=[AS:PROFILE:USERID]&amp;h=24&amp;w=24" title="[AS:PROFILE:DISPLAYNAME]" />
        [AS:PROFILE:DISPLAYNAME]
        </a>
        </li>
        [/AS:CONTROL:LIST:ALTITEM]
        [AS:CONTROL:LIST:FOOTER]
    </ul>
    [/AS:CONTROL:LIST:FOOTER]
    [AS:CONTROL:LIST:NORESULTS][RESX:NoMembersFound][/AS:CONTROL:LIST:NORESULTS]
    [/AS:CONTROL:LIST]
    
    You are not authorized to post a reply.
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy