latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Advanced content drip

Home Forums Community Forum Advanced content drip

This topic contains 3 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years, 9 months ago.

Topic Author Topic
Posted: Wednesday Mar 14th, 2012 at 7:13 pm #8181

Hello,

I’m looking for a way to make this work but I’m stuck.
Can anyone spot what I’m doing wrong?

Thank you

<?php if(s2member_paid_registration_time("") >= ($_7_days_ago = strtotime("-7 days")) && >=
 current_user_can("access_s2member_level4") || current_user_can("access_s2member_ccap_life")){ ?>
        Drip content to Members that started paying you at any Level, at least 7 days ago AND can access level#4 or have custom capability 'life'.
    <?php } ?>

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Thursday Mar 15th, 2012 at 3:51 am #8200

Hi Philly.

Try this:

[hilite pre_code]
= strtotime('-7 days') && (current_user_can('access_s2member_level4') || current_user_can('access_s2member_ccap_life'))) { ?>
Drip content to Members that started paying you at any Level, at least 7 days ago AND can access level#4 or have custom capability 'life'.

[/hilite]

I hope it helps. :)

Posted: Thursday Mar 15th, 2012 at 8:52 am #8225

Perfect
thank you Cristián

Posted: Thursday Mar 15th, 2012 at 2:54 pm #8276

You’re welcome. :)

Viewing 3 replies - 1 through 3 (of 3 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.