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™

Hide Pages From Non-Registered Users

s2Member Plugin. A Membership plugin for WordPress®.

Hide Pages From Non-Registered Users

Postby corneliusw » October 29th, 2010, 10:29 am

I have pages that are premium content that is only intended for registered users to view. I would like for all non-registered users to not see the pages at all.

The parent page is VIP, and then I have subpages listed under them. The parent page should only be viewable to registered members.

Does anyone know how I can restrict these pages to where it is only viewable on the website navigation to registered members? I know I can select visibility as private, and then it will no longer show on main page, but then I don't know how to make "private" viewable to registered members.
User avatar
corneliusw
Registered User
Registered User
 
Posts: 6
Joined: October 29, 2010

Re: Hide Pages From Non-Registered Users

Postby chelle » October 29th, 2010, 11:05 pm

This is what I am doing on my pages for members only, maybe it would be a solution for you also?

This is what a sample post would look like in the wordpress editor with the html view:

Code: Select all
[s2If current_user_can(access_s2member_level1)]

Write your content here. This is what anyone who is logged in will see. If you are using level 2 or 3 or 4 just change the number 1 above to the level number you are using.

[/s2If]

[s2If !current_user_can(access_s2member_level1)]This is where you write what you want non-logged in members to see, Mine says something like this: To access this page, please login. Not a member yet? <a href="http://yoursite.com/signupnowpage">Click Here to Sign Up </a>![/s2If]


Hope that helps!
User avatar
chelle
Registered User
Registered User
 
Posts: 41
Joined: September 6, 2010

Re: Hide Pages From Non-Registered Users

Postby corneliusw » October 29th, 2010, 11:09 pm

I understand how to hide posts, however what I created for membership members were pages, not posts. I don't want to hide the content only, I want to not allow any non-registered to see that there is even a VIP section on the page. So for non-registered users the "VIP" pages shouldn't be listed on the navigation, they should remain hidden.

Thanks though.
User avatar
corneliusw
Registered User
Registered User
 
Posts: 6
Joined: October 29, 2010

Re: Hide Pages From Non-Registered Users

Postby Jason Caldwell » October 30th, 2010, 4:33 am

corneliusw wrote:I understand how to hide posts, however what I created for membership members were pages, not posts. I don't want to hide the content only, I want to not allow any non-registered to see that there is even a VIP section on the page. So for non-registered users the "VIP" pages shouldn't be listed on the navigation, they should remain hidden.

Thanks though.

One way to deal with "Navigation Menus" is through your theme, or through a widget. For instance, the s2Clean Theme comes with two navigation menu slots. One for logged-in Members, and another for public visitors. Having two navigation menus, allows each of them to be switched out dynamically, based on the status of the current visitor. This is not possible unless your theme supports it. The s2Clean theme comes with this pre-integrated; giving you the ability to customize each variation of your menu easily, from within your Dashboard. http://www.primothemes.com/post/product ... wordpress/

Other features of the s2Clean theme include:
Multiple variations of your Sidebar. One for logged-in Members, and one for public visitors.

When you purchase s2Member Pro, you can also get a copy of s2Clean at a discounted rate. In addition, the s2Member Pro Module includes a Login Widget w/ Profile Summary; including the ability to add your own custom TEXT/HTML/PHP that will ONLY be visible to logged-in Members. So this makes yet another option available to you.

Alternatively, you could create a text widget with almost ANY theme, which might include some of s2Member's Conditional tags. This would allow you to create links inside a widget, and display them based on the status of the current visitor.

See: s2Member -> API Scripting -> Simple Conditionals ( or Advanced if you prefer ).
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Hide Pages From Non-Registered Users

Postby Jason Caldwell » October 30th, 2010, 4:36 am

corneliusw wrote:I understand how to hide posts, however what I created for membership members were pages, not posts. I don't want to hide the content only, I want to not allow any non-registered to see that there is even a VIP section on the page. So for non-registered users the "VIP" pages shouldn't be listed on the navigation, they should remain hidden.

Thanks though.

Just in case I misunderstood your question, you might also want to have a look at s2Member's "Alternative View Protection". You will find full details on this in your Dashboard, under: s2Member -> General Options -> Alternative Views.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Hide Pages From Non-Registered Users

Postby corneliusw » November 8th, 2010, 4:53 pm

I found a plugin that restricts non-registered users from viewing pages (removes from navigation) caller User Access Manager by Alexander Schneider.

However, it doesn't appear to be compaitable with s2member.

Bascially with this plugin you create a group, and you can give group access to certain parts of the website. In options it has role affiliation, listing

editor
author
contributor
subscriber
s2member_level1
s2member_level2
s2member_level3
s2member_level4


All are clickable, however if I select any of the s2member it will not show it as saved. Any other option and it saves properly and works fine. No error messages are given, I believe it is just conflict of user permissions.

Now if it is possible to make "subscribers" role part of s2member levels then it would work perfect for me. Because then I could just select subscriber and it would work for the s2member subscribers.

Any more ideas? Also I see in themes how you can hide pages from theme, however that does not protect it. A user can easily just give the link to someone else and they would have full access. I could always do password protection but then that would be a one password situation which would create security issues and people could access these pages for no cost at all.
User avatar
corneliusw
Registered User
Registered User
 
Posts: 6
Joined: October 29, 2010

Re: Hide Pages From Non-Registered Users

Postby ndavidson » November 8th, 2010, 5:23 pm

I think you are missing what Jason was getting at.

You can add a conditional to display content based on a user being logged or even the subscription type. You don't put the conditional in the post, as you seem to have understood, but in the page template.

With the conditional in the page they can copy and paste the URL as much as they like - if they don't meet the conditions it won't be seen when the page loads.
ndavidson
Guest User
Guest User
 

Re: Hide Pages From Non-Registered Users

Postby corneliusw » November 9th, 2010, 10:01 am

I understand, and I tried it. It does protect the pages, which is fine. However I want to remove my VIP section from the navigation. I only want registered users to be able to know that there is a "VIP" section. Using the recommended method, non-registers user can see there is a VIP section, they just cannot view the content. I don't want non-register users to know what content is included in the VIP, and if they can see the title of each VIP page then they will know what is included and that will most likely hurt my sales.
User avatar
corneliusw
Registered User
Registered User
 
Posts: 6
Joined: October 29, 2010

Re: Hide Pages From Non-Registered Users

Postby ndavidson » November 9th, 2010, 4:12 pm

use the conditional for the navigation. if the condition is met, the VIP navigation is shown, otherwise it is not.
ndavidson
Guest User
Guest User
 

Re: Hide Pages From Non-Registered Users

Postby eatlocal » November 10th, 2010, 7:15 pm

I'm trying to do this as well, can anyone be a little more specific about using conditionals for the navigation to hide pages from the navigation if the user is not logged in? I guess I'm not getting what the conditional should be, and where it is placed. For more detail, I'm using Thesis Theme with the Multi-level Navigation plugin. Here's my site: www.landshareco.org and the main member sign-up link is "Grow Your Own CSA Co-op", and the links in the drop down are what I wish to hide for non-registered users.

This is definitely a nice plug-in which we'll buy once we get some funding for our project.

Thanks,
Jim
User avatar
eatlocal
Registered User
Registered User
 
Posts: 14
Joined: November 10, 2010

Re: Hide Pages From Non-Registered Users

Postby corneliusw » November 15th, 2010, 10:49 am

I added conditionals, and it still does not hide VIP from the navigation. The website is tvontheinternet.net.

Perhaps if someone can explain a little more in detail on how to use conditionals for navigation that would be perfect.
User avatar
corneliusw
Registered User
Registered User
 
Posts: 6
Joined: October 29, 2010

Re: Hide Pages From Non-Registered Users

Postby nhsatomom » February 1st, 2011, 2:37 pm

@corneliusw -- Did you ever figure out how to accomplish this? I have the same question and it's not answered by the rest of this thread. Thanks!
User avatar
nhsatomom
Registered User
Registered User
 
Posts: 25
Joined: February 1, 2011

Re: Hide Pages From Non-Registered Users

Postby corneliusw » February 1st, 2011, 3:24 pm

No I haven't figured it out yet.
User avatar
corneliusw
Registered User
Registered User
 
Posts: 6
Joined: October 29, 2010

Re: Hide Pages From Non-Registered Users

Postby Judith » February 1st, 2011, 3:54 pm

Using the custom Navigation in Wordpress, I do not include any of my Member pages in the navigation of my site which the public sees.

I created a "main member area" page with links to all the other pages in the member area. These are all protected using S2.

The Member Area also has a separate navigation. Really EZ to do with Custom Menus.

I have to preface this with the fact I do not allow free memberships.

So the only thing the public can see is my Member Join page and the Login Menu item which I created (not as a page) but with a link to the wp-login.php.

Now the "main member area page" is only accessed by people who can log in. And any non-members are sent to my "Member Join" page if they try to login.

Hope this helps.
User avatar
Judith
Registered User
Registered User
 
Posts: 26
Joined: February 1, 2011

Re: Hide Pages From Non-Registered Users

Postby nhsatomom » February 2nd, 2011, 3:04 am

That does help, Judith. That's exactly what I've been futzing with as a work-around and now reading your success with it means I'll play with it some more. Thanks!
User avatar
nhsatomom
Registered User
Registered User
 
Posts: 25
Joined: February 1, 2011

Re: Hide Pages From Non-Registered Users

Postby Judith » February 2nd, 2011, 12:28 pm

I like the fact I don't have to have a "member options page" as the Videos suggest. Instead I put in that box my page permalink as "member-join" so anybody clicking on that menu item goes directly to my sales page. S2-Member also sends them to that page when they try to log in.

Really slick the way S2-Member works. Actually it's my third day working with S-2 - I watched all the video tutorials first. Jason Caldwell explains everything beautifully. Then I watch, pause and do what he says :mrgreen:
User avatar
Judith
Registered User
Registered User
 
Posts: 26
Joined: February 1, 2011

Re: Hide Pages From Non-Registered Users

Postby nhsatomom » February 2nd, 2011, 1:30 pm

I know -- I'm really loving s2. Used WishList first and was really disappointed, then briefly used WPMU-dev's WP membership, but didn't find it robust enough. I think I've found true love with s2.
User avatar
nhsatomom
Registered User
Registered User
 
Posts: 25
Joined: February 1, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 3 guests

cron