Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Automatting User Group assignment
Avatar
Stan Dahl
Member
sp_UserOfflineSmall Offline
Sep 9, 2015 - 12:58 pm

Hi guys.  We're real close to automating our site's registration process 100% with Infusionsoft, Wishlist Member and Simplepress.  We're 1 step away and are wondering if you guys might be able to point us in the right direction.

Does Simplepress have any kind of API function or another solution that would allow Infusionsoft to fire off an action / run a program where we can pass an email address and name over to Simplepress to put that User into a specific User Group?

Any ideas?

As always, we appreciate any assistance.

Pete

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 9, 2015 - 3:10 pm

Hey Stan,

I'm not 100% sure on what role Infusionsoft is playing here, but Wishlist Member is a commonly used membership plugin that works well with SP. You can map WP roles to SP user groups in Forum > User Groups > Map Users to User Group, so if Infusionsoft is involved in roles would that do the job?

Reference How to Configure Simple Press with Membership Plugin?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 9, 2015 - 3:26 pm

Sort of... We have an api for such, but you need to pass it a user ID vice email/username... But assume you have that available as well...

Avatar
Stan Dahl
Member
sp_UserOfflineSmall Offline
Sep 9, 2015 - 4:23 pm

Ike - he doesn't want to take that route, I believe to keep the number of Roles and membership Levels to a minimum.

Mr Papa - We'll have that info to pass over.  Is there a link with info that can help me get the ball rolling on figuring something like this out?  Or any suggestions on where to go from here?

Thanks again.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 9, 2015 - 9:25 pm

yeah, knew that was coming, but was at work and couldnt post it... 🙂

so for adding memberships, use this api function:

function sp_add_membership($usergroup_id, $user_id) 

for removing, use this one:

function sp_remove_membership($usergroup_id, $user_id)

you can also use these if needed:

function sp_check_membership($usergroup_id, $user_id)
function sp_reset_memberships($userid='') 
function sp_get_user_memberships($user_id) 

there are of course, more, just let us know what you  might want to do...

depending on where you do this, you may need to 'set up' some basic data with call like:

sp_forum_api_support();
Avatar
Stan Dahl
Member
sp_UserOfflineSmall Offline
Sep 11, 2015 - 11:31 am

Thank you, Mr. Papa.  We'll give it a go.

We appreciate the great support you guys provide here.

Pete

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 11, 2015 - 1:34 pm

please let us know if you have anymore questions..

Avatar
Stan Dahl
Member
sp_UserOfflineSmall Offline
Sep 11, 2015 - 5:23 pm

Okay, one last question to make sure we've covered all of our options before heading down a path.

A very small portion of our sites members will ever have access to the forum ($2500 investment for forum access, compared to $29/month investment for the rest of the site), they will have access to the forum for 2 months and then they lose access to the forum, but retain access to the rest of the site (Like the regular $29/month members).  We're trying to do this without changing anyone's WP Role.  We'd like for all customers to always have a Subscriber Role.

Is there a way to add & remove someone from a SP User Group automatically when they are added / removed from a WLM Level (without changing Roles)?

Thanks again,

 

Pete

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 11, 2015 - 9:01 pm

you will have to find a wishlist hook that gets fired when level gets changed...  believe there are several that might could be used...

when that hook gets fired, just use the api functions I gave you...

Avatar
Stan Dahl
Member
sp_UserOfflineSmall Offline
Oct 8, 2015 - 1:55 pm

Hey Mr. Papa. Can you tell us how we would go about retrieving a list of User Groups (group id and group name)?  This would be for all User Groups, not ones associated with a specific user.

Thanks again for the assistance.

Pete

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625