Community Support Forums — WordPress® ( Users Helping Users ) — 2011-05-16T17:33:56-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6428 2011-05-16T17:33:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6428&p=15127#p15127 <![CDATA[Re: REstrict Links inside Blog Posts?]]> Statistics: Posted by Cristián Lávaque — May 16th, 2011, 5:33 pm


]]>
2011-05-16T16:06:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6428&p=15121#p15121 <![CDATA[Re: REstrict Links inside Blog Posts?]]> Statistics: Posted by moses5407 — May 16th, 2011, 4:06 pm


]]>
2011-05-16T01:31:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6428&p=15078#p15078 <![CDATA[Re: REstrict Links inside Blog Posts?]]>

WP Admin -> s2Member -> API / Scripting -> Using Advanced Conditionals
WP Admin -> s2Member -> API / Scripting -> Advanced Query Conditionals

http://www.s2member.com/api-scripting-overview-video/
http://www.s2member.com/advanced-conditionals-video/

Statistics: Posted by Cristián Lávaque — May 16th, 2011, 1:31 am


]]>
2011-05-16T00:01:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6428&p=15077#p15077 <![CDATA[Re: REstrict Links inside Blog Posts?]]> Statistics: Posted by moses5407 — May 16th, 2011, 12:01 am


]]>
2011-05-15T20:56:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6428&p=15071#p15071 <![CDATA[Re: REstrict Links inside Blog Posts?]]>
is there a higher level method that would apply to links on all pages versus in single pages or posts?
Might come in handy..site-maintenance-wise..

Statistics: Posted by moses5407 — May 15th, 2011, 8:56 pm


]]>
2011-05-15T19:12:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6428&p=15069#p15069 <![CDATA[Re: REstrict Links inside Blog Posts?]]>
So If I wanted to restrict a link, I might use 3 'If' statements like this:

Code:
[s2If !is_user_logged_in()]To access this link please <a href="http://www.put your link to your premium registration page here">sign up for  a Premium membership</a>.[/s2If]

[s2If current_user_is(s2member_level0)]To access this link please <a href="http://www.put your link to your premium registration page here">upgrade to  a Premium membership</a>.[/s2If]

[s2If current_user_can(access_s2member_level1)]PUT YOUR LINK HERE[/s2If]


So above we have 3 options.

1.) The first is displayed to visitors who are not logged in and they are told to SIGN UP for a PREMIUM membership in order to view the link.

2.) This second option is only displayed to members WHO ARE LOGGED in but have a FREE account at level 0. They are told to UPGRADE in order to see the link.

3.) This link is displayed to LEVEL 1 or PREMIUM members and they just see the link.

So you have now configured what each person will see on the page. You can change the conditionals to include members of different levels or as you see fit.

Hope that helps, it's a great feature that EVERYONE should use to get the most out of this plugin!

Statistics: Posted by rossagrant — May 15th, 2011, 7:12 pm


]]>
2011-05-15T18:54:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6428&p=15068#p15068 <![CDATA[Re: REstrict Links inside Blog Posts?]]> Statistics: Posted by moses5407 — May 15th, 2011, 6:54 pm


]]>
2011-05-14T07:00:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6428&p=15012#p15012 <![CDATA[Re: REstrict Links inside Blog Posts?]]>
Navigate your way to the menu inside the dashboard S2Member--->API/Scripting--->Using Simple Conditionals.

It will show you how you can wrap ANYTHING in a shortcode which will only give users who are of a certain level access to it.

To any other members they simply won't see it, or you can put some other text inbetween shortcodes for the free members to see which says something like, 'To View This Link, Upgrade Your Subscription!' etc.

I use them all the time and Jason is looking at implementing these codes by means of a button in the visual editor for easy implementation in future versions.

Hope that helps!

Statistics: Posted by rossagrant — May 14th, 2011, 7:00 am


]]>
2011-05-14T03:02:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6428&p=15005#p15005 <![CDATA[REstrict Links inside Blog Posts?]]>
Thanks!

Statistics: Posted by starme — May 14th, 2011, 3:02 am


]]>