> Forums > Active Social > General Discussion > ENH - Automatically add new users to a predefined group.
Last Post 30 May 2010 11:36 PM by Frozen DNN. 13 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

--
10 May 2010 08:19 AM
    To get this to happen, must the user register via active social or is it linked through core dnn registration? I have set this feature up in the control panel and members are not being autofriended or autogrouped.
    Dan
    www.MarathonNation.us
    www.EnduranceNation.us
    www.ReThinkAcademy.com
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7671

    --
    10 May 2010 08:36 AM
    You must use the Active Social signup and login controls in order for these features to work properly.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Tareq
    Customers
    Tareq
    Post Count:440

    --
    10 May 2010 08:36 AM
    I beleive you will have to use the AS registration for this to happen.
    DanielH
    Customers
    DanielH
    Post Count:104

    --
    10 May 2010 08:40 AM
    ughh...ok, thanks. That doesn't always work because I know there are a few of us who are registering in other ways because of payment requirements, etc.
    Dan
    www.MarathonNation.us
    www.EnduranceNation.us
    www.ReThinkAcademy.com
    R1ckJon3z
    Customers
    R1ckJon3z
    Post Count:116

    --
    11 May 2010 07:48 AM
    I am using Dynamic registration and adding users to a pre-defined group and auto-friending using the SQL completion event.  It's working well for me.
    Poker Sharkz
    Ricky Jones | PokerSharkz.net | Social Networking For Poker Players
    Ben Thompson
    Customers
    Ben Thompson
    Post Count:230

    --
    11 May 2010 05:46 PM
    Hi Ricky, would it be possible to share your completion event SQL?

    Cheers
    Ben
    www.itproject.com.au
    R1ckJon3z
    Customers
    R1ckJon3z
    Post Count:116

    --
    11 May 2010 07:05 PM
    Hey Ben,

    This is how I am accomplishing my auto-friend & auto-groups using Dynamic Registration:

    To add a user to a group on registration I created an SQL completion event with the following SQL Statement:

    INSERT into activesocial_Groups_Members (GroupId,UserId,MemberStatus,DateCreated,DateApproved)VALUES('Your Group ID','$(UserID)','1',GetDate(),GetDate())

    You can look in activesocial_Groups to find out what the GroupId is...


    For Auto-Friend there is an additional step.  To automatically add a friend on registration, I created 2 SQL completion events with the following SQL statements:

    1st Event

    INSERT INTO activesocial_Friends  (FriendId, UserId,PortalId,IsApproved,IsRejected)VALUES ('Friend ID','$(UserID)','$(PortalID)','True','False')

    2nd Event

    INSERT INTO activesocial_Friends  (FriendId, UserId,PortalId,IsApproved,IsRejected)VALUES ('$(UserID)','Friend ID','$(PortalID)','True','False')


    If you only use 1 event for auto-friend, then it's like you've added someone but haven't been confirmed by the other person, so use the 2 events as I have described.  You could additionally use an email completion event to inform the new user that they have a new friend.  I didn't create the email event, but it would be easy to do.  Hope this helps.
    Poker Sharkz
    Ricky Jones | PokerSharkz.net | Social Networking For Poker Players
    Ben Thompson
    Customers
    Ben Thompson
    Post Count:230

    --
    18 May 2010 05:43 PM
    Thanks Ricky, this helps me out until I can move back to the Active Social Registration process.

    Cheers
    www.itproject.com.au
    Frozen DNN
    Customers
    Frozen DNN
    Post Count:1328

    --
    18 May 2010 05:47 PM
    Thanks!
    I am using the latest AS/AF/DNN available.
    Thanks.
    Frozen DNN
    Customers
    Frozen DNN
    Post Count:1328

    --
    22 May 2010 02:08 AM
    >
    INSERT into activesocial_Groups_Members (GroupId,UserId,MemberStatus,DateCreated,DateApproved)VALUES('Your Group ID','$(UserID)','1',GetDate(),GetDate())

    INSERT into activesocial_Groups_Members (GroupId,UserId,MemberStatus,DateCreated,DateApproved)VALUES('5','$(UserID)','1',GetDate(),GetDate())

    Something like this?
    I am using the latest AS/AF/DNN available.
    Thanks.
    Frozen DNN
    Customers
    Frozen DNN
    Post Count:1328

    --
    29 May 2010 12:38 PM
    Does this look correct? Anyone please

    1st Event
    INSERT INTO activesocial_Friends (FriendId, UserId,PortalId,IsApproved,IsRejected)VALUES ('1656','$(UserID)','$(PortalID)','True','False')

    2nd Event
    INSERT INTO activesocial_Friends (FriendId, UserId,PortalId,IsApproved,IsRejected)VALUES ('$(UserID)','1656','$(PortalID)','True','False')
    I am using the latest AS/AF/DNN available.
    Thanks.
    Frozen DNN
    Customers
    Frozen DNN
    Post Count:1328

    --
    29 May 2010 12:41 PM
    I was also wondering whether there is a way to add a predefined friend to all old members via sql script? Also, has anyone worked out any solution to integrate Dynamic Registration with AS when it comes to the profile picture? Is there is/are such thing/s, can anyone please share it? Thanks a lot.
    I am using the latest AS/AF/DNN available.
    Thanks.
    R1ckJon3z
    Customers
    R1ckJon3z
    Post Count:116

    --
    30 May 2010 06:48 PM
    That looks correct Frozen..
    Poker Sharkz
    Ricky Jones | PokerSharkz.net | Social Networking For Poker Players
    Frozen DNN
    Customers
    Frozen DNN
    Post Count:1328

    --
    30 May 2010 11:36 PM
    Posted By R1ckJon3z on 30 May 2010 07:48 PM
    That looks correct Frozen..


    Thank you!
    I am using the latest AS/AF/DNN available.
    Thanks.
    You are not authorized to post a reply.
    > Forums > Active Social > General Discussion > ENH - Automatically add new users to a predefined group.
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy