Community Support Forums — WordPress® ( Users Helping Users ) — 2010-11-09T19:34:34-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=1171 2010-11-09T19:34:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1171&p=4591#p4591 <![CDATA[Re: How Do I Hide Posts For Members?]]>
There are enough freelance programmers out there that could make the adjustments at a reasonable price or, if you want to learn yourself, I'd suggest starting at W3C Schools (http://www.w3schools.com/).

Specifically the PHP section (http://www.w3schools.com/php/default.asp)

Like I mentioned, the guys who made the plugin would be the best ones to hire to customize things for you. The rate of investment for hiring them is pretty favourable when considering having to deal with unkown programmers and/or trying to teach yourself to program.

Statistics: Posted by Guest — November 9th, 2010, 7:34 pm


]]>
2010-11-09T17:25:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1171&p=4590#p4590 <![CDATA[Re: How Do I Hide Posts For Members?]]>
But does it mean I have to specify posts by ID (each one of them) to hide them?

Statistics: Posted by jetheat — November 9th, 2010, 5:25 pm


]]>
2010-11-09T16:04:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1171&p=4587#p4587 <![CDATA[Re: How Do I Hide Posts For Members?]]>
For what you need, all your answers can really be found there.

ie:

Code:
<?php if(is_user_logged_in()){ ?>
    Content for anyone that is logged in, regardless of their Membership Level.
<?php } else { ?>
    Some public content.
<?php } ?>


Another example is:

Code:
<?php if (current_user_is("s2member_level1")){ ?>
    Content for Members at exactly Level# 1.
<?php } else if(current_user_is_not("s2member_level4")) { ?>
    Some content for those who are NOT at Level #4.
<?php } else if(is_user_not_logged_in()) { ?>
    Some public content.
<?php } ?>


Best place to put this, in my opinion, would be in your main theme header.

Additionally, you can have PrimoThemes do a custom installation, though I have yet to figure out how to directly contact them for such services.

Statistics: Posted by Guest — November 9th, 2010, 4:04 pm


]]>
2010-11-09T09:48:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1171&p=4580#p4580 <![CDATA[Re: How Do I Hide Posts For Members?]]>
When the public arrive at my site, they see open/public posts.

How do I set up conditionals?

But more importantly, how do i separate the public posts from the private ones so they are not mixed together in one area (like on the front page).

Statistics: Posted by jetheat — November 9th, 2010, 9:48 am


]]>
2010-11-08T20:55:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1171&p=4576#p4576 <![CDATA[Re: How Do I Hide Posts For Members?]]> Statistics: Posted by Guest — November 8th, 2010, 8:55 pm


]]>
2010-11-08T20:00:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1171&p=4575#p4575 <![CDATA[How Do I Hide Posts For Members?]]>
Then when I create a blog post for a member, I don't want it to appear amongst the hundreds of non member posts on the front page.

So how do I avoid having posts for members appearing amongst the non member posts.

I want the members to see these special posts once they have logged in.

At the same time, I don't want members who are logged in to see the public posts coz they will only clutter the space.

Any suggestions?


JH

Statistics: Posted by jetheat — November 8th, 2010, 8:00 pm


]]>