PostAccess Restrictions without redirect and without login
Posted: January 10th, 2012, 5:33 pm
Hi! Thanks for great plugin! I want to buy the pro-version, but first I need your help!
I want to show only the_excerpt from each post and hide the_content. I want to place the paypal-button directly to the post-template (see below), the user should not be redirected to the options-page! To see the entire post, the user should use BuyNow. Than he should have access only to this one post. I think that might work like this:
So that he can only see this one post, I have to create for each post one ccap, right? Not pretty, but might work.
But now comes the big problem: I want that the user must not register!
Is this only possible if I use Specific Post Restrictions? But then the user will be redirected and i dont want to redirect.
I've seen something like this in the Plugin EasyPayPal.
How is it possible with S2Member?
Sorry for the bad English. I hope you can help!
I want to show only the_excerpt from each post and hide the_content. I want to place the paypal-button directly to the post-template (see below), the user should not be redirected to the options-page! To see the entire post, the user should use BuyNow. Than he should have access only to this one post. I think that might work like this:
- Code: Select all
<?php if (current_user_can("access_s2member_ccap_1")){ ?>
<?php the_content(); ?>
<?php } else { ?>
<?php the_excerpt(); ?>
<p>Bitte kauf diesen Artikel, um den Inhalt zu sehen</p>
<!-- PayPal BuyNow Button Code -->
<?php } ?>
So that he can only see this one post, I have to create for each post one ccap, right? Not pretty, but might work.
But now comes the big problem: I want that the user must not register!
Is this only possible if I use Specific Post Restrictions? But then the user will be redirected and i dont want to redirect.
I've seen something like this in the Plugin EasyPayPal.
Usage:
[paybutton]{Item Name*}|{Item Number*}|{Amount*}|{Currency Code}|{Subscription Days}|{Hidden Text}[/paybutton]*Required
Simple Pay Now (No Login Required)
http://www.voiceoftech.com/swhitley/?page_id=129
How is it possible with S2Member?
Sorry for the bad English. I hope you can help!