Community Support Forums — WordPress® ( Users Helping Users ) — 2010-07-08T05:32:19-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=348 2010-07-08T05:32:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=348&p=1449#p1449 <![CDATA[Re: Comments/commenting for members only]]>
This will require integration with your WordPress theme.

  • In your theme directory, find the comments.php file.
  • In your comments.php file, find the section of code that builds the comment form.
  • Wrap your comment form with some Advanced Conditionals.

    You'll end up with something like this:
Code:
<?php if(is_user_logged_in() && current_user_can("access_s2member_level1")){ ?>

    // display the comment form that came with your theme.

<?php } else { ?>

    You must be logged in as a Member before you can leave a Comment.

<?php } ?>
Further documention on Advanced Conditionals, is available in your WP Dashboard, under:
s2Member -> API Scripting -> Advanced Conditionals

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


]]>
2010-07-07T03:49:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=348&p=1409#p1409 <![CDATA[Comments/commenting for members only]]>
We'll be using Free Subscribers (Level #0) as we don't have paid membership levels.

I've searched your documentation, forums and hooks and I just can't find a way to do this with s2 - and I would LOVE to do this with s2!

Any ideas?

regards,

Charlie

Statistics: Posted by cjmilcom — July 7th, 2010, 3:49 am


]]>