dustinmattison
Expert
Just Getting Started
Member Likes (0)
Hello
I don't understand what the edit pings is about. Can someone explain? How do I set it up and use it?
Dustin

Responses (15)
WPMU DEV Fanatic (joined October 2009) Likes (0)
Hi Dustin,
I'll check with the team about getting the Pings mentioned on the project page along with instructions for usage but I'll be glad to cover some of that right here with a quick example as well.
Membership Pings are an advanced feature meant more for developers, that let you send out "pings" whenever particular actions occur within Membership, such as membership level and subscription movement (ie. when a member's membership level changes).
So as an example, what we have here is a basic file that that the Ping will communicate with. We'll call it pingtest.php and it can be placed anywhere on the server. Here's the code for it:
Creating a blank file, calling it pingtest.php, then pasting that code into it, we can then copy that file into the domain root at domain.com/.
Now we'll go to Membership > Edit Pings. The Ping could then be setup somewhat as follows:
Ping Name: Ping Test
Ping URL: http://domain.com/pingtest.php
Ping Data:
blogurl=%blogurl%
username=%username%
subscription=%subscriptionname%
level=%levelname%
Strip query strings from URL: POST
With that Ping created, you can now specify that Ping in any of your subscriptions or membership levels and whenever they're added to a member, it will set off the Ping.
In this particular case, the Ping results in an email being sent to the email specified in the pingtest.php script. That email will include the blog name, username of the member in question, subscription level being added/change, and membership level being added/changed.
With that, you can easily have Membership automatically send an email to the admin whenever movement occurs in Membership.
It may be much easier to use a plugin such as Formidable Forms, though I haven't tried the combination as yet.
http://wordpress.org/extend/plugins/formidable/
Let me know if you've got any questions on this, will be glad to help. :)
Cheers,
David
Member (joined May 2011) Likes (0)
David, thanks for the response. I am not a programmer, but I will try to study what you wrote above. When will a full instruction package be provided?
Dustin
WPMU DEV Fanatic (joined October 2009) Likes (0)
Hi Dustin,
Ultimately, since the Pings really are meant more for developers, the instructions would likely seem much like the instructions I just gave. Fortunately though, these instructions don't involve any actual coding since the code's all provided, it's just a matter of copy-pasting.
That said, we'll be happy to delve into any individual questions you might have on it all right here in the forums. Just let us know! :)
Thanks,
David
Member (joined February 2011) Likes (0)
Hi David - trying to get a ping out of Membership beta 2 . Using your code, I get the email, the email has the labels, but no data. Have tried to ping from level and subscription.
What am I doing wrong?
code:
WPMU DEV Fanatic (joined October 2009) Likes (0)
Hi Bob,
Hmm, strange. Could you let me know where you have the Ping setup? Is it in the Subscription or Membership Level? Perhaps both?
Also, looking back at this, I think this can actually be much more easily done by adding the code to a page template, or easier yet, using a plugin like Formidable Forms to create a form from the WordPress back-end.
http://wordpress.org/extend/plugins/formidable/
Cheers,
David
Member (joined February 2011) Likes (0)
David -
Below is the info, but as you said formidable may be a better solution. Can you explain - briefly - what using "a plugin like Formidable Forms to create a form from the WordPress back-end." is about? I understand forms - I'm a programmer. But what is a backend form, what triggers it and where can I find out more info re this approach?
Cheers,
Bob
Here's the php for pingtest1.php:
the file is at the same level as the wp files and folders.
the results - whether the ping is from subscription or membership or both is the same: an email with this body:
Blog url:
Username:
Subscription:
Membership Level:
Developer (joined June 2008) Likes (0)
Do you have your Ping set to post with a GET or a POST? It should be POST if you are using $_POST in the receiving script.
Can you change the $_POST parts of that to $_REQUEST just to make sure that the variables are being sent through in one way or another.
Member (joined February 2011) Likes (0)
David/Berry -
I'm looking for a way during membership signup to automatically send MailChimp more info - specifically the subscriptiontitle, so I can segment my MC list based on what membership they pick.
David said: "Also, looking back at this, I think this can actually be much more easily done by adding the code to a page template, or easier yet, using a plugin like Formidable Forms to create a form from the WordPress back-end."
Great! Have installed formidable (free) on a different site, nice. User can now fill in form and submit,
But can you point me in some direction/explain what you mean by:
"create a form from the WordPress back-end." - I don't get it. Does some sort of formidable form get populated from the Membership form? or combining somehow the WPMU and a custom form?
Member (joined February 2011) Likes (0)
I could really use a helping URL or sentence or two....
Sales & Support Pro (joined March 2010) Likes (0)
Hiya,
Sorry for the delay here.
I've not used Formiddable forms myself so I'll ask David to clarify here on what he was thinking of for this.
Cheers,
Phil
Developer (joined June 2008) Likes (0)
That's what the main idea behind the pings was. It all depends on what the API for the relevant services are, and whether they accept a post of get with the information.
I've not looked at MailChimp so I'm not sure how signups are handled on it.
Developer (joined June 2008) Likes (0)
I've done a test, and it's actually quite easy to integrate pings with mailchimp to add and remove users from existing lists. I'm going to see if I can write up a little tutorial on how to do it and post it over on wpmu.org
Member (joined February 2011) Likes (0)
Barry,
Excellent - An I will commit to testing it! How soon? :)
Member (joined April 2011) Likes (0)
Glad I found this post. Pinging MailChimp would be super useful. Eagerly awaiting tutorial :)
Founder & CEO (joined May 2007) Likes (0)
Just marking this thread as resolved - I believe the feature is already with us or shortly on the way... please feel free to re-open if required!
Cheers, James
Become a member