Community Support Forums — WordPress® ( Users Helping Users ) — 2010-07-18T02:33:19-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=349 2010-07-18T02:33:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=349&p=1642#p1642 <![CDATA[Re: Show hyperlink to members only]]> Statistics: Posted by Jason Caldwell — July 18th, 2010, 2:33 am


]]>
2010-07-17T14:16:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=349&p=1626#p1626 <![CDATA[Re: Show hyperlink to members only]]> Statistics: Posted by alberto — July 17th, 2010, 2:16 pm


]]>
2010-07-08T05:05:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=349&p=1447#p1447 <![CDATA[Re: Show hyperlink to members only]]>
Yes, you can use s2Member to accomplish this.
You'll want to use s2Member's Advanced Conditionals.

Here is a quick example:
Code:
<?php if(is_user_logged_in()){ ?>

    <a href="#">Link 1</a> - <a href="#">Link 2</a>

<?php } else { ?>

    Link 1 - Link 2

<?php } ?>
For further details, please install the s2Member plugin. Then, from your WP Dashboard, go to: s2Member -> API Scripting -> Advanced Conditionals. There are additional examples there.

Another example:
Code:
<?php if(is_user_logged_in() && current_user_can("access_s2member_level1")){ ?>

    <a href="#">Link 1</a> - <a href="#">Link 2</a>

<?php } else { ?>

    Link 1 - Link 2

<?php } ?>

Statistics: Posted by Jason Caldwell — July 8th, 2010, 5:05 am


]]>
2010-07-07T20:56:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=349&p=1444#p1444 <![CDATA[Show hyperlink to members only]]>
Want to show hyperlink to members only while keep only text for guests

For example:

[guests see] Link 1 - Link 2 - Link 3 - Link 4
[members see] Link 1 - Link 2 - Link 3 - Link 4

Thank you for your time.

Statistics: Posted by alberto — July 7th, 2010, 8:56 pm


]]>