Bloge-Ping is a part of Cookbook.Bloge, but may also be used as a standalone recipe.
- download bloge-ping.phpΔ to your cookbook directory
- add the following line to a configuration file:
By default, Bloge-Ping only supports the Google Blog Search Pinging Service API. In order to ping other services, you'll need to add an entry to
$BlogePing['tgt'] in the following format:
$BlogePing['tgt']['googleblogsearch'] = array( 'url' => 'http://blogsearch.google.com/ping', 'param' => array('name','url','changesURL'), 'msgpat' => '/Thanks for the ping/' );
The parameters listed above may also be defined separately for each Bloge-Ping target:
$BlogePing['tgt']['googleblogsearch']['changesURL'] = 'http://path.to.your/rss.feed';
or for all targets:
$BlogePing['url'] = 'http://path.to.your/blog/main.page';
'msgpat' is a regular expression pattern that will be matched against the reply from the pinging service. Use / as a delimiter to identify a successful reply and ! for a negative one (eg.
For other configuration options, please see the source file.
The reply from the pinging service is currently lost, as the
$MessagesFmt contents are not shown after a redirect, which occurs when a page is successfully posted. I don't have a good answer for this.
You can use this to ping anything on a successful page edit, not just search engines. Why or how this might be useful I'll leave to your own imagination.
- Bloge — A bundle of blogging
- GoogleBlogPing — Google Blog Search Ping - Support for Google's weblog search ping service
See discussion at Bloge-Ping-Talk