Community Support Forums — WordPress® ( Users Helping Users ) — 2011-03-16T11:58:05-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2706 2011-03-16T11:58:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2706&p=7912#p7912 <![CDATA[Re: S2Member - Restricted Page Displays]]> WP Admin -> s2Member -> API / Scripting -> Advanced Query Conditionals.

Further details and additional functions can be found inside:
/s2member/includes/functions/api-functions.inc.php

Statistics: Posted by Cristián Lávaque — March 16th, 2011, 11:58 am


]]>
2011-03-16T05:17:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2706&p=7901#p7901 <![CDATA[S2Member - Restricted Page Displays]]>
I m new to S2Member Plugin.
And I need to display 'Pages' Widget according to the s2Member levels.

I could quitely achieve this through similar to following snippet, in sidebar.php

<?php if (S2MEMBER_CURRENT_USER_ACCESS_LEVEL === 0){ ?>
echo 'LEVEl 0 Member';
<?php } ?>
<?php if (S2MEMBER_CURRENT_USER_ACCESS_LEVEL === 2){ ?>
echo 'LEVEl 2 Member';
<?php } ?>

But I need to set this in wp-admin panel.

That is restricted pages should not be visible to corresponding members after login.
Also need a possibility to add/remove restricted page IDs from wp-admin.

Anybody there to help out?

Its urgent.


Thanks a lot.

Statistics: Posted by prema — March 16th, 2011, 5:17 am


]]>