> Forums > Active Social > Themes and Templates > Group ID Token in AS
Last Post 12 Feb 2014 10:03 AM by Andrew Walker. 9 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Jeff Blanks
Customers
Jeff Blanks
Post Count:389

--
11 Aug 2010 06:36 PM
    I'm trying to create 2 custom views. One for Friends and the other for Groups.

    My intent is to remove the groups and friends tabs in the profile view and give the user a seperate page view of groups and friends that will allow the user to manage them. IE: removing friends and groups, sending messages, all on one page for each.

    Problem with groups:

    I created a custom view based on the groupslist.ascx template and binds won't work, so I've added tokens where I can. But I still can't get group description or the leave/join group control to work. I also tried adding:

    < a class="CommandButton" onclick="asClient.Groups.Leave(this,' [ AS:GROUPINFO:GROUPID ]'); return false;" href="" >Leave Group< / a >

    along with a few other things. Seems a lot of the tokens can't be used outside the groupview. I also tried using Will's code posted here: http://www.activemodules.com/Commun...fault.aspx

    When I use [ AS:GROUPINFO:GROUPID ] I get "A call to Bind must be assigned to a property of a control inside a template."

    And when using [ AS:LINK:JoinGroup ] I get only "view group"

    If I use [ AS:CONTROL:JoinGroup ] in conjunction with [ AS:LINK:JoinGroup ] I get:

    A critical error has occurred.
    The ID 'ctlGroupAction' is already used by another control.

    If I use [ AS:CONTROL:JoinGroup ] I get ehhh hhmm "Join Group".

    I'm using: < active:groupslist id="ctlGroupsBox" filterbyuserid="[AS:SOCIALUSER:USERID]" grouptypeid="-1" runat="server" >


    Any ideas anyone?
    Cheers! Jeff
    @northeastok | @jeffblanks | My Blog
    Tags: Group Tokens
    Jeff Blanks
    Customers
    Jeff Blanks
    Post Count:389

    --
    29 Aug 2010 12:40 PM
    Has no one else tried making a custom group template filtered on the groups a user belongs to and placed it on a seperate page for group management?
    Cheers! Jeff
    @northeastok | @jeffblanks | My Blog
    Daniel Comp
    Customers
    Daniel Comp
    Post Count:80

    --
    30 Nov 2010 11:39 PM
    Only enough to get the same error:
    A call to Bind must be assigned to a property of a control inside a template.

    Google brings me here.

    All I'm trying to do is get this {AS:GROUPINFO:GROUPNAME}to work on the MyGroupsMini.ascx
    the Enterprising Cycle™: decades of wisdom reduced to invaluable hours
    Jeff Blanks
    Customers
    Jeff Blanks
    Post Count:389

    --
    04 Dec 2010 11:17 AM
    Try [ AS:CONTROL:GROUPLINK ]

    It will render the group name as a link
    Cheers! Jeff
    @northeastok | @jeffblanks | My Blog
    Jeff Blanks
    Customers
    Jeff Blanks
    Post Count:389

    --
    03 Feb 2011 01:58 PM

    My intent is to remove the groups and friends tabs in the profile view and give the user a seperate page view of groups and friends that will allow the user to manage them. IE: removing friends and groups, sending messages, all on one page for each.


    I've still been unable to accomplish this with the latest release. I just cannot figure out a way to allow members to leave groups unless they are on the actual group page itself.

    Anyone else try to do similar with success?
    Cheers! Jeff
    @northeastok | @jeffblanks | My Blog
    Jeff Blanks
    Customers
    Jeff Blanks
    Post Count:389

    --
    21 May 2011 05:24 PM
    I've still been unable to accomplish this with the latest release. I just cannot figure out a way to allow members to leave groups unless they are on the actual group page itself.


    Revisiting. I've still not found a solution outside of being on the groupview page in order to leave a group.
    Cheers! Jeff
    @northeastok | @jeffblanks | My Blog
    Ben Thompson
    Customers
    Ben Thompson
    Post Count:230

    --
    12 Sep 2011 07:16 AM
    Any update on this issue Jeff ? It giving me grief also
    www.itproject.com.au
    Jeff Blanks
    Customers
    Jeff Blanks
    Post Count:389

    --
    12 Sep 2011 08:26 AM
    Unfortunately not. I haven't revisited it in the latest release, but I highly doubt there is a way to accomplish it yet, based on the recent release notes.
    Cheers! Jeff
    @northeastok | @jeffblanks | My Blog
    Steven Webster
    Customers
    Steven Webster
    Post Count:1682

    --
    13 Sep 2011 07:03 AM
    A separate module using the API would work:

    GroupsAPI ug = new Active.Modules.Social.API.GroupsAPI();
    ug.JoinGroup(PortalId, UserId, ASGroupID, true, true);
    ug.LeaveGroup(PortalId, UserId, ASGroupID);


    Steven Webster
    Manager, Community Platform
    F5 Networks, DevCentral
    Andrew Walker
    Customers
    Andrew Walker
    Post Count:44

    --
    12 Feb 2014 10:03 AM
    A billion years later - I believe I found something that could've helped you... if you're still using this beast.

    Use javascript and jQuery to help you out - you can get the group id in javascript by calling:
    asClient.gid

    Hopefully you're not tied to AS and have migrated to DNN 7... unfortunately for me & my client - we're pretty deep here... (sad trombone)
    Our Sites that use ActiveSocial:
    BigGameLogic.com - for the serious deer hunter (track deer movement/patterns).
    ForemostBrewing.com - for the homebrewer and winemaker
    ForemostHunting.com - for the avid hunting sportsman
    GameBirdHunts.com - for the upland game bird hunter
    You are not authorized to post a reply.
    > Forums > Active Social > Themes and Templates > Group ID Token in AS
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy