PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Hidden Until Contribute Comment

s2Member Plugin. A Membership plugin for WordPress®.

Hidden Until Contribute Comment

Postby alberto » July 21st, 2010, 7:24 pm

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
User avatar
alberto
Registered User
Registered User
 
Posts: 5
Joined: July 7, 2010

Re: Hidden Until Contribute Comment

Postby Jason Caldwell » July 22nd, 2010, 11:14 pm

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
}
?>
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 2 guests

cron