Textpattern plugin: glx_admin_ping
Posted 31. mars 2005, 13:07 [Edited 6. april 2005, 13:29]
- Version: 0.1
- Download: glx_admin_ping.txt
- Textpattern forum thread: View discussion
- Active on this site: Yes
This plugin will ping your favorite pinging service, you could easily add as many sites as you want.
How to install this plugin
Install the plugin as usual, then click the edit link on the plugin page. Look for the line below in the code. Just delete the example links and add your own, dont forget to separate them with a comma.
// Array with sites to ping$ping_arr = array("http://ping.example.com/", "http://ping2.example.com/");
Problems
The problem with this plugin is that it sends the ping before the site actually has been updated, well that sounds kinda stupid, but that was the only way I could have this to work. So if you are sending a ping to a site that reads your rss feed and then construct a link back to you, that link will point to your previously article.
Why?
Because we have to check if we should send a ping or not, and in Textpatterns GUI there are several things to look for, example if it is a draft, hidden or pending article then we should not ping. We also have to look for the previously set status of this before we could ping, and thats what causing the problems. Textpatterns admin plugins can only be called before or after the page event. If we are calling this plugin after then the status has been changed by Textpattern, but if we are calling it before then the status variable is correct but the post hasnt been posted yet… arrgh dont know if i could explain that very well, but if you did understand and have a solution please let me know.
Changelog
0.1 2005-03-31
- First release
http://technorati.com/developers/ping/
Hej! Har precis börjat använda Textpattern, och installerade glx_admin_ping med en gång. Stort tack! Jag undrar bara om du har någon lösning på problemet att länk pekas till tidigare inlägg? Noterade att problemet uppkommer på t ex svenska Var är du?
Hej,
Nej jag har tyvärr inte haft möjlighet att titta närmare på problemet, men jag upptäckte det just på “Var är du?” med när jag skrev pluginet.
Jag är öppen för förslag på en lösning, jag gillar dock inte iden med att skapa och göra sig beroende av en tabell som nämdes ovan.
Textpattern plugin: glx_admin_imageTextpattern plugin: glx_thiscomment