Closed (fixed)
Project:
Twitter
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2009 at 12:09 UTC
Updated:
20 Apr 2011 at 15:17 UTC
Jump to comment: Most recent file
Comments
Comment #1
eaton commentedNow fixed, and a 2.3 release has been rolled. Thanks for your patience with this, the 2.1 release had some... funky in it. 2.2 was pushed out a bit too early, but now it all appears OK.
Comment #2
pilotbob commentedI see there is now a new token in the Twitter module setup !tinyurl. But, I need to use an action to get this to work when blogging using the xmlrpc API. However, the tokens shown for the action do not include tinyurl... I think because they are the standard action tokens.
Is there possibly a way to have the action use tiny URL???
Thanks
BOb
Comment #3
Antinoo commentedIt would also be useful a kind of %node_url_alias to get the alias path of the url, instead of the ugly "node/$nid" path, as Bob some time ago also noticed on his blog.
Setting this issue as feature request and changing the title to reflect the content.
Comment #4
acrollet commentedI wanted this too, so I went ahead and coded it up - works for me, just use %tinyurl. (documented in the help too) This patch is against 2.3, and includes the patch from this issue: http://drupal.org/node/375402
Comment #5
acrollet commentedre-rolled against 2.6 and tested working - would be nice to get this in...
Comment #6
spidermanJust giving this a bump, and I've re-rolled a complete patch against 2.6 based on #4 and #5 combined.
Comment #7
fnikola commentedI'm experiencing that the %title and %tinyurl variables are not available in the "Post a message to Twitter" action on the "after saving new content" event.
Comment #8
cwebster commentedTry this:
1. Add an action "Post a message to Twitter".
2. In the Message field, paste the following code.
print $node->title.' '.url('node/'. $node->nid, array('absolute' => TRUE));That will print the node title and the tinyurl.
- OR -
...you could use the following code, which not only posts the title and the tinyurl, but also trims the title first and maintains the full tinyurl, so that you will avoid broken links if your title runs long.
Hope that helps!
Comment #9
summit commentedIt is working great! Thanks.
greetings, Martijn
Comment #10
ajuliano commentedThe patch in #6 works great for 2.6 (I haven't tested the other)!
Except for one thing: I couldn't apply the patch using Mac OS X's $ patch-command (http://drupal.org/node/60818).
I did a manual copy/paste instead. And the tinyurl for actions now works like a charm. Thanks!
Comment #11
claudiu.cristeaHere's a patch against DRUPAL-6--3
Comment #12
dandaman commentedThe patch on #11 works great on Twitter 6.x-3.0-beta2, although I don't think the line numbers currently match up perfectly. It's exactly what you need when posting to Twitter and works with the Shorten module as well, of course.
Comment #13
walkah commentedcommitted. nice patch! thank you :-)
Comment #15
Rob T commented#8 worked well for me. I used it w/ Triggered rules.