A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Integrating Members with SPF
Jan 23, 2010
2:40 am
Rookie
Forum Posts: 3
Member Since:
Jan 23, 2010
Offline

 

Are there any hooks that can be called from other (3rd party) plugins that will add a user to SPF?

 

Specifically, if a user buys a product from my site, I'd like to automatically give them a user/pass/permissions/group that they can login to SPF for support & updates… 

 

Is this possible?

 

Thanks

 

Matt

 

Jan 23, 2010
5:21 am

SP Master
Forum Posts: 22131
Member Since:
Nov 9, 2008
Offline

Creating new users, whether through the UI or as an automated task, is the purview of WP not SPF. So if you can find a plugin that creates a WP user then you will have your forum member as well – although the plugin will need to call the standard WP routines so that the correct actions are triggered.

Yellow Swordfish
Jan 23, 2010
9:58 am

SP Master
Forum Posts: 23582
Member Since:
Dec 10, 2006
Online

andy is correct that its much simpler to just let wp do it for you…  hopefully, your plugin is creating members in the standard wp 'way'…   if not (why not?), you could try calling our function sf_create_member_data($userid) when the member is created…

Jan 23, 2010
4:43 pm
Rookie
Forum Posts: 3
Member Since:
Jan 23, 2010
Offline

Excellent! thanks… looks like the plugin I'm using has an option to explicitly use the WP user tables… 

 

But I still have a question…. 

 

How do I assign a WP user into a specific SPF group with proper forum permissions?

 

I thought I saw somewhere in this forum a method that would take a userid and group to add the WP user into the right group, but I can't find it now… would that be what I'm looking for?

 

Thanks

 

Matt

 

Jan 23, 2010
4:59 pm

SP Master
Forum Posts: 23582
Member Since:
Dec 10, 2006
Online

you can either do it manually on the forum – user groups – manage user groups panel… can move any user into any group… permissions consist of assigning a user group and permission set to a forum… suggest you read our wiki (link in footer) getting started section of intro on these concepts…

by default, users are auto entered into the user group you have specified on the forum – options – members settings panel… on that panel too, you can also auto assign them to user groups based on their wp role…

Jan 23, 2010
5:32 pm
Rookie
Forum Posts: 3
Member Since:
Jan 23, 2010
Offline

Sorry Mr. Papa, 

 

I meant *automatically* and not manually (through a 3rd party plugin)

 

I think you led me to the answer though…. use a role manager (investigating Role Scoper, since Role Manager is reported to be broken in newer releases) and let the assigned role from WP be mapped to a SPF Group automatically.

 

Thanks for swift replies, excellent plugin and patience….

 

Matt

 

 

Jan 23, 2010
5:37 pm

SP Master
Forum Posts: 23582
Member Since:
Dec 10, 2006
Online

or use a membership plugin like wishlist… but yes, you are on the right track…

Apr 18, 2011
10:18 am
Angie
Guest

I've used Role Scoper to create different groups (let's say Role A and Role B). Based on what you said above, I expected to see those Roles as options for mapping to SP Group Memberships under Options>Member Settings.
What I do see is only the standard WP roles available for mapping to SP Groups.

 

Any thoughts on how to make those Role Scoper roles available?

Apr 18, 2011
11:11 am

SP Master
Forum Posts: 22131
Member Since:
Nov 9, 2008
Offline

I personally know nothing about the 'Role Scoper' plugin other than having heard of it. All I can do is tell you how WP handles Roles generally.

The core roles that come 'out of the box' with a clean install of WP are held in an array in the database WP Options table in a record named 'user_roles' which is prefixed with your selected Table Prefix. So – commonly that would be 'wp_user_roles'.

This database record holds the name of the role and all of the built in capabilities that WP predefines.

Within the WP api code this data is exposed for plugin developers in a global array called $wp_roles which in turn is used by SP to populate that list in the members option panel.

Any plugin built to add new roles to WP needs to add them to that database record. That is what it is for. So all I can think of is that 'Role Scoper' is not doing this via the proper WP API but is doing it's own thing and therefore not exposing its data to other plugins. I have no evidence for this, as I say I am noit familiar with that plugin, but this answer does suggest itself. Do you know how it works and if it follows the WP api?

Yellow Swordfish
Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: Mr Papa, SPQC
57 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

Top Posters:

-Radio-: 1251

Lee H: 606

Luffer: 535

Conrad_Farlow: 485

jim: 478

neon: 263

ovizii: 240

Tal: 240

Member Stats:

Guest Posters: 2616

Members: 7328

Moderators: 1

Admins: 2

Forum Stats:

Groups: 5

Forums: 16

Topics: 10839

Posts: 79118

Moderators: Brandon C (158)

Administrators: Yellow Swordfish (22131), Mr Papa (23580)