net.nemein.ping
net.nemein.ping is a MidCOM purecode component providing automated weblog pings for MidCOM components. Weblog pings make site updates automatically indexed by services like Google Blog Search and Technorati.
The tool is based on Rogers Cadenhead's GPLd Weblog_Pinger library.
Features:
- Disabled by default
- Checks ACL for blog topic readability before sending pings
- The list of services to ping is configurable. By default:
- Weblogs.Com
- Blo.gs
- Ping-o-Matic
- Technorati
- The list of components to send pings about is configurable. By default:
- Uses the PEAR XML_RPC package
Documentation:
If the component is installed it will automatically monitor all article changes made through MidCOM DBA. If needed, pings can also be triggered manually by including the library into the _autoload_libraries array of your component's interface class:
$this->_autoload_libraries = Array(
'net.nemein.ping',
);
After this an article object can be pinged using the following API:
// Ping requested article
$pinger = new net_nemein_ping_pinger();
$pinger->ping_object($article);
The ping_object() method will notify all services listed in the library's configuration snippet. To modify the configuration, create a snippet named /sitegroup-config/net.nemein.ping/config.
The ping utility is currently disabled by default configuration. To enable it, add the following line to your config snippet:
'enable_weblog_pings' => TRUE,
Services to ping from the component are defined in the following way:
'weblog_ping_servers' => Array(
'Weblogs.Com' => Array(
'server' => 'rpc.weblogs.com',
'port' => 80,
'path' => '/RPC2',
),
),
All services listed must support the Weblogs.Com XML-RPC interface.
The list of components the library will ping about can also be configured using an array:
'components_to_ping' => Array(
'de.linkm.newsticker',
'net.nemein.wiki',
'net.siriux.photos',
),
