Topic RSS
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
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.
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…
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
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…
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
10:18 am
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?
11:11 am
SP Master
Nov 9, 2008
OfflineI 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?
Most Users Ever Online: 444
Currently Online: Mr Papa, SPQC
57 Guest(s)
Currently Browsing this Page:
1 Guest(s)
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
Newest Members: ordie69, mutha66, jawaulk, mastergalen, ikkiamonrah, OlafKS, js, Anne Wayman, vinzMtl, VikingBrent
Moderators: Brandon C (158)
Administrators: Yellow Swordfish (22131), Mr Papa (23580)
Log In
Register
Home
Add Reply
Add Topic
Quote

Online
Visit 
Privacy Policy



