How 2 use Custom Capabilities to create different access form the same membership level

Just installed the free S2 and can’t figure this out.

If I want membership level 1 members have access to a member verification (MV) page, but not the other 3 pages and all Buddypress pages until after they submit the MV request from the MV page and admin approves it. How can I achieve that with Custom Capabilities?

Can we have unlimited Custom Capabilities in the free version?

Thank you so much :slight_smile:

Yes.

You’d protect “the other 3 pages and all Buddypress pages” with two ccaps, while using only one of those ccaps to protect the MV page.

Personally, though, I’d use levels here and not ccaps by protecting “the other 3 pages and all Buddypress pages” at level 2. Why? Because if you’re starting out by using two ccaps to protect basic content, it could get very messy if you want to add further ccaps later.

1 Like

Thank you for the advice. I’ll use level then, but do I restrict buddypress through the URI Restrictions? If yes, I found all buddypress pages urls look like:

http://localhost/wordpress/members/(username)/
http://localhost/wordpress/members/(username)/profile
http://localhost/wordpress/members/(username)/notifications
http://localhost/wordpress/members/(username)//messages
etc etc

So their URI would be
/members/(username)/…

and in “URIs that requires level 2 or higher”, should I simply type in
/members/

And if /i want only level 3 to have access to
http://localhost/wordpress/members/(username)//messages
in "“URIs that require level 3 or higher”, should I type in
/members/messages

?
Thank you.

Sorry asking so many questions but I just realized when a visitor visits my site, now all the category feeds disappear. I want those category feeds viewable to all, including visitors. I did not restrict any category in setting, so what I did wrong?

Yes.

You could. Or just /messages

You did nothing wrong. Just go to Restriction Options -> Alternative View Protection and uncheck the FILTER ALL WordPress queries box. Then check which of those in the rest of the list you want protected and hit Save All Changes at the bottom of the page.

Hi Tim ! Thank you again.

My site is still localhosted so I don’t have SSL yet which means i can’t really test registering a new member and see whatever happens after that. Above you suggested I use level instead of ccap to separate level 1 (pre member verification) and level 2 (post member verification). I just went to admin -> users and I didn’t see anywhere in an user’s profile that shows a member’s membership level or would allow me to switch the member to a different level. So how do i do the switching?

PayPal Buttons -> Subscr. Modification Buttons

  • I’m confused on how to set the dropdown for “Modification”. Aren’t we supposed to have something like “from Level X to Level Y” to select from? That’s not what I saw in the dropdown.
    I need
    level 2 -> level 3
    level 2 -> level 4
    level 3 - level 4

I still can’t understand how Capibility (Buy now) Buttons work, and the overall custom capability concept. Can I have a real example of Capability Buy Now Button so I can maybe get a better understanding of it? It seems ccap is a very versatile and powerful tool and it’s essential for me to know how to use them.

S2 is a very rich plugin, full of features but it is indeed also harder to learn.

Thank you

No. You just need to say what you want the new level to be. You then restrict access to the form by (a) deciding on what page(s) to put that shortcode and (b) wrapping it, if necessary, in appropriate shortcode conditionals that specify who will see the form.