Quotiki plugin enhancement
December 30th, 2006 Posted in blogging, codeYesterday i did some more Wordpress-plugin browsing, and i came across this Quotiki-plugin. As you can see i liked it enough to put it on my site
However, recalling the issues a friend had recently with an external-content-fetching plugin, i checked the code to see what it would do if the fetching somehow fails.
The fetching-function used waits a whopping 75 seconds before giving up, in which time the loading of your blog cannot complete. This means the unavailability of the quotepage used will seriously affect your blog’s performance.
Obviously this sort of problem can be resolved much quicker if, for example, a timeout is introduced. This is exactly what i did using curl-functions instead of the previous fetching method. Also i built an extra check on the HTTP status code, which makes sure the plugin only tries to display valid quotes, and not for example 404 text. On webservers without curl available the plugin should function exactly as before.
Download my updated version of wp-quotiki
One Response to “Quotiki plugin enhancement”
By macTijn on Jan 1, 2007
I have re-modified your modification and blogged about it on http://blog.mactijn.eu/2007/01/wp-quotiki-modifications.html. Now it is possible to also use RSS-formatted quote sources, and I modified the output format a bit, so errors are addressable through CSS. Also, I made modifications to the internal data format, and you can optionally use a different source URL.