Statistics: Posted by Jason Caldwell — June 30th, 2010, 7:51 am
Statistics: Posted by syadasti — June 29th, 2010, 3:54 am
if(current_user_can("access_s2member_level2"))
{
// Yes, the Member can at least access Levels 2, 1, and 0.
}
if(S2MEMBER_CURRENT_USER_ACCESS_LEVEL > 1)
{
// Yes, the Member can at least access Levels 2, 1, and 0.
}
Statistics: Posted by Jason Caldwell — June 29th, 2010, 12:49 am
global $current_user, $post;
get_currentuserinfo();
if ($current_user->user_level > 1) {
the_content('<p class="serif">Read more</p>');
} else if (is_user_logged_in() && current_user_can("access_s2member_level1")) {
if ((in_category("music") && current_user_can("access_s2member_ccap_music")) ||
(in_category("tenders") && current_user_can("access_s2member_ccap_tenders"))) {
the_content('<p class="serif">Read more</p>');
} else {
echo "<p>" . $post->post_excerpt . "</p>";
echo "<p>Restricted1.</p>";
}
} else {
echo "<p>" . $post->post_excerpt . "</p>";
echo "<p>Restricted2.</p>";
}
?>
Statistics: Posted by syadasti — June 28th, 2010, 1:52 pm
Statistics: Posted by Guest — June 27th, 2010, 1:01 pm
Statistics: Posted by Jason Caldwell — June 24th, 2010, 12:15 am
Statistics: Posted by syadasti — June 23rd, 2010, 11:59 pm
Statistics: Posted by Jason Caldwell — June 23rd, 2010, 11:44 pm
Statistics: Posted by syadasti — May 26th, 2010, 9:12 am