Current User: Guest
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






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

Integrating Members with SPF

Information
UserPost

2:40 am
Jan 23, 2010


kettlewell

Rookie

posts 3

 
1

 

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

 

5:21 am
Jan 23, 2010


Yellow Swordfish

Peterborough, England

SPF Master
SPF Master

posts 15150

 
2

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

9:58 am
Jan 23, 2010


Mr Papa

Arizona, USA

SPF Master
SPF Master

posts 14889

 
3

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…

4:43 pm
Jan 23, 2010


kettlewell

Rookie

posts 3

 
4

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

 

4:59 pm
Jan 23, 2010


Mr Papa

Arizona, USA

SPF Master
SPF Master

posts 14889

 
5

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…

5:32 pm
Jan 23, 2010


kettlewell

Rookie

posts 3

 
6

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

 

 

5:37 pm
Jan 23, 2010


Mr Papa

Arizona, USA

SPF Master
SPF Master

posts 14889

 
7

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


Reply to Topic:
Integrating Members with SPF

Guest Name (Required):

Guest Email (Required):

NOTE: First Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
12 + 1
   


Information


About the Simple:Press Forum

Forum Timezone: America/Chicago

Most Users Ever Online: 118

Currently Online: cavamondo, sgendry, chris.brown
44 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 3
Forums: 10
Topics: 6343
Posts: 45437

Membership:

There are 4375 Members
There have been 1720 Guests

There are 2 Admins
There are 2 Moderators

Top Posters:

jim – 415
ovizii – 232
Tal – 206
Isaak – 183
Barandum – 178
David Polensky – 173
neon – 154
peterhol – 145

Recent New Members: beverly, ivie97, yogita, Nickinchicago, otherwhirl, CWS, Xephan, asnevitt, innerrock, guilli

Administrators: Yellow Swordfish (15150 Posts), Mr Papa (14889 Posts)

Moderators: -Radio- (1251 Posts), Luffer (482 Posts)