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™

Configure s2Member for Create a Group Button in BuddyPress

s2Member Plugin. A Membership plugin for WordPress®.

Configure s2Member for Create a Group Button in BuddyPress

Postby Mikey3D » April 8th, 2011, 4:47 pm

I’m overwhelmed by s2Member.

Project: WordPress and BuddyPress

I have PayPal business account with “Website Payments Standard” and what I want:

When the user clicked the “Create a group” button in the Group page, can I redirect the users instead of Admin (only admin can create a groups) a link to my Demo page that has PayPal code of “Add to cart” with information. How do I configure in s2Member for that matter?

I have try settings:

1) S2Member > General Options > URL Restrictions > /groups/create/
2) S2Member > General Options > Membership Option Page > Demo
3) S2Member > General Options > Open Registration > Yes

Above setting, it doesn’t works as I expected when the user (Contributor) clicked the /groups/create/ link.

In the future, can I do like Metafilter after sigin-up then have a one time charge?

Thanks, Mikey3D
User avatar
Mikey3D
Registered User
Registered User
 
Posts: 10
Joined: April 8, 2011

Re: Configure s2Member for Create a Group Button in BuddyPre

Postby Cristián Lávaque » April 8th, 2011, 10:09 pm

Regarding how the payment after signup could be set up with s2Member, here's what comes to mind that you could do:

1. Open free registrations, which sets the account at Level 0. WP Admin -> s2Member -> General Options -> Open Registrations / Free Subscribers.

2. Create a modification button to Level 1, but change the output to "anchor". WP Admin -> s2Member -> PayPal Buttons -> PayPal Subscr Modification Buttons and Shortcode Attributes (Explained).

3. Create a Free Registration Form (you need s2Member Pro for this, but it'll work with PayPal Standard). WP Admin -> s2Member -> PayPal Pro-Forms -> PayPal Pro / Free Registration Forms.

4. Add a return URL to the registration form and use the URL in the anchor code from step 2. WP Admin -> s2Member -> PayPal Pro-Forms -> Custom Return URLs On Success -> Free Registration Forms.

This is absolutely untested, but may just work. I'll ask Jason what he thinks. :)
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: Configure s2Member for Create a Group Button in BuddyPre

Postby Jason Caldwell » April 8th, 2011, 11:27 pm

Thanks for bringing this to my attention Cristián
Mikey3D wrote:I have try settings:

1) S2Member > General Options > URL Restrictions > /groups/create/
2) S2Member > General Options > Membership Option Page > Demo
3) S2Member > General Options > Open Registration > Yes

Above setting, it doesn’t works as I expected when the user (Contributor) clicked the /groups/create/ link.

What you have here should work just fine actually. The only reason it's not, is because you're testing it with an account that has the "Contributor" Role. Please see the attached documentation, paying close attention to the Membership Level Access that a Contributor has by default. The reason it's not working for you, is because Contributors have Level 4 Access already. They don't need to pay for it. If you need to change that, this plugin may come in handy. http://wordpress.org/extend/plugins/user-role-editor/

Taken from Dashboard -> s2Member -> API Scripting -> Advanced Conditionals
Membership Levels provide incremental access:

* A Member with Level 4 access, will also be able to access Levels 0, 1, 2 & 3.
* A Member with Level 3 access, will also be able to access Levels 0, 1 & 2.
* A Member with Level 2 access, will also be able to access Levels 0 & 1.
* A Member with Level 1 access, will also be able to access Level 0.
* A Subscriber with Level 0 access, will ONLY be able to access Level 0.

* WordPress® Subscribers are at Membership Level 0. If you're allowing Open Registration, Subscribers will be at Level 0 ( a Free Subscriber ). WordPress® Administrators, Editors, Authors, and Contributors have Level 4 access, with respect to s2Member. All of their other Roles/Capabilities are left untouched.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Configure s2Member for Create a Group Button in BuddyPre

Postby Mikey3D » April 20th, 2011, 10:44 am

Hello,

I have not done or get into it anything yet. The first thing I want to know before I start doing it. Jason Caldwell, are you saying that I could use User Role Editor to add like this:

Contributor: s2member_level1
Author: s2member_level2
Editor: s2member_level3

s2Member level capabilities are just a tag of yes (open) or no (close) and nothing else. Am I right?

s2member_level0
s2member_level1
s2member_level2
s2member_level3
s2member_level4

Thanks, Mikey3D
User avatar
Mikey3D
Registered User
Registered User
 
Posts: 10
Joined: April 8, 2011

Re: Configure s2Member for Create a Group Button in BuddyPre

Postby Jason Caldwell » April 20th, 2011, 11:19 pm

Yes, I think you're on the right track.
As noted above, Contributors already have Membership Level Access at Level #4.
So you won't need to edit that Role unless you want to change that for some reason.

However, the s2Member Level 1 Role does NOT have Contributor Capabilities ( not by default ). So, using the User Role Editor plugin you could check the boxes in the UI panel, in order to grant an s2Member Level 1 Role the ability to do more in the back-end. Just pick and choose by checking and/or un-checking boxes. I don't recommend modifying any of the access_s2member_level[0-4] Capabilities unless you know what you're doing, but you can certainly grant other Capabilities; as many as you like.

SNAG-0022.jpg
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Configure s2Member for Create a Group Button in BuddyPre

Postby Mikey3D » April 22nd, 2011, 8:23 pm

I’m still little confusing about how to handle the community.

Without s2Member, the default role is Contributor.

What I had in mind is when the new users are creating an account their default role is Contributor. So they can post an article but cannot publish them it will be reviewing by administrator.

What I had settings without s2member?

1. Settings > General > Membership: Anyone can register.
2. Settings > General > New User Default Role: Contributor.

I want the user Contributor, Subscriber and author cannot create a group except only admin and editor can do it. Here’s the script:

<?php if ( is_user_logged_in() && (current_user_can('administrator') || current_user_can('editor'))) : ?> &nbsp;<a class="button" href="<?php echo bp_get_root_domain() . '/' . BP_GROUPS_SLUG . '/create/' ?>"><?php _e( 'Create a Group', 'buddypress' ) ?></a>

<?php else: ?>
<?php if ( is_user_logged_in() && (current_user_can('subscriber') || current_user_can('contributor') || current_user_can('author'))) : ?> &nbsp;<a class="button" href="<?php echo bp_get_root_domain() . '/payment-page' ?>"><?php _e( 'Create a Group', 'buddypress' ) ?></a><?php endif; ?>
<?php endif; ?></h3>


The above scripts it will send a specific users to the payment page after they clicked the “Create a Group” link.

That is probably how I would do it.

I want to eliminate your doubts, Jason. With s2Member, the default role is Subscriber.

1) S2Member > General Options > URL Restrictions > /groups/create/
2) S2Member > General Options > Membership Option Page > Demo
3) S2Member > General Options > Open Registration > Yes

This above settings, in the future, I could use it for one-time fee the new user Subscriber to eliminate the spammers. Am I right? How would I configuring the s2Member when I don’t want the users Subscriber, Contributor and Author to “create a group” except only Admin and Editor? Can s2Member do it? What are the advantage either of these my and yours setup?

Thanks, Mikey3D
User avatar
Mikey3D
Registered User
Registered User
 
Posts: 10
Joined: April 8, 2011

Re: Configure s2Member for Create a Group Button in BuddyPre

Postby Mikey3D » April 25th, 2011, 9:37 am

What is holding up?

Mikey3D
User avatar
Mikey3D
Registered User
Registered User
 
Posts: 10
Joined: April 8, 2011

Re: Configure s2Member for Create a Group Button in BuddyPre

Postby Jason Caldwell » April 25th, 2011, 9:58 am

Hi Mikey. The code you've provided, leads me to believe you're on the right track. However, if you need assistance integrating custom code and/or working with Conditionals in PHP, you will need to seek assistance from a developer. Please see: http://jobs.wordpress.net

s2Member® / Hot Tip: ( s2Installs.com! )

Recommended by s2Member® Lead Developer (Jason Caldwell). Their rate for a standard installation is $125. They're highly trained. Just request their service!

Need Help? Post A New Job!

It's free. Your Job will appear here, and @ jobs.wordpress.net. It will be displayed for a period of 21 days; or until you take it off, whichever comes first. Good luck!
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Configure s2Member for Create a Group Button in BuddyPre

Postby Mikey3D » April 25th, 2011, 11:30 am

Hi Jason,

Why are you trying to deflect the issues about what I can do without s2Member? Does s2Member is capable of what I can do?

Where does it say that I need assistance integrating custom code and/or working with Conditionals in PHP?

Is that why I didn’t buy your software?

Cristián Lávaque did mention that I need s2Member Pro right off his back. If I did, is that how I’m going from here.

Is your software is just like a Dreamweaver as WYSIWYG. It doesn’t help where I’m going from here. Where’s credibility?

Mikey3D
User avatar
Mikey3D
Registered User
Registered User
 
Posts: 10
Joined: April 8, 2011

Re: Configure s2Member for Create a Group Button in BuddyPre

Postby Cristián Lávaque » April 25th, 2011, 3:41 pm

Mikey, we try to give the best support we can regarding s2Member, and even give ideas on how to achieve customizations that fall outside what s2Member does. Although we sometimes offer custom code to help, it's not something we have to or can always do.

If the person who wants a customization can't figure it out himself, and what we suggest is not enough, it seems like a developer's help is required for that customization in particular and when we may suggest posting the job to get one.
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: Configure s2Member for Create a Group Button in BuddyPre

Postby Mikey3D » April 25th, 2011, 4:17 pm

Cristián,

If the person who wants a customization can't figure it out himself, and what we suggest is not enough


I’m also developer and engineer for 11 years but your software cannot comprehending just one thing I was asking for is in BuddyPress only admin and editor can create a group. Why can’t s2Member? I can do without s2Member is:

<?php if ( is_user_logged_in() && (current_user_can('administrator') || current_user_can('editor'))) : ?> &nbsp;<a class="button" href="<?php echo bp_get_root_domain() . '/' . BP_GROUPS_SLUG . '/create/' ?>"><?php _e( 'Create a Group', 'buddypress' ) ?></a>

<?php else: ?>
<?php if ( is_user_logged_in() && (current_user_can('subscriber') || current_user_can('contributor') || current_user_can('author'))) : ?> &nbsp;<a class="button" href="<?php echo bp_get_root_domain() . '/payment-page' ?>"><?php _e( 'Create a Group', 'buddypress' ) ?></a><?php endif; ?>
<?php endif; ?></h3>


Do you mean what your software is supposed to do as it say URL Restrictions (typical w/ BuddyPress)? Have I been misleading?

s2Member, It is your software and you’re responsible as credibility goes.
User avatar
Mikey3D
Registered User
Registered User
 
Posts: 10
Joined: April 8, 2011

Re: Configure s2Member for Create a Group Button in BuddyPre

Postby Mikey3D » April 26th, 2011, 8:50 am

Here’s what I’m dealing with s2Member forum for the first time for two weeks from today:

Those tribe comments are leading for paying version and need developer. They are NOT for free s2Member version. They are telling us you need developer over other developer community that need developer for developer need developer for developer need developer. Huh?

Cristián Lávaque comments:

1. Create a Free Registration Form (you need s2Member Pro for this, but it'll work with PayPal Standard). - Lead to paid version
2. We try to give the best support we can regarding s2Member, and even give ideas on how to achieve customizations that fall outside what s2Member does. Although we sometimes offer custom code to help, it's not something we have to or can always do.). - Lead to paid version
3. If the person who wants a customization can't figure it out himself, and what we suggest is not enough, it seems like a developer's help is required for that customization in particular and when we may suggest posting the job to get one.). - Lead to paid version

Jason Caldwell comments:

1. What you have here should work just fine actually.). - Lead to paid version
2. this plugin may come in handy). - Lead to paid version
3. Yes, I think you're on the right track.). - Lead to paid version
4. So you won't need to edit that Role unless you want to change that for some reason.). - Lead to paid version
5. I don't recommend modifying any of the access_s2member_level[0-4] Capabilities unless you know what you're doing, but you can certainly grant other Capabilities; as many as you like.). - Lead to paid version
6. The code you've provided, leads me to believe you're on the right track.). - Lead to paid version

7. However, if you need assistance integrating custom code and/or working with Conditionals in PHP, you will need to seek assistance from a developer. Please see: http://jobs.wordpress.net). - Lead to paid version

They didn’t provide scripts for free s2Member as I did above here. I have been misleading to believe that free version of URL Restrictions (typical w/ BuddyPress) with s2Member scripts that would works.

Mikey3D
User avatar
Mikey3D
Registered User
Registered User
 
Posts: 10
Joined: April 8, 2011

Re: Configure s2Member for Create a Group Button in BuddyPre

Postby Mikey3D » April 26th, 2011, 1:29 pm

What’s the value to use s2Member without WordPress? What is your business model?
User avatar
Mikey3D
Registered User
Registered User
 
Posts: 10
Joined: April 8, 2011

Re: Configure s2Member for Create a Group Button in BuddyPre

Postby Mikey3D » April 27th, 2011, 7:38 am

What's holding up? And why is there no s2member script for limits create a group link in BuddyPress?
User avatar
Mikey3D
Registered User
Registered User
 
Posts: 10
Joined: April 8, 2011

Re: Configure s2Member for Create a Group Button in BuddyPre

Postby Mikey3D » April 28th, 2011, 7:00 am

Do you think for not respond any questions will help your case? You can’t change what you don’t acknowledge. Can you see what happens to zephoria?
User avatar
Mikey3D
Registered User
Registered User
 
Posts: 10
Joined: April 8, 2011

Re: Configure s2Member for Create a Group Button in BuddyPre

Postby Jason Caldwell » April 29th, 2011, 4:06 pm

! If you need assistance integrating custom code and/or working with Conditionals in PHP, you will need to seek assistance from a developer. Please see: http://jobs.wordpress.net

s2Member® / Hot Tip: ( s2Installs.com! )

Recommended by s2Member® Lead Developer (Jason Caldwell). Their rate for a standard installation is $125. They're highly trained. Just request their service!

Need Help? Post A New Job!

It's free. Your Job will appear here, and @ jobs.wordpress.net. It will be displayed for a period of 21 days; or until you take it off, whichever comes first. Good luck!
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Configure s2Member for Create a Group Button in BuddyPre

Postby Cristián Lávaque » April 29th, 2011, 4:50 pm

Mikey, the problem is that your attitude is very wrong, and it is a bit hard to understand what you're trying to say to begin with.

What I could understand you were asking, I answered as well as I could near the top of thread, but achieving it requires a feature that is available in s2Member Pro. I wasn't pushing Pro, you want to achieve a very specific thing that I could only see how to achieve with Pro. If you're an experienced developer, you can probably look at the code and figure out how to do it with hooks using s2Member Free, though.

About BuddyPress, the only thing we have to do with that is the s2Member feature of URI Access Restrictions which can be used to control BuddyPress a little. Other than that, not, and maybe you were asking about that, but I really couldn't understand it from your posts. I believe there is a language barrier, probably.

You accused us of pushing the paid version, but I just mentioned it in that reply at the top, and I don't feel any remorse recommending the Pro version when someone needs it, it's really good. Jason didn't even mention it, although he did suggest you post your job for a freelance developer if you needed help. That jobs thread is not for Web Sharks, it's just an easy way to post jobs over at jobs.wordpress.net. Web Sharks doesn't get a penny from that.

So you don't ask clearly, don't ask politely, even attack, and are very offended because we don't feel inspired to answer? That's not right. If you expect help, please at least be nice and help others if you can, otherwise, please solve it yourself as the seasoned developer you are.
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: Configure s2Member for Create a Group Button in BuddyPre

Postby Cristián Lávaque » April 29th, 2011, 4:54 pm

Regarding URI Restrictions with BuddyPress:

URI Restrictions will work on anything that operates within the WordPress framework; this includes BuddyPress. BuddyPress is a plugin for WordPress, and s2Member's URI Restrictions will work on anything that runs under WordPress. URI Restrictions won't work on real files/directories that may exist on the server which are not actually being run from within WordPress.

For example, BuddyPress creates internal WordPress rewrites that create Pages on the site like this:

/register/
/groups/
/activity/


All of these can be protected by s2Member, because they are served by WordPress through the BuddyPress plugin.

But if I create a new directory on the server called:

/members-only/

I can't expect s2Member to protect that because it's not powered by WordPress, even if it's in the WordPress directory, it's still not a part of WordPress.

s2Member 3.6 may improve upon this, but that's how it works now.
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: Configure s2Member for Create a Group Button in BuddyPre

Postby airpilot » May 19th, 2011, 6:02 am

Cristian and Jason:

The rest of us THANK YOU for your helpful replies to Mikey. I cannot understand anyone attacking you for trying to help. Just know that most of us out here appreciate your assistance. Mikey does not speak for us.

Airpilot.
User avatar
airpilot
Registered User
Registered User
 
Posts: 7
Joined: February 6, 2011

Re: Configure s2Member for Create a Group Button in BuddyPre

Postby Cristián Lávaque » May 19th, 2011, 10:57 am

Thank you for the kind words, Airpilot, we really appreciate them. :)
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 2 guests

cron