Page 1 of 1

Hidden Until Contribute Comment

PostPosted: July 21st, 2010, 7:24 pm
by alberto
Does s2Member Plugin allow for content to be hidden until a comment is made?

username1 from Miami
username2 from Denver
Both reading post number 1

If username1 comments, a special "VIP" section about Miami is "visible" (within post number 1) for viewing while section about Denver is "hidden". Obviously large section is not ideal, just thinking of one or two liner "VIP" tips.

I think of it as contribute and get rewarded

Re: Hidden Until Contribute Comment

PostPosted: July 22nd, 2010, 11:14 pm
by Jason Caldwell
Sorry. No. s2Member does NOT provide this ability on its own.
However, you can do something like this in PHP.

Code: Select all
<?php
function current_user_has_comments(){
    $get= wp_get_current_commenter();
    if($get["comment_author"])
        return true;
}

if(current_user_has_comments()){
    // do something here
}
?>