latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

free membership with outside subscription?

Home Forums Community Forum free membership with outside subscription?

This topic contains 1 reply, has 2 voices. Last updated by  Bruce 4 years ago.

Topic Author Topic
Posted: Friday Dec 28th, 2012 at 11:14 pm #35677
JCC
Username: jcc

HI,
I want to offer subscribers to my Apple Newsstand iPad magazine a bonus for subscribing in the form of free access to a membership site.

I have S2Member (free) installed on my site and would like to make it so that when they have to input their magazine subscription code into the registration form in order to be able to get the free membership.

If anyone who isn’t a subscriber to my magazine wants access then this would be paid.

This would create 2 levels ie a ‘free’ one accessed with some kind of code and a paid level.

Can this be done using S2Member? If so how? I am not a coder and have only rudimentary knowledge of very basic html so I need a very simple solution.

thanks.

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Saturday Dec 29th, 2012 at 3:12 pm #35734
Bruce
Username: Bruce
Staff Member

Hi there,

See: Knowledge Base » Offering a Free Coupon Code (100% Discount). What you’ll want to do here, is instead of using a specific keyword to have the free registration form, you’ll want to verify the user’s magazine subscription code by passing it through $_GET/$_POST variable. You should be able to just set up a regular HTML <input />. Note that this has to be set up outside of s2Member’s processes, and you’ll need a PHP Execution plugin installed. A basic example of this, which you can customize, is below.

<?php if(empty($_GET&#91;'subscription_id'&#93;) || magazine_subscription_code_verify($_GET&#91;'subscription_id'&#93;)) { ?>

<form method="get" action="">
<label for="subscription_id">If you've already got your magazine subscription code, input it here to get FREE access.</label><input type="text" name="subscription_id" />
</form>

Here's where my Button/Pro Form goes

<?php } else { // otherwise, this is a valid code ?>
Put the free pro form here
<?php } ?>

You’ll want to set up the function magazine_subscription_code_verify() in a Must-Use plugin, or change it to work with whatever technique you’re currently using to verify these codes.

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.