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™
Here's what I'm doing currently (with the shortcode):
custom="mysite.com|<?php echo $_COOKIE['ap_id']; ?>"
custom="mysite.com|<?php echo $_COOKIE['ap_id']; ?>"
custom="mysite.com|<?php echo $_COOKIE['ap_id']; ?>"
<?php echo 'Hello world.'; ?>
<?php
add_action ("ws_plugin__s2member_before_sc_paypal_button_after_shortcode_atts", "wp_aff_s2member_integration");
add_action ("ws_plugin__s2member_pro_before_sc_paypal_form_after_shortcode_atts", "wp_aff_s2member_integration");
function wp_aff_s2member_integration ($vars = array ())
{
$cookie_value = esc_html ($_COOKIE["ap_id"]);
$vars["__refs"]["attr"]["custom"] .= "|" . $cookie_value;
}
?>
Thank you guys for all the pointers and help. I have now released an updated version of the affiliate plugin and integrating this version with the s2Member is super easy. The customer essentially have to activate these two plugins and check a few checkboxes and thats it. Here is the updated integrated instruction:
http://www.tipsandtricks-hq.com/wordpre ... ftware-368
Users browsing this forum: Google [Bot] and 1 guest