Page 1 of 1

S2member + buddypress registration troubles

PostPosted: August 15th, 2011, 3:32 pm
by Cgoguen
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!

Re: S2member + buddypress registration troubles

PostPosted: August 17th, 2011, 1:26 am
by Cristián Lávaque
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. :)

Re: S2member + buddypress registration troubles

PostPosted: August 17th, 2011, 7:27 am
by Cgoguen
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?

Re: S2member + buddypress registration troubles

PostPosted: August 17th, 2011, 10:29 pm
by Cristián Lávaque
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?

Re: S2member + buddypress registration troubles

PostPosted: August 19th, 2011, 8:37 pm
by Cgoguen
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 );`

Re: S2member + buddypress registration troubles

PostPosted: August 19th, 2011, 10:54 pm
by Cristián Lávaque
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.

Re: S2member + buddypress registration troubles

PostPosted: August 20th, 2011, 1:50 pm
by Cgoguen
Right then.... I'm an IDIOT! Thank you for pointing out my error and forgive me for wasting your valuable time!

Re: S2member + buddypress registration troubles

PostPosted: August 20th, 2011, 2:32 pm
by Cgoguen
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.

Re: S2member + buddypress registration troubles

PostPosted: August 20th, 2011, 4:37 pm
by Cristián Lávaque
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

Re: S2member + buddypress registration troubles

PostPosted: August 20th, 2011, 8:34 pm
by Cgoguen
Thanks a lot for your help! Ill get crackin at these links!

Re: S2member + buddypress registration troubles

PostPosted: September 27th, 2011, 7:13 am
by crazycoolcam
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.

Re: S2member + buddypress registration troubles

PostPosted: September 29th, 2011, 1:33 am
by Cristián Lávaque
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!

Re: S2member + buddypress registration troubles

PostPosted: September 29th, 2011, 6:04 am
by crazycoolcam
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

Re: S2member + buddypress registration troubles

PostPosted: October 1st, 2011, 3:56 am
by Cristián Lávaque
Ah, got ya. Thanks for your help. :)

I replied in your other thread.