> Forums > Active Social > Themes and Templates > My Groups
Last Post 03 Mar 2011 03:52 PM by DanielH. 4 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
DanielH
Customers
DanielH
Post Count:104

--
21 Feb 2011 05:03 PM
    • Active Social Version: 1.9.1
    • DotNetNuke Version: 5.6.1
    Similar to whats on the profile page? Looking for any strategy to list only the groups I belong too.

    Thanks!
    Dan
    www.MarathonNation.us
    www.EnduranceNation.us
    www.ReThinkAcademy.com
    Tags: My Groups
    Jeff Blanks
    Customers
    Jeff Blanks
    Post Count:387

    --
    23 Feb 2011 08:06 PM
    I've created a couple different custom views that you could tailor to your use. The key here is how to setup the control:
    <active:groupslist id="ctlGroupsBox" filterbyuserid="[AS:SOCIALUSER:USERID]" usersgroupsonly="true" grouptypeid="-1" runat="server"> 


    A quick and simple template:
    [code<active:groupslist id="ctlGroupsBox" filterbyuserid="[AS:SOCIALUSER:USERID]" usersgroupsonly="true" grouptypeid="-1" runat="server">

    <asp:DataList ID="lstGrid" RepeatDirection="Vertical" RepeatLayout="table" runat="server">



    <active:groupimage runat="server" id="imgGroup" imagename='[AS:GROUPINFO:GroupIcon]' imagesize='mini' imagealt='[AS:GROUPINFO:GroupName]' portalid='[AS:PORTALSETTINGS:PORTALID]' imageurl='' />

    [AS:CONTROL:GROUPLINK]





    ] [/CODE]

    And a more feature rich custom view:
    <active:groupslist id="ctlGroupsBox" filterbyuserid="[AS:SOCIALUSER:USERID]" usersgroupsonly="true" grouptypeid="-1" runat="server">
      <customtemplate>
        <asp:DataList ID="lstGrid" RepeatDirection="Vertical" RepeatColumns="1" RepeatLayout="Table" Width="100%" runat="server">
          <itemtemplate>
            <div class="box">
              <div class="photo w80">
                <active:groupimage runat="server" id="imgGroup" imagename='[AS:GROUPINFO:GroupIcon]' imagesize='sm' imagealt='[AS:GROUPINFO:GroupName]' portalid='[AS:PORTALSETTINGS:PORTALID]' imageurl='' />
              </div>
              <div class="leftfloat min85 max85">
                <div class="rightfloat p5">
                  <ul class="aslist">
                    <li><span class="icon mem"></span> Members</li>
                    <li><span class="icon action"></span>[AS:LINK:JoinGroup]</li>
                  </ul>
                </div>
                <h4>[AS:CONTROL:GROUPLINK]</h4>
              </div>
            </div>
          </itemtemplate>
          <alternatingitemtemplate>
            <div class="box-alt">
              <div class="photo w80">
                <active:groupimage runat="server" id="imgGroup" imagename='[AS:GROUPINFO:GroupIcon]' imagesize='sm' imagealt='[AS:GROUPINFO:GroupName]' portalid='[AS:PORTALSETTINGS:PORTALID]' imageurl='' />
              </div>
              <div class="leftfloat min85 max85">
                <div class="rightfloat p5">
                  <ul class="aslist">
                    <li><span class="icon mem"></span> Members</li>
                    <li><span class="icon action"></span>[AS:LINK:JoinGroup]</li>
                  </ul>
                </div>
                <h4>[AS:CONTROL:GROUPLINK]</h4>
              </div>
            </div>
          </alternatingitemtemplate>
        </asp:DataList>
      </customtemplate>
    </active:groupslist>
    <div class="alignright">[AS:CONTROL:PAGER]</div>
     

    This is with limitations. You'll have to change the css classes to suit your needs. I have also been trying to create this view for group management. IE: leave groups without actually visiting the group, but currently not possible: http://www.activemodules.com/active...ken-in-as/

    Hope this helps!
    Cheers! Jeff
    @northeastok | @jeffblanks | My Blog
    Jeff Blanks
    Customers
    Jeff Blanks
    Post Count:387

    --
    23 Feb 2011 08:08 PM
    Code got mangled. This is the quick view:
    <active:groupslist runat="server" grouptypeid="-1" usersgroupsonly="true" filterbyuserid="&#91;AS:SOCIALUSER:USERID&#93;" id="ctlGroupsBox"><asp:datalist runat="server" repeatlayout="table" repeatdirection="Vertical" id="lstGrid">
    <active:groupslist id="ctlGroupsBox" filterbyuserid="[AS:SOCIALUSER:USERID]" usersgroupsonly="true" grouptypeid="-1" runat="server">
      <customtemplate>
        <asp:DataList ID="lstGrid" RepeatDirection="Vertical" RepeatLayout="table" runat="server">
          <itemtemplate>
            <div class="clearfix divcenter">
              <div class="leftfloat photo">
                <active:groupimage runat="server" id="imgGroup" imagename='[AS:GROUPINFO:GroupIcon]' imagesize='mini' imagealt='[AS:GROUPINFO:GroupName]' portalid='[AS:PORTALSETTINGS:PORTALID]' imageurl='' />
              div>
                <h6 class="p5 large">[AS:CONTROL:GROUPLINK]h6>
            div>
          itemtemplate>
        asp:DataList>
      customtemplate>
    active:groupslist>


    Edit: quick reply renders correctly but when I go to edit  a post, my code gets horrific. Sorry Daniel, but I hope it's enough for you to get started!
    Cheers! Jeff
    @northeastok | @jeffblanks | My Blog
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    24 Feb 2011 08:41 AM
    Sometimes its easier to attach a text file. I'm going to try and resolve the issue with the missing closing tags today.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    DanielH
    Customers
    DanielH
    Post Count:104

    --
    03 Mar 2011 03:52 PM
    Thanks for this Jeff! It worked out well
    Dan
    www.MarathonNation.us
    www.EnduranceNation.us
    www.ReThinkAcademy.com
    You are not authorized to post a reply.
    > Forums > Active Social > Themes and Templates > My Groups
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy