PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

S2member + buddypress registration troubles

s2Member Plugin. A Membership plugin for WordPress®.

S2member + buddypress registration troubles

Postby Cgoguen » August 15th, 2011, 3:32 pm

I searched around for the better part of the day and did not find a solution so perhaps some of you fine people will show me the light. When someone signs up on my site as a free subscriber they seem to register within buddypress only and not in S2member at all. Payed clients are fine though. Also, I am using multi site and free users don't show up under "users" in my site admin panel but do show up in my "super admin" panel. Not sure what is causing this separation. Users added directly in S2member (located in my main site) show up under "Users" in both admin panels. Is there an integration problem? Is S2 only recognizing people who sign up from the "membership" page and not from the regular "sign up" option on the buddy bar? Any thoughts on this matter would be GREATLY appreciated! Thank you in advance!
User avatar
Cgoguen
Registered User
Registered User
 
Posts: 9
Joined: August 15, 2011

Re: S2member + buddypress registration troubles

Postby Cristián Lávaque » August 17th, 2011, 1:26 am

BuddyPress takes over the registration process, but s2Member will still work with the accounts created through it. You can also integrate s2Member Custom Registration Fields if you need to, look at the bottom of WP Admin -> s2Member -> General Options -> Custom Registration Fields/Options.

About multisite, s2Member in each blog will be in its own scope, you can configure s2Member for one and have it work in another. How the users management between the blogs in the network and the main blog is, I'm not very sure of, but s2Member doesn't alter the WP behavior as far as I know.

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: S2member + buddypress registration troubles

Postby Cgoguen » August 17th, 2011, 7:27 am

Thank you for your reply! My problem here is that when buddypress takes over in cases of open registration, the new subscriber doesn't show up as a user in s2member at all. I wouldn't care but they also seem to not be given a membership level. This makes the use of conditionals useless for me and takes away a lot of functionality for me. Any thoughts on what could be causing this?
User avatar
Cgoguen
Registered User
Registered User
 
Posts: 9
Joined: August 15, 2011

Re: S2member + buddypress registration troubles

Postby Cristián Lávaque » August 17th, 2011, 10:29 pm

Is this after a purchase? If it's a free registration, the user will be given the default WP role of Subscriber, which equals to s2Member's Level 0.

What do you mean he doesn't show up in s2Member? s2Member doesn't list users, WP does and if he has an account, he should be listed under WP Admin -> Users -> All Users.

Does that help?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: S2member + buddypress registration troubles

Postby Cgoguen » August 19th, 2011, 8:37 pm

Sorry under s2member there is a users tab but it just sends me to my WP users tab. Let me try to explain more clearly. It is after registration, no purchase. The wordpress Multisite breaks the admin panel into 2 sections, "site admin" for an individual site on your network and "network admin" for control over the entire network. When a paying member registers, their name shows up in "All users" on both site and network admin panels. When there is a free registration, it will only show up in Network admin and not in the wite for which they registered. Now I know this isn't controlled by s2member but the odd part is that whenever I create a conditional to control the "0 level" members experience, it does nothing. On a list of users and their s2member roles, only my "level 1" and above show up. Any conditionals I aim at those groups works fine. It is as if the "level 0" doesn't exist.

This is an example of the conditional I am trying to use. (placed in my theme’s functions.php file)

Code: Select all
`function remove_member_profile_nav() {
        if (!current_user_can('access_s2member_level0)) {
   bp_core_remove_nav_item( 'profile' );
        }
}
add_action( 'bp_setup_nav', 'remove_member_profile_nav', 15 );`
Last edited by Cristián Lávaque on August 19th, 2011, 10:54 pm, edited 1 time in total.
Reason: Improve code readability. http://www.primothemes.com/forums/viewtopic.php?f=36&t=2780
User avatar
Cgoguen
Registered User
Registered User
 
Posts: 9
Joined: August 15, 2011

Re: S2member + buddypress registration troubles

Postby Cristián Lávaque » August 19th, 2011, 10:54 pm

I understand your problem a bit better, although not fully yet. Thank you for explaining it.

In your code I see a single-quote missing after level0.

Code: Select all
add_action('bp_setup_nav', 'remove_member_profile_nav', 15);
function remove_member_profile_nav() {
    if (!current_user_can('access_s2member_level0'))
        bp_core_remove_nav_item('profile');
}
 


I hope that helps.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: S2member + buddypress registration troubles

Postby Cgoguen » August 20th, 2011, 1:50 pm

Right then.... I'm an IDIOT! Thank you for pointing out my error and forgive me for wasting your valuable time!
User avatar
Cgoguen
Registered User
Registered User
 
Posts: 9
Joined: August 15, 2011

Re: S2member + buddypress registration troubles

Postby Cgoguen » August 20th, 2011, 2:32 pm

While I'm here, do you know of another way to remove free subscribers profile? I want only paying members to get one. The code above doesn't actually do it for me for some reason. It seems to be just taking away the level "0" users ability to edit their profile causing the page to time out whenever they hit "edit profile". Perhaps you can pick up my error. Is it ok that I placed that code at the bottom of my functions.php? Perhaps a hierarchy thing? I'm fairly green with all this still so please forgive if these questions are bush league.
User avatar
Cgoguen
Registered User
Registered User
 
Posts: 9
Joined: August 15, 2011

Re: S2member + buddypress registration troubles

Postby Cristián Lávaque » August 20th, 2011, 4:37 pm

You could probably edit the role to remove the capability to view/edit their profiles. Some resources that may help:

https://wordpress.org/extend/plugins/user-role-editor/
https://codex.wordpress.org/Roles_and_C ... pabilities
http://buddypress.org/community/groups/ ... ress-roles
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: S2member + buddypress registration troubles

Postby Cgoguen » August 20th, 2011, 8:34 pm

Thanks a lot for your help! Ill get crackin at these links!
User avatar
Cgoguen
Registered User
Registered User
 
Posts: 9
Joined: August 15, 2011

Re: S2member + buddypress registration troubles

Postby crazycoolcam » September 27th, 2011, 7:13 am

When using multisite, buddypress does not assign new users to the subscriber level of any of the blogs. They only appear as users (for buddypress) but they don't have any ties to any blogs.

If I remember correctly, if BP is installed without Mutlisite enabled, then users are added as subscribers.
User avatar
crazycoolcam
Registered User
Registered User
 
Posts: 9
Joined: September 27, 2011

Re: S2member + buddypress registration troubles

Postby Cristián Lávaque » September 29th, 2011, 1:33 am

Sorry, I'm not sure I understand your question. Could you rephrase it, please, and explain what your installation is like including versions for WP, s2Member, BuddyPress? Thanks!
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: S2member + buddypress registration troubles

Postby crazycoolcam » September 29th, 2011, 6:04 am

Hi Christian,

If you are asking me what my question is, it's posted over here: http://www.primothemes.com/forums/viewtopic.php?f=4&t=15339#p41828

This reply was a statement about how buddypress registers users differently based on whether Multisite is enabled or not. I'm jumping into the forums and trying to help.

Thanks for asking.
~Cam
User avatar
crazycoolcam
Registered User
Registered User
 
Posts: 9
Joined: September 27, 2011

Re: S2member + buddypress registration troubles

Postby Cristián Lávaque » October 1st, 2011, 3:56 am

Ah, got ya. Thanks for your help. :)

I replied in your other thread.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron