Re: Drip content for different pricing options

So I just need to figure out the PayPal button code problem and I can put this code for each page/post that is dripped to level #1? Got any ideas about that PayPal message I was receiving?
— WordPress® ( Users Helping Users ) —
http://www.primothemes.com/forums/
2 => 'Unable to verify _SERVER[HTTP_HOST]. Possibly caused by a fraudulent request. If this error continues, please check the `custom` value in your Form and/or Button Code. It MUST always start with your domain name.',
custom="www.yoursite.com"
drawingsecretsrevealed wrote:I went there and logging was disabled. I enabled it and found the s2member-logs file. There were two: paypalipn.log and paypalrtn.log. Which one do I post? And there is so much text here - what sort of private info would I be looking for?
Cristián Lávaque wrote:Great! It's pretty simple to do with conditionals. Something like this:
- Code: Select all
<?php if (current_user_can('access_s2member_level2') || (current_user_can('access_s2member_level1') && S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS >= 30)) { ?>
Show the content.
<?php } else { ?>
Sell him the access to it.
<?php } ?>
I hope that helps.
<?php if (current_user_can('access_s2member_level2') || (current_user_can('access_s2member_level1') && S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS >= 30)) { ?>
Show the content.
<?php } elseif (current_user_can('access_s2member_level1')) { ?>
Available in <?php echo (30 - S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS); ?> days.
<?php } else { ?>
Sell him the access to it.
<?php } ?>
Cristián Lávaque wrote:Did you follow the instructions in the error regarding cURL and allow_url_fopen? I'm not sure what thread it's linking to, but this one is realted to cURL and allow_url_fopen: viewtopic.php?f=36&t=2636#p7577