Hoppa över navigering, gå direkt till textinnehållet



Textpattern plugin: glx_admin_ping

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.

  1. // Array with sites to ping
  2. $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

stefan sa,
10. april 2005, 21:47
Varför inte spara status-variabeln i databasen temporärt mellan före-delen och efter-delen?
10. april 2005, 21:59
Eftersom detta är ett plugin finns det vissa begränsningar, men det finns iofs en temptabell som man ev. skulle kunna använda. Jag har dock funderat lite kring en alternativ lösning med.
stefan sa,
11. april 2005, 00:03
Fast det är ju inga problem att skapa nya tabeller bara mysql-användaren har de rättigheterna. Funktionerna har man ju tillgång till.
11. april 2005, 07:33
Men jag gillar inte iden med att göra sig beroende av egna tabeller, det hade fungerat om det hade funnits möjlighet när man avinstallerar ett plugin att då radera de tabeller som skapas, men den möjligheten finns tyvärr inte idag.
12. juli 2005, 21:37
Hi johan, i just wanted to say thanks for this awesome plugin. This is VERY useful and again, thank you very much.
13. juli 2005, 19:45
Thanks for your kind words flashknow.
1. augusti 2005, 01:07
How would you go about pinging technorati, since they describe here that you must send variables along with the ping. Think it’s the same thing with ping-o-matic:

http://technorati.com/developers/ping/
3. augusti 2005, 21:38
Oskar: I havent read the api around technorati, but i think i saw some posts about pining them on the forum some while ago, currently my plugin development status is a bit down, but maybe i have a look at it again when im back.
Johan sa,
23. mars 2006, 19:24

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?

24. mars 2006, 09:15

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