Summary: Notify search engines when a page is modified
Prerequisites: PmWiki 2.2.x
Pings/notifies search engines such as Google Blog Search when a page is edited. This recipe is based on Stefan Schimanski's GoogleBlogPing but can support any number of pinging services.
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
User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.