PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

where to add php code for paypal/terms checkbox??

s2Member Plugin. A Membership plugin for WordPress®.

where to add php code for paypal/terms checkbox??

Postby Jane1 » January 21st, 2011, 12:05 am

I am very happy to say I've found code to create a required terms and conditions checkbox for paypal: http://www.codingforums.com/showthread.php?p=1039354. However, I don't know which file to put the php code to make the checkbox function. Could someone look into this to find what I've missed?

Here are the highlights from the post:
Checkbox code to go inside the wordpress page's html tab:
<tr>
<td><input type="checkbox" name="chkTC" id="chkTC" value="yes" /></td>
<td><div align="left" class="maintext">I accept this site's Terms &amp; Conditions</div></td>
</tr>

Php code I need help placing:
if (isset($_POST['hdnSubmit'])) {

as well as this:

if (!isset($_POST['chkTC']) || $_POST['chkTC'] != 'yes') {
// error: terms and conditions was not accepted
die('You need to accept this site\'s Terms and Conditions to continue.');
}

I am halfway there and would love some help.

Thank you.
User avatar
Jane1
Registered User
Registered User
 
Posts: 19
Joined: January 17, 2011

Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron