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™
<?php
if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
exit("Do not access this file directly.");
$_POST['s2member_pro_paypal_registration']['first_name'] = $_GET['fname'];
$_POST['s2member_pro_paypal_registration']['last_name'] = $_GET['lname'];
$_POST['s2member_pro_paypal_registration']['email'] = $_GET['email'];
$_POST['s2member_pro_paypal_registration']['custom_fields']['reg_code'] = $_GET['regcode1'];
?>
<?php
if(realpath(__FILE__) === realpath($_SERVER["SCRIPT_FILENAME"]))
exit("Do not access this file directly.");
/**/
add_action("init", "my_s2_prefills", 1);
function my_s2_prefills()
{
if(!isset($_POST["s2member_pro_paypal_registration"]))
{
$_POST["s2member_pro_paypal_registration"]["first_name"] = @$_GET["fname"];
$_POST["s2member_pro_paypal_registration"]["last_name"] = @$_GET["lname"];
$_POST["s2member_pro_paypal_registration"]["email"] = @$_GET["email"];
$_POST["s2member_pro_paypal_registration"]["custom_fields"]["reg_code"] = @$_GET["regcode1"];
}
}
?>
<?php
if(realpath(__FILE__) === realpath($_SERVER["SCRIPT_FILENAME"]))
exit("Do not access this file directly.");
/**/
add_action("init", "my_s2_prefills", 1);
function my_s2_prefills()
{
if(strpos($_SERVER["REQUEST_URI"], "/my-free-registration-form-slug") !== false)
if(!isset($_POST["s2member_pro_paypal_registration"]))
{
$_POST["s2member_pro_paypal_registration"]["first_name"] = @$_GET["fname"];
$_POST["s2member_pro_paypal_registration"]["last_name"] = @$_GET["lname"];
$_POST["s2member_pro_paypal_registration"]["email"] = @$_GET["email"];
$_POST["s2member_pro_paypal_registration"]["custom_fields"]["reg_code"] = @$_GET["regcode1"];
}
}
?>
Return to Common Questions/Problems/Tips
Users browsing this forum: No registered users and 1 guest