Hack du plugin Ping de DotClear
Par Ludovic Toinel le mercredi 26 octobre 2005, 23:10 - DotClear - Lien permanent

Voici un petit hack du plugin 'Ping' qui permet d'ajouter des nouvelles destinations.
Editez le fichier '/ecrire/tools/ping/index.php' et trouvez :
$ping_sites = array( 'Weblogues.com' => array('www.weblogues.com','/RPC/',array($objPing,'weblogPing')), 'Weblogs.com' => array('rpc.weblogs.com','/RPC2',array($objPing,'weblogPing')), 'Blo.gs' => array('ping.blo.gs','/',array($objPing,'weblogPing')), 'Technorati' => array('rpc.technorati.com','/rpc/ping',array($objPing,'weblogPing')), 'Syndic8' => array('www.syndic8.com','/xmlrpc.php',array($objPing,'weblogPing')), 'RootBlog' => array('ping.rootblog.com','/rpc.php',array($objPing,'weblogPing')) );
Modifiez ce bout de code en :
$ping_sites = array( 'Weblogues.com' => array('www.weblogues.com','/RPC/',array($objPing,'weblogPing')), 'Weblogs.com' => array('rpc.weblogs.com','/RPC2',array($objPing,'weblogPing')), 'Blo.gs' => array('ping.blo.gs','/',array($objPing,'weblogPing')), 'Technorati' => array('rpc.technorati.com','/rpc/ping',array($objPing,'weblogPing')), 'Syndic8' => array('www.syndic8.com','/xmlrpc.php',array($objPing,'weblogPing')), 'RootBlog' => array('ping.rootblog.com','/rpc.php',array($objPing,'weblogPing')), 'BlogRolling' => array('rpc.blogrolling.com','/pinger',array($objPing,'weblogPing')), 'Yahoo' => array('api.my.yahoo.com','/RPC2',array($objPing,'weblogPing')), 'Joueb' => array('joueb.com','/cgi-bin/rpc.pl',array($objPing,'weblogPing')), 'Moreover' => array('api.moreover.com','/RPC2',array($objPing,'weblogPing')) );
Ceci ajoutera BlogRolling, Yahoo, Joueb et Moreover comme destinataires de vos Pings.
Dernières News
Nuage de Tags
Archives
RSS des articles
Souscrire par email



Commentaires
Cool ca, et pas tres difficile a mettre en oeuvre...
Par contre, un truc cool, ce serait de faire en sorte que lorsque l'on met en ligne un billet ca ping automatiquement...
Ca serait nettement plus rapide...
bonjour
j'avais des pb de ping sur weblogues et root blog.
j'ai modifié mon plugin avec le code ci dessus mais j'ai toujours des messages d'erreur sur weblogues, rootblog et blog rolling ne fonctionne pas non plus.
y a t il d'autres modifs a apporter?
merci d'avance
Bonjour
C'est quand même dommage d'avoir oublié vizibox.com.
@+