Category: WordPress

Plugin developer, Core contributor and support volunteer. Yeah, I’m a WordPress fan!

  • WordPress Plugins and File Fetching

    A number of my recent plugins have provided a facility to read files from other sites. However, errors were being reported by some users and so I attempted a change in one such plugin to address this.

    Unfortunately, that didn’t quite work as I intended. Kind of. In this case, I swapped to using a different file routine, but one which now only works with PHP 5. So I’ve now published a newer version of the same plugin using another new method, and one that should now be compatible with PHP 4.

    The problem here is that there are security implications with reading files externally, so there is a way for hosts to turn this ability off.

    My new plugin, I suspect, doesn’t actually resolve this and there isn’t a great amount I can do about this – if your host has decided to prevent you from reading external files then, well, you’re stuffed. My host doesn’t, which might explain why I didn’t recognise the problem at first.

    The file system I’ve used now, however, should allow you to specify local file names – at least that way files hosted by yourself should be readable. I’ve not tested it though, so feel free to provide feedback.

    I’m now going to upgrade my other plugins with the same code process.

  • Change logs for WordPress plugins

    The standard readme.txt for WordPress plugins has been updated to allow for changelogs. This is excellent news and has happened at just the right time – I’m currently updating my readme.txt files to reflect that my plugins are compatible with WordPress 2.8!

    Therefore, and slowly for now, I’m updating all my plugin readme.txt files. The appropriate pages for each plugin on this site, however, will change only if/when a new release of a plugin is released.

  • Further WordPress upgrade issues

    Since upgrading to 2.8 I’ve come across another issue. However, I’ve seen numerous people reporting the same problem after upgrades to previous WordPress versions, so I don’t think this is 2.8 specific.

    Anyway, I couldn’t automatically update any of my plugins. I was getting an error along the lines of…

    Could not copy file: /public_html/wp-content/upgrade/.....

    This was also the error that stopped me from automatically updating WordPress as well. Anyway, the fix was simple – I used my FTP application to change the permissions on the upgrade folder. This seemed to cure it.

  • Firefox crashes when inserting WordPress image

    Firefox crashes when inserting WordPress image

    Just had a problem with Firefox crashing out everytime I tried to insert an image into the post. It’s a bit weird as it was working only the other day.

    Anyway, a search found that the fault lies with Google Gears. Disabling it fixes the problem.

  • Social Bookmarking in WordPress

    At the time of writing this post you’ll probably notice (and it has been there a while) a “ShareThis” option at the bottom of each post and page. This allows readers to share the details on one of many Social Bookmarking sites using the popular ShareThis service (and, as always, other such services exist elsewhere!).

    Unfortunately, using a third party such as this does present problems. First of all it’s not the smallest (as in terms of code size and, therefore, the speed of your site) and it does rely heavily on JavaScript, which causes problems if you want to add a share facility in a news feed. They also spend a lot of the time trying to further push their service, adding on facilities you may now want and constantly trying to get the user to sign up. Not only that, but to be all things to all sites, it present a very long list of  bookmark possibilities. If anything, this is more than likely going to confuse the amateur user.

    And, back to the technical downsides, you’re often reliant on third party apps to provide the bookmarking system on your site, which limits what you can do. Well, it’s either that or learn their API.

    The BBC uses it’s own method and that’s to simply present a few of the most popular – it doesn’t use JavaScript, just simple images and links to the resultant bookmarking sites. And, because it doesn’t use JavaScript, you can stick the same details on the bottom of your news feeds. So, you lose access to some of the less popular bookmarking services – is that a great problem? They often come with their own bookmarklets and plugins anyway.

    So, over the coming weeks you will find the ShareThis plugin being replaced with seperate bookmarking options. Yes, I will be writing this as a plugin which I will then publish – it will integrate Simple Twitter Link and Simple Facebook Link as well. But I digest…

    Here, simply because I had to compile them anyway, are the URLs required for some of the more popular social bookmarking services…

    Delicious – http://del.icio.us/post?url=[url]&title=[title]
    Digg – http://digg.com/submit?url=[url]&title=[title]
    Diigo – http://www.diigo.com/post?url=[url]&title=[title]
    Facebook – http://www.facebook.com/sharer.php?u=[url]&t=[title]
    Fark – http://cgi.fark.com/cgi/fark/farkit.pl?u=[url]&h=[title]
    reddit – http://reddit.com/submit?url=[url]&title=[title]
    StumbleUpon – http://www.stumbleupon.com/submit?url=[url]&title=[title]

    In all cases, replace [url] with the URL and [title] with, erm, the title.