New Plugin: Comment Move

November 19th, 2008

movecommentAnother plugin born out of necessity, Comment Move will allow you to move a comment between posts/pages or even attachments.

And that’s about it.. it’s another no-fuzz plugin.. does what it needs to do and nothing more.

On another subject there is a new update for Twitter Status that fixed incompatibility with themes that don’t have jquery enabled by default.
Make sure you read the readme.txt as installation instructions have slightly changed.

Twitter Status 1.0.1 Fix

November 17th, 2008

tools-report-bugMy apologies to those who installed Twitter Status and didn’t get it working, unfrotunately I did all my testing in Wordpress 2.7 and didn’t notice it was incompatible with 2.6.

You can get the latest version from the plugin page or Wordpress.org..

Hope this version works properly for everyone.

New Wordpress Plugin: Post Filters

November 16th, 2008

Post Filters ScreenshotMy second plugin released in one day :ohhyeahh:, it’s a small one though.. called Post Filters.

I am still working on some more plugins, this one I created out of necessity, I wanted to have my plugin pages skip the frontpage and stick to their relative category.
So why not use a page? Well the links in my navigation bar are generated by the categories I post in.. and pages don’t have categories.. so there.

Anyway, what this plugin does:

Gives you the ability to have posts skip the frontpage and to stick a post to the top of all it’s relative categories.

Hopefully some more people can find a good use for this ;)

New Wordpress Plugin: Twitter Status

November 16th, 2008

ScreenshotTwitter Status is a very simple no-fuzz plugin that gets the current Twitter message from the Twitter ID specified, when someone visits your website there will be an ajax script running in the background doing a GET request every 30 seconds.
This request will trigger the Plugin to get all Author profiles with a twitter ID, and update their Twitter status, given that they haven’t been updated in at least 30 minutes and with a limit of 5 twitter profiles per request.

You can change these settings by editing the plugin file (before activating it).. the settings are easily accessible, no knowledge of PHP required.. I will incorporate a configuration page in future versions, for now I wanted to make an initial release that’s down to the complete basics.

I am also working on a couple more usefull plugins which should be coming along soon..

  • Post Filters
    Gives you the ability to have posts .. 

    • Skip the Frontpage
    • Act as a sticky on Category pages (and -only- on Category pages)
  • Raw Posts
    Will process posts EXACTLY the way you edit them in the wysiwyg editor, it bypasses the wordpress filters completely.
    This will quite definitely create conflict with plugins that rely on Wordpress’ filtering.
  • Raw Syntaxhighlighter
    Source code highlighter that works with the Raw Posts plugin

I’m also working on a PDO wrapper to make it’s functionality more accessible, though this is of course not related to Wordpress in any way.

Mounting SSH / FTP for Easy Access

November 15th, 2008

folder-remoteHaving discovered the “remote files” feature in Komodo Edit I went on a search for methods to access remote projects through Komodo (as oppose to just one or two files).

Using Ubuntu I came to the solution of using SSHFS, it took me a while to find a good tutorial on how to auto-mount using this protocol, but in the end I found a blog by Colin M from The Spark Between  on how to auto-mount sshfs on Ubuntu..

Since my wife uses Windows and I don’t feel comfortable giving her SSH access I searched a bit further and found that there is a build-in feature in Windows that will let you mount an FTP server as a network share.

Hope this info can help other people looking for similair solutions :)

Multiple spaces in Wordpress posts

November 12th, 2008

nbspIf you’ve ever tried posting source code on your blog you probably have noticed that Wordpress has the annoying habbit of stripping out multiple spaces out of your post, god knows why.

Anyway, I was not the only one getting annoyed by this and so a plugin already exists to fix this behaviour, only this plugin will make ugly nbsp’s appear in your post when editing it, to fix this, simply replace line 39 with the following

$text = str_replace(' ',' ',$text); // Allow NBSP's

That’s it, you should now be able to use multiple spaces in your posts.

Adding Smilies to your Wordpress Plugins

November 11th, 2008

wordpress-logoWhilst monitoring the #wordpress irc channel on irc.freenode.net I came across a question by “erchik” asking how to add smilies to his widgets.

After some researching I found this to be quite simple, of course there is unfortunately no global way of doing this for all your widgets at once, since every widget has it’s own backend, but it’s quite easy to achieve and is not limited to widgets, you can use it in plugins and templates all the same.

Simply add the following lines to your code right before you are outputting the string that you want to contain smilies


global $wp_smiliessearch, $wp_smiliesreplace;
$content = preg_replace($wp_smiliessearch, $wp_smiliesreplace, $content);

Replace $content with the name of your string containing the content.
Read the rest of this entry »

Installing Pidgin Plugin Pack on Intrepid

November 11th, 2008

logopidginHaving had some issues with the current version of the Pidgin Plugin Pack available from the Ubuntu repositories I decided to give the latest source a try.

I ran into the following error while trying to get do the make

switchspell.c:43:31: error: gtkspell/gtkspell.h: No such file or directory
switchspell.c: In function ‘menu_conv_use_dict_cb’:
switchspell.c:77: error: ‘GtkSpell’ undeclared (first use in this function)
switchspell.c:77: error: (Each undeclared identifier is reported only once
switchspell.c:77: error: for each function it appears in.)
switchspell.c:77: error: ‘spell’ undeclared (first use in this function)
switchspell.c:87: warning: implicit declaration of function ‘gtkspell_get_from_text_view’
switchspell.c:89: warning: implicit declaration of function ‘gtkspell_set_language’
make[2]: *** [switchspell.lo] Error 1
make[2]: Leaving directory `/home/nathan/Downloads/purple-plugin_pack-2.4.0/switchspell’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nathan/Downloads/purple-plugin_pack-2.4.0′
make: *** [all] Error 2

The solution is quite simple, make sure you have libgtkspell0 and libgtkspell-dev installed and then execute the following commands

sudo mkdir /usr/include/pidgin/gtkspell
sudo ln -s /usr/include/gtkspell-2.0/gtkspell/gtkspell.h /usr/include/pidgin/gtkspell/gtkspell.h

Now the make should finnish properly (assuming you have all the required deps installed).

New Blog, Fresh Ideas

November 10th, 2008

Badge - New BlogIf you’ve ever visited my blog before you’ll see that I’ve made quite a drastic change, the reason for this I just didn’t get around to blogging because I didn’t enjoy it, I wanted something simple, to blog about technology and web development in specific, as that is really the only thing that I feel like sharing with the world.. the rest is personal and for me this does not belong on a blog.

So, keep an eye on my blog, you’ll see loads of snippets, plugins and suggestions coming around, just check the Categories for a preview of what I’m planning to use it for.

If you need to get anything from my old Blog, feel free to access it here. Though note that it might not work properly on all pages.

Edit:

Just thought about my XHTML validation, I totally forgot to walk through it, will do that tomorrow.. so if you read this before then, don’t mind the “valid xhtml” button :)