Page 1 of 1

Registered users see something, others don't on same page

PostPosted: July 7th, 2011, 8:46 am
by davidpayne
Quick question...

Is there a way to make a page/post visible to all but on that particular page/post... a user with level 0 sees one thing and a person with level 1 sees something else and so on? I know that the WPMU Dev membership plugin accomplishes this using shortcode access (you can assign different shortcode access to different levels). However, upon comparing both membership plugins, I would prefer to use s2member for a variety of reasons including its integration with Paypal pro. Please let me know if this is possible.

Dave

Re: Registered users see something, others don't on same pag

PostPosted: July 7th, 2011, 2:49 pm
by Cristián Lávaque
Hi Dave.

Yes, it's very possible. Take at look at the conditional shortodes s2Member has. WP Admin -> s2Member -> API / Scripting -> Using Simple Conditionals

Code: Select all
[s2If current_user_is(s2member_level0)]
    Some content for Free Subscribers.
[/s2If]


I hope that helps. :)

Re: Registered users see something, others don't on same pag

PostPosted: July 7th, 2011, 3:40 pm
by davidpayne
Great, I'll go test it out... one other quick question. Is there an easy way for the native "more" tag to be restricted across the board for non-logged in users and then open to all those who have logged in?

Re: Registered users see something, others don't on same pag

PostPosted: July 7th, 2011, 4:58 pm
by Cristián Lávaque
You could protect the post with the restriction setting and then edit the alternative views setting to let it show in the post listings (home, category, tag, search) up to where you put the <!--more--> tag in the post. When trying to open the post, the person will be taken to the Membership Options Page. WP Admin -> s2Member -> Restriction Options -> Alternative Views Protection

I hope that helps. :)

Re: Registered users see something, others don't on same pag

PostPosted: July 8th, 2011, 6:46 am
by davidpayne
Thanks so much for your help... I really appreciate it!

Re: Registered users see something, others don't on same pag

PostPosted: July 8th, 2011, 12:22 pm
by Cristián Lávaque
I'm glad I could help you. :)

Let me know if you need anything else.