I'm trying to update another DB on a different server when a subscription is updated, but I can't see what I'm missing here. I've added this to site.inc.php Code: setup_plugin_hook('subscription_updated', 'updateap'); function updateap($member_id, $oldmember,$newmember){ global $db; print "inupdate"; $u = $db->get_user($member_id); //get_url($url, $post, $add_referrer) get_url("http://www.myurl.com/test.php"); print_r($u); die; } Stress that this is test code (which is why there is a print and die in there), but the test.php file will write info to a text file and so far nothing is happening. If I change the member data here: /amember/admin/users.php?action=edit_payment&payment_id=####&member_id=### The call never seems to be made .. what am I missing?
Take a look at my eFront plugin: http://www.amember.com/forum/attachment.php?attachmentid=240&d=1273212962 ...specifically the efront_updated function. It should give you an idea of what is needed.
Hi, subscription_updated call will be executed onyl for active users(when profile is changed) Also are you sure that curl is working on your install. when you use get_url outside of the hook, are you able to load above url?