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.

About: Adam Torkildson

Sorry, I've not written a description yet. I'll get to it soon!


My Latest Replies (From Various Topics)

Viewing 8 replies - 1 through 8 (of 8 total)
Author Replies
Author Replies
Posted: Wednesday Jul 24th, 2013 at 8:41 am #53989

I don’t have any custom API notification handlers, and there wouldn’t be any common problems to fix because it’s a notification email; which is either handled by s2member, or by paypal. So will check with them.

Posted: Sunday Jul 21st, 2013 at 8:47 am #53771

It’s coming from the admin email associated with s2member; not my paypal email (which is different than my s2member admin email) or from a paypal.com email address.

Posted: Saturday Jul 20th, 2013 at 8:49 am #53727

It’s not an upgrade or a new signup. This is the automated receipt a user gets after they’ve been billed a 2nd time for the subscription. I assume they’ll keep getting the same automated email every 30 days, or whatever the billing cycle happens to be. I need to change THAT email.

Posted: Wednesday May 1st, 2013 at 12:23 pm #48931

Ok, this is my current assumption for what I need to do:

1. Create a custom hack to pull in dynamic information and store it in a custom registration field. I believe I have that one 90% figured out. I created an ‘s2hacks.php’ file, stored it under /mu-plugins/, and inserted the following code:

<?php
add_action("ws_plugin__s2member_before_custom_field_gen", "my_dynamic_field_options");
function my_dynamic_field_options ($vars = array ())
{
    $_field = &$vars["_refs"]["_field"];
    if ($_field["id"] === "lead_source")
        {
            $_field["options"] = //I have no idea what to put here. Some variable from my google parser script?
            
        }    
         
}
?>

2. I created a custom registration field, with the id of ‘lead_source’
3. I don’t know how to hide that field from the registration form yet, but I should be able to figure it out.
4. What I don’t know how to do is take the variables from my google parser script above, and feed them into the ‘lead_source’ field in my s2hacks.php file.

Posted: Tuesday Apr 30th, 2013 at 12:23 pm #48801

I’m not experienced enough to take all the logic that you’ve laid out, and apply it to my example. In theory, I understand that:
1. I need to set up a url that has the variable I’m trying to capture
2. I need some way to attach those variables to a user’s profile

Now for my specific situation, I’ve found a script that takes the utmz cookie in google analytics, and parses out all the different variables (like referring domain, keyword, medium, source) , listed here:

<?php
//DEFINE COOKIE DOMAIN, ALLOWS SCRIPT TO BE USED ACROSS MULTIPLE DOMAINS
$domain = $_SERVER['SERVER_NAME'];
$domain = "." . ltrim($domain,"www.");

// SET COOKIES FROM GOOLGE-ANALYTICS COOKIE
$info = $_COOKIE['__utmz'];
// Get rid of id stuff
$holder = split("u", $info, 2);
$string = "u" . $holder[1];
// Parse String
$ga_vars = split("\|", $string);
foreach ($ga_vars as $var) {
list($key,$value) = split("=",$var);
if ($key == "utmcmd") { setcookie("Medium", $value, time()+100000000, "/", $domain); $medium = $value; }
if ($key == "utmctr") { setcookie("Keywords", $value, time()+100000000, "/", $domain); $keywords = $value; }
if ($key == "utmcsr") { setcookie("GAsource", $value, time()+100000000, "/", $domain); $gasource = $value; }
}

// SET REFERRING URL
if (!isset($_COOKIE['Referer'])) {
setcookie("Referer", $_SERVER['HTTP_REFERER'], time()+10000000, "/", $domain);
$referurl = $_SERVER['HTTP_REFERER'];
} else { $referurl = $_COOKIE['Referer']; }

// SET FORM_URL VALUE
$formurl = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];

// SET LANDING PAGE
if (!isset($_COOKIE['LandingPage'])) {
setcookie("LandingPage", "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], time()+10000000, "/", $domain);
$landingpage = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
} else { $landingpage = $_COOKIE['LandingPage']; }
?>

So I imagine that there is some way for me to somehow grab the variables from the code above, and display them in my user list in the admin dashboard as another column of information. But I have no idea how that would work.

Posted: Thursday Apr 18th, 2013 at 8:02 am #47775

I can get the regular API credentials for my Business Account just fine.
But is there a different set of API credentials for Payments Pro?

And for the Sandbox/Developer API credentials, are there 2 different sets as well? One set for Payments PRO and one for regular Business accounts?

Because there is sandbox.paypal.com, and https://www.x.com/developers/paypal; I don’t know which one I should be using to set up a test environment for my Payments Pro account. Or if paypal automatically gives me the proper sandbox API credentials simply because my account has been approved for Payments PRO in the first place.

Posted: Thursday Mar 21st, 2013 at 4:20 pm #45390

No worries, I got it handled.

Posted: Wednesday Mar 20th, 2013 at 10:23 am #45231

Just submitted the contact form.

Viewing 8 replies - 1 through 8 (of 8 total)

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.