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™

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

s2Member Plugin. A Membership plugin for WordPress®.

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

Postby davidpayne » July 7th, 2011, 8:46 am

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
User avatar
davidpayne
Registered User
Registered User
 
Posts: 9
Joined: July 7, 2011

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

Postby Cristián Lávaque » July 7th, 2011, 2:49 pm

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. :)
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: Registered users see something, others don't on same pag

Postby davidpayne » July 7th, 2011, 3:40 pm

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?
User avatar
davidpayne
Registered User
Registered User
 
Posts: 9
Joined: July 7, 2011

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

Postby Cristián Lávaque » July 7th, 2011, 4:58 pm

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. :)
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: Registered users see something, others don't on same pag

Postby davidpayne » July 8th, 2011, 6:46 am

Thanks so much for your help... I really appreciate it!
User avatar
davidpayne
Registered User
Registered User
 
Posts: 9
Joined: July 7, 2011

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

Postby Cristián Lávaque » July 8th, 2011, 12:22 pm

I'm glad I could help you. :)

Let me know if you need anything else.
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: Exabot [Bot], Google [Bot] and 1 guest

cron