If I have multiple twitter accounts attached to my drupal account or one account and global account access, I should be able to choose which accounts I will post to. After a search, I did not find an issue for this in 7x.

I have created a small patch that makes this possible. Will attach below. Thanks!!

Comments

tbenice’s picture

Status: Active » Needs review
StatusFileSize
new2.14 KB

Patch. Please let me know how it can be improved!!

Thanks!

13rac1’s picture

Version: 7.x-3.x-dev » 7.x-5.x-dev
Status: Needs review » Needs work

Patch doesn't apply. Please update to 5.x

 $ git apply post_to_multiple_accounts-1814508-2.patch 
post_to_multiple_accounts-1814508-2.patch:14: trailing whitespace.
    
post_to_multiple_accounts-1814508-2.patch:19: trailing whitespace.
    
error: patch failed: twitter_post/twitter_post.module:80
error: twitter_post/twitter_post.module: patch does not apply
$ patch -p1 < post_to_multiple_accounts-1814508-2.patch 
patching file twitter_post/twitter_post.module
Hunk #1 succeeded at 77 with fuzz 1 (offset -3 lines).
Hunk #2 FAILED at 99.
Hunk #3 succeeded at 149 (offset -8 lines).
1 out of 3 hunks FAILED -- saving rejects to file twitter_post/twitter_post.module.rej
13rac1’s picture

Note, #418784: Post to multiple twitter accounts was first, but this issue has a working patch.

juampynr’s picture

Status: Needs work » Closed (won't fix)

Sorry, this is too specific. You are welcome to create a new module that implements this. Most of the users set an account to use through a Rule, have just one account or choose from the select field only one account to post.

13rac1’s picture

This is a common request. About half of #356379: multiple twitter accounts causes confusion is related too.

tbenice’s picture

@juampy: A separate module is fine with me. That's how I've implemented it on our system.

juampynr’s picture

Status: Closed (won't fix) » Active

I am reconsidering this. We could turn the select field of the Post to Twitter.com fieldset into a list of checkboxes when the user has more than one authenticated accounts. The user could check which accounts he wants to use to post.

How about that?

tbenice’s picture

OK. That totally works for me.

torgospizza’s picture

That's how we've been doing it in my working copy (from a patch I wrote long ago) and it seems to be a good solution :)

juampynr’s picture

I am working on a new version that uses Entity and Field API. Posting to Twitter works as a field. See an screenshot at http://drupal.org/node/1895274#comment-7135964.

You can test this version by downloading the development snapshot (7.x-6.x-dev) at the project page. twitter_signin and twitter_actions submodules have not been updated yet, but patches are more than welcome in order to get this release ready as soon as possible.

tbenice’s picture

That sound's like a great idea. Thanks. I suppose you can set this as won't fix in favor of this new awesome direction?

-Ted

juampynr’s picture

Status: Active » Closed (duplicate)

Sure. Closing as this is a duplicate of http://drupal.org/node/1895274#comment-7135964