I have been trying to do a custom job on this myself but I am lacking the url/code required to grab the node title and url etc in order to post through to twitter. I have looked through the Twitter API but haven't located it yet. If anyone has done something similar I would appreciate hearing from you if you have been successful. Also would consider this a feature request

CommentFileSizeAuthor
#1 twitter.png3.58 KBjamesmcd

Comments

jamesmcd’s picture

StatusFileSize
new3.58 KB

Just worked it out:

In service_links.module add the following:

if (variable_get('service_links_show_twitter', 0)) {
    $links['service_links_twitter'] = theme('service_links_build_link', t('Twitter'), "http://twitter.com/home?status=$url&title=$title", t('Post to Twitter.'), 'images/twitter.png', $nodelink);
  }

In service_links.install add the following:

variable_del('service_links_show_twitter');

In the 'images' folder add the file:

twitter.png (See attached)

-------------

Not sure if I have missed anything but it seems to be working fine for me so far!

TheCrow’s picture

Status: Active » Fixed

already into the dev version

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.