Community Support Forums — WordPress® ( Users Helping Users ) — 2011-10-14T11:06:16-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15531 2011-10-14T11:06:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15531&p=46872#p46872 <![CDATA[Re: MAILCHIMP AND EOT]]>
I use the code get_user_option("s2member_auto_eot_time", $user_id); to get the EOT
but I can't add it to a date field in Mailchimp.

Statistics: Posted by juanmaria — October 14th, 2011, 11:06 am


]]>
2011-10-14T10:46:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15531&p=46870#p46870 <![CDATA[Re: MAILCHIMP AND EOT]]> viewtopic.php?f=40&t=12480&src_doc_v=111011

Statistics: Posted by Eduan — October 14th, 2011, 10:46 am


]]>
2011-10-14T10:15:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15531&p=46867#p46867 <![CDATA[Re: MAILCHIMP AND EOT]]> The problem is that the code doesn't work with a date field.
I don't know how to fix that.

Suggestions please???

Statistics: Posted by juanmaria — October 14th, 2011, 10:15 am


]]>
2011-10-14T08:32:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15531&p=46860#p46860 <![CDATA[Re: MAILCHIMP AND EOT]]> viewtopic.php?f=4&t=15240&p=39160&hilit=eot+mailchimp#p39160

Tell me if it does and I hope it helps you. :)

Statistics: Posted by Eduan — October 14th, 2011, 8:32 am


]]>
2011-10-13T21:48:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15531&p=46835#p46835 <![CDATA[MAILCHIMP AND EOT]]>
I want to add a EOT field to my Mailchimp list.

I' ve tried the following code but it doesn't work:

Code:
<?php
add_filter("ws_plugin__s2member_mailchimp_merge_array", "my_filter");
function my_filter($mergeVars)
    {
        $user_id = $vars["user_id"];
        $user_custom = get_user_option("s2member_auto_eot_time", $user_id);
        $my_custom_merge_vars = array("MERGE3" => $user_custom);
        return array_merge($mergeVars, $my_custom_merge_vars);
    }
?>


Maybe it's a problem with the date format?

I use the same code to add the users IP adress and that works fine

Code:
<?php
add_filter("ws_plugin__s2member_mailchimp_merge_array", "my_filter");
function my_filter($mergeVars)
    {
        $user_id = $vars["user_id"];
        $user_custom = get_user_option("s2member_registration_ip", $user_id);
        $my_custom_merge_vars = array("MERGE4" => $user_custom);
        return array_merge($mergeVars, $my_custom_merge_vars);
    }


Can somebody help me please?

Statistics: Posted by juanmaria — October 13th, 2011, 9:48 pm


]]>