Statistics: Posted by Cristián Lávaque — July 8th, 2011, 8:43 pm
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
Statistics: Posted by Cristián Lávaque — July 7th, 2011, 1:57 am
<?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;
}
?>
Statistics: Posted by Jason Caldwell — July 3rd, 2011, 2:07 pm
custom="mysite.com|<?php echo $_COOKIE['ap_id']; ?>"
<?php echo 'Hello world.'; ?>
Statistics: Posted by Jason Caldwell — July 3rd, 2011, 1:17 pm
Statistics: Posted by Cristián Lávaque — July 3rd, 2011, 1:35 am
Statistics: Posted by ifanatics — July 3rd, 2011, 12:52 am
Statistics: Posted by ifanatics — June 29th, 2011, 6:43 pm
Statistics: Posted by Jason Caldwell — June 29th, 2011, 5:33 pm
Statistics: Posted by ifanatics — June 28th, 2011, 8:56 am
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']; ?>"
Statistics: Posted by Jason Caldwell — June 27th, 2011, 11:48 pm
Statistics: Posted by Cristián Lávaque — June 27th, 2011, 3:44 pm
Statistics: Posted by ifanatics — June 27th, 2011, 4:04 am
Statistics: Posted by Cristián Lávaque — June 26th, 2011, 10:22 pm
Statistics: Posted by ifanatics — June 26th, 2011, 9:21 pm
Statistics: Posted by ifanatics — June 26th, 2011, 9:13 am