Community Support Forums — WordPress® ( Users Helping Users ) — 2010-12-05T12:13:20-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=1288 2010-12-05T12:13:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1288&p=4992#p4992 <![CDATA[Re: Hiding PayPal buttons?]]> Statistics: Posted by Graphis — December 5th, 2010, 12:13 pm


]]>
2010-12-05T11:57:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1288&p=4991#p4991 <![CDATA[Re: Hiding PayPal buttons?]]>
[s2If current_user_is(s2member_level2)]
Button For Level 2 Members.
[/s2If]

means only level 2 members can see it, but since s2member levels are incremental it could be that its also visible for member levels above 2 if you only use this conditional. You will have to test a little...

This should work, but I haven't tested it:

[s2If current_user_is(s2member_level2) AND !current_user_is(s2member_level0) AND !current_user_is(s2member_level3) AND !current_user_is(s2member_level4)]
button only visible to level2 members
[/s2If]

Also make sure to take a look in your s2 admin, under API/Scripting--->Simple Condtionals

Statistics: Posted by madsem — December 5th, 2010, 11:57 am


]]>
2010-12-05T11:05:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1288&p=4990#p4990 <![CDATA[Re: Hiding PayPal buttons?]]>
Does the code you provided mean that there will be more than one button i.e. one for each member level?

If so, I would prefer to just have one button, that allows purchase for everyone above the member that is denied: i.e. If a level 1 member cannot see the button, he knows that only levels 2,3, & 4 can purchase. Levels 2, 3, & 4 will be able to see it. And the same for downloads only available to level 4 members for example: everyone below level 4 won't see it.

Statistics: Posted by Graphis — December 5th, 2010, 11:05 am


]]>
2010-12-05T10:53:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1288&p=4989#p4989 <![CDATA[Re: Hiding PayPal buttons?]]>
And the exec_php should not interfere, Jason the developer here wrote me in an email that I even should use it :)


It could also be a problem how you test if it works, just to clarify:
[s2If current_user_is(s2member_level2)]
Button For Level 2 Members.
[/s2If]

simply means IF the current member has level2, show the button... So if you don't want the button to show for level2 members you should check with a level 1,3 or 4 member when this level2 conditional is in your page/post

Statistics: Posted by madsem — December 5th, 2010, 10:53 am


]]>
2010-12-05T10:26:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1288&p=4988#p4988 <![CDATA[Re: Hiding PayPal buttons?]]>
I then tried your other codes, but none of them seem to work either. Sorry. Maybe I'm just not getting this here, I don't understand. I am not using the visual editor, I've disabled it because I'm also using the ExecPHP plug in. I'm also using the plugin 'EasyFileShop', which allows for selling files as downloads. Could either of these be interfering with the conditionals?

Statistics: Posted by Graphis — December 5th, 2010, 10:26 am


]]>
2010-12-05T10:05:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1288&p=4986#p4986 <![CDATA[Re: Hiding PayPal buttons?]]>
you can try this:

[s2If current_user_is(s2member_level0)]
Button For Level 0 Members.
[/s2If]
[s2If current_user_is(s2member_level1)]
Button For Level 1 Members.
[/s2If]
[s2If current_user_is(s2member_level2)]
Button For Level 2 Members.
[/s2If]
[s2If current_user_is(s2member_level3)]
Button For Level 3 Members.
[/s2If]
[s2If current_user_is(s2member_level4)]
Button For Level 4 Members.
[/s2If]


And PS: You should enter shortcodes always in html editor mode, just in case...the preview mode could wrangle up the code

Statistics: Posted by madsem — December 5th, 2010, 10:05 am


]]>
2010-12-05T09:22:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1288&p=4985#p4985 <![CDATA[Re: Hiding PayPal buttons?]]> Statistics: Posted by Graphis — December 5th, 2010, 9:22 am


]]>
2010-12-05T01:38:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1288&p=4981#p4981 <![CDATA[Re: Hiding PayPal buttons?]]>
[s2If !current_user_can(access_s2member_level4) AND !current_user_can(access_s2member_level3) AND !current_user_can(access_s2member_level2) AND current_user_can(access_s2member_level1)]
**paypal button** for level 1 members
[/s2If]

Statistics: Posted by madsem — December 5th, 2010, 1:38 am


]]>
2010-12-03T17:18:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1288&p=4952#p4952 <![CDATA[Hiding PayPal buttons?]]> It occurred to me that a really good way of doing it, would be for the customer to be able to read the post (rather than hiding the entire post), but only if they are at a certain membership level will a 'Buy Now' button appear at the bottom.

So is there any way of restricting the display of the PayPal button?

Statistics: Posted by Graphis — December 3rd, 2010, 5:18 pm


]]>