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


1 Comment »

  1. Auto Social is also the name of another plug-in which does just exactly the same thing, publishing to many more web-sites - the only difference being its price and the fact it is not open source. Browsing around a bit, I found that its author developed a sort of WordPress farm: the possibility to install automatically 50 blogs; this does sound like WP spam blog farm.

    Comment by jerome — March 25, 2008 @ 10:02 pm

RSS feed for comments on this post.

Leave a comment