Yes, but the problem is not the echo itself. The problem is that content is not being shown when it was supposed to. And the only difference I’ve found was between user that I’ve MANUALLY added as subscribers and users that were added as users via the S2member’s API.
The only reason I added the echo command was to find out which date S2member was recognizing the payment date and why these subscribers, even tough they have been registered to the site for 100+ days can’t see the content which would be drip fed after 7 days. In other words, they should ALREADY have access.
The echo command refreshes everytime with today’s date and time. So because of that, it “seems” for s2memeber that the user has 0 days from payment :(
Here’s the code. The “{{content}}” thing is for a wordpress shortcut.
EDIT: some developments. I find out that the actual timestamp was printing “0” and not today’s date. I made a mistake before. Now I set a different code to show all timestamps for all levels for the user, and for some reason, the way the user was added to the site was as a NON PAID member.
So that’s why the drip feed was not working.
I dunno why that happened, but anyway I can make all these users be recognized as PAID users with the RIGHT time?
<?php if((S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS >= 0) AND (S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS < 7)){ ?>
<p>You don't have access.</p>
<?php $level1_payment_time = s2member_paid_registration_time("level1"); echo $level1_payment_time?>
<?php $level2_payment_time = s2member_paid_registration_time("level1"); echo $level2_payment_time?>
<?php $level3_payment_time = s2member_paid_registration_time("level1"); echo $level3_payment_time?>
<?php $level3_payment_time = s2member_paid_registration_time("level1"); echo $level3_payment_time?>
<?php $level_no_payment_time = s2member_registration_time (); echo $level_no_payment_time?>
<?php $level_payment_time = s2member_paid_registration_time (); echo $level_payment_time?>
<?php } ?>
<?php if(S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS >= 7){ ?>
{{content}}
<?php } ?>