1. WP 2.6.2 posts revisions & Twitter Updater

    October 5, 2008 by jerome

    * Tlktlk is using the Twitter Updater plugins. It’s quite a nice plugin, really usefull to do automated posting to a twitter account.
    But for a reason I didn’t quite grok, the twitter account was updated even when editing (save post) and/or (maybe) trough the autosave function of the new 2.6. On a few other blogs I decided to desactivate it since it was creating twits based on revision not accessible to general plugin and resulting in a 404.

    This afternoon I had a look in the WP Codex page for Actions’ Hook and I tried to replace the hook from the plugin (line 108: twitter_updater.php) and posted a new event on the blog; so far it seems it worked like a charm:


    add_action ( 'publish_post', 'vc_twit');
    //add_action ( 'save_post', 'vc_twit');


  2. Auto Social – a patch for delicious description

    March 22, 2008 by jerome

    Auto Social is a very neat plug-in for WordPress which lets your blog publish automatically its new or updated content on various services; at the moment it works only with del.icio.us, but the plugin structure is open enough to send in the future to any service with a descent API or url construct.

    We decided to start using Auto Social with R-Echos. It worked great – out of the box, straight to the WordPress plugin folder on the server but we wanted to have a brief description of the content in the field Notes. With the del.icio.us API it has been a snap to introduce this in the code; note that the field Notes (extended.api) is limited to 255 characters.

    Mainly, it’s this line which does the job:

    $params .= "&extended=".urlencode($cleaned_content);

    You can find more details about the del.icio.us api post:
    https://api.del.icio.us/v1/posts/add? Add a post to del.icio.us
    &extended (optional) – notes for the item.

    Here is the patch for the file delicious.php: delicious_patch.txt.

    To apply a patch, you can use:
    patch -p 0 < patch_name

    To create a patch, you can use the unix command: diff
    diff -Naur oldfile newfile &rt; patch_name


  3. returning wordpress tags as an array

    March 20, 2008 by jerome

    Maybe useful for someone else: this is a patch of wp-includes/category-template.php to return an array of the tags instead of printing it when using the “format=array” option in wp_tag_cloud().

    This seems to have been fixed in version 2.5, let’s see that soon! In the meantime…

    tag_array-patch