Page 1 of 1

Please help, what am I doing wrong? Content Dripping!

PostPosted: June 8th, 2011, 11:24 am
by wealthyc
Hello, I'm attempting to use the content dripping code which I have provide below.

Code: Select all
<?php if(s2member_registration_time("level1") >= ($_10_days_ago strtotime("-10 days"))){ ?>
My content Here
<?php ?>


It is to my understanding that this code will show my content to those members who have registered 10 days ago and have level 1 access. The problem is, I have created a test member about 15 days ago and gave it level 1 access but the content still will not show to that member.

Can someone tell me what I'm doing wrong here, am I missing a step or any other key factors?

Re: Please help, what am I doing wrong? Content Dripping!

PostPosted: June 8th, 2011, 5:46 pm
by Cristián Lávaque
I'd echo those times and see what you're comparing.

Code: Select all
echo s2member_registration_time("level1"), '

'
, strtotime("-10 days");