This topic contains 9 replies, has 2 voices. Last updated by Cristián Lávaque 3 years, 9 months ago.
Topic Author | Topic |
---|---|
Posted: Thursday Mar 21st, 2013 at 1:24 am #45284 | |
Hi, I’ve been playing around with drip feed content and I just need to sort out one basic thing that I couldn’t reading through s2member instructions. Example: in the scripting section I can find this:
) will give you a timestamp at which a Member first paid for Level#1 access. Okie dokie. But I’ve inserted that code in my post and it doesn’t show anything. So I’ve tried inserting a print command to see what happens:
Now it does show the time, but it shows an awkward number like 1360136253. How do I make it show the exact number of days the guy has been registered? So basically what I wanted was a simple function where I could write how many days he still have till he can see the content. So, say he joined yesterday and the content would be available in 7 days from registration:
The function would then translate to 5 in this case. Not sure how hard it is to do that. I fully understand that this is not part of the plugin itself, so I understand that if this is too hard I should hire someone to do it. But, anyway, I decided to post here in case it wasn’t that hard and someone could sort it out quick and painlessly ;) BTW, I’ve installed the ezPHP plugin but the PHP code is still showing as a text when I view my post. Dunno what I’m doing wrong. I’ve found a way around with some shortcodes from my theme (Catalyst) but still would be nice to have PHP directly into the posts. Any idea on how to sort this out? I just added the plugin and activated. Anything else I need to do? Thanks! |