Community Support Forums — WordPress® ( Users Helping Users ) — 2010-06-23T22:14:30-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=172 2010-06-23T22:14:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=172&p=1140#p1140 <![CDATA[Re: Can anyone explain how to use advanced conditionals?]]>
Step 1. Get the Exec-PHP plugin for WordPress ( very lightweight )
http://wordpress.org/extend/plugins/exec-php/

Step 2. Put something like this into a Post/Page of your choosing; using the HTML tab.
Also be sure to set: WordPress -> Options -> Writing -> Tag Balancing = off ( the default setting ).
Code:
<?php if(S2MEMBER_CURRENT_USER_ACCESS_LEVEL === 0){ ?>

    Button for Level #1 upgrade. This will be presented to Free Subscribers at Level #0

<?php } ?>

Statistics: Posted by Jason Caldwell — June 23rd, 2010, 10:14 pm


]]>
2010-05-30T10:54:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=172&p=649#p649 <![CDATA[Can anyone explain how to use advanced conditionals?]]> I'm in the midst of setting up my site with 4 membership levels. Before public launch I want to extend a free membership level to a special group of people who will be eventual leaders on the site. They will have a level 3 membership with access to all pages but their membership will be free.

I believe I need to use advanced conditionals to make this happen and I have seen the code provided. However, I do not understand where this code is to be inserted or how to customize it to make it do what I want it to do.

Is there anyone who can give an explanation in simple terms about where this code goes and where the content specific to someone's particular site goes into the code?

For instance, on the non-member page where I have the paypal sign up buttons for levels 1 and 2 I would like my invited members to see something like, "Congratulations, you have been invited to be a leader in our site. This is a free membership level with access to all our site's features" with a link to allow them to subscribe at this special level. How would I make this happen with the advanced conditionals code?

I'm sorry to be so dense about all this.

Statistics: Posted by drcoach — May 30th, 2010, 10:54 am


]]>