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™

Correct logic here?

s2Member Plugin. A Membership plugin for WordPress®.

Correct logic here?

Postby nphaskins » January 13th, 2011, 6:32 pm

Great plugin! I didn't want to bother through email so I thought I'd post here.

I have a general public, SUBSCRIBED (0) level and PRO (1) levels of subscription setup. When a SUBSCRIBED user tries to access a page that has a Page Level Restriction of Level #1 or higher or PRO set (in wordpress upper right hand corner), they are immediately sent to the standard signup page, asking for the full credentials as if they were a new user.

To prevent this I've taken off the Page Level Restriction, and have used Shortcodes (image attached) for the page marked for PRO users. Now, when a SUBSCRIBED user visits the page, it tells them that they need to upgraded to PRO. Great! My only problem, is that now the page is public and it's content is only protected with PHP shortcodes?

Is my logic and thinking correct on this? The only things on this site that are protected are pages. My main issues is, that page shouldn't even come up, but instead forward them to the signup page, but it also forwards the SUBSCRIPTION level users. I hope this makes sense.

Here is the page in question: (dont worry about SSL cert issues I haven't transferred over domain yet)
https://72.47.253.57/?page_id=57

The shortcodes in the post are attached as an image.

Am I doing this the most efficient way possible?

*Edit* Actually in thinking no this isn't because the content is the same for the SUBSCRIBED user as it is for the PRO user.
Attachments
shortcodes.PNG
User avatar
nphaskins
Registered User
Registered User
 
Posts: 1
Joined: January 13, 2011

Re: Correct logic here?

Postby Cristián Lávaque » January 14th, 2011, 11:08 pm

nphaskins wrote:Am I doing this the most efficient way possible?

*Edit* Actually in thinking no this isn't because the content is the same for the SUBSCRIBED user as it is for the PRO user.


So you mean Levels 0 and 1 should see the same content for that page? If that's the case, then current_user_can(access_s2member_level0) would be enough.
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: No registered users and 1 guest

cron