This topic contains 6 replies, has 2 voices. Last updated by Alan Ashbaugh 3 years, 11 months ago.
Topic Author | Topic |
---|---|
Posted: Friday Jan 11th, 2013 at 10:43 am #37010 | |
Hi, I’ve been trying to implement custom capabilities packages but am having difficulty. I’ve watched the 1st video and 2nd video (5 and 15 minutes) on doing so, and I’m using the below code:
The goals are these: 1. Have a restricted set of pages, which I’ve already set in the S2Members settings, which are only accessible with Level 2 or higher. Level 2 is the all access level. (I know this probably should be level 1, but let’s leave it if that’s cool) 2. Be able to assign custom capabilities to users who are not Level 2, so they can access bits and pieces. Level 2 would be all access. For example, I’ve added certain pages (and added ability to tag pages), and tagged them with “smartbuying”. I’d like to be able to add the “smartbuying” custom capability to users who are Level 3, or even subscriber Level 0, so that they will be restricted from all pages EXCEPT the custom capabilities that they have, such as smartbuying. Also, I’m curious if in the above code, does redirecting to S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL mean that the user will be blocked, or meaning that they will be let through? I’m an Intermediate WPer and beginning PHPer, so I’d love your assistance in creating these custom packages based on tags. The end goal is to allow my client to add tags based on the packages he wants, and then assign those packages (custom capabilities) to users regardless of Level. Then, to have the Level 2+ be all access. Thanks! |