However this may sound stupid, it would be quite handy to allow following of more accounts (yes, I know it can be done other way) but couldn't you provide that $twitkey is array of keys (and each key with array of hashtags) so when the module fetch tweets it iterates though array with foreach.. and returns tweets to be processed in a time sorted list?

Just an idea but could be that it is overkill for this module...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

al_loja’s picture

FileSize
11.81 KB

+1 for this feature request.

I hacked the code to do this (see attachment).
You can see the result here: http://www.vkw.be - it's on the right hand side of the home page).

usage example: twitter_pull_render('@inadarei,@Dries,#drupal8', 'Title', 10);
[as you can see, you pass a comma separated list of twitter accounts and tags]

It would be nice to integrate this in the main trunk.

wbobeirne’s picture

Great idea! I can definitely see the use in this. I've written a patch that makes twitter_pull_render deal in arrays of twitkeys, rather than strings. If a string twitkey is passed in, it converts it to an array so that there's a consistent format. For the most part, I don't see this breaking any functionality, except for the fact that $twitkey in the tpl is now an array rather than a string. Attached is the patch.

mstef’s picture

Status: Active » Needs work

$twitkey gets passed into base64_encode() on line 99. That function takes a string, but now it can be an array. You'll have to adjust.

I'd also recommend caching based on the entire twitkey, so if you request an array, we only need to make one trip to the cache.

dabl’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
FileSize
2.69 KB

I've made a patch that runs lazy_id in a foreach to use the twitkey array. This works for me!

dabl’s picture

Status: Needs work » Needs review
FileSize
2.65 KB

Added a new patch without the silly directorys. Sorry for that!

joachim’s picture

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

If you want a list of tweets from several accounts, create a list on twitter and then show that.

Danny Englander’s picture

@ joachim - What would the syntax be for pulling in a list? I don't see any documentation on that. Thanks, sounds like a good solution!

jags880’s picture

But you can't do that if you want multiple hashtags, searches, and accounts in the same feed. If you wanted just accounts that would work.

joachim’s picture

I think at that point, you want more than just a feed from Twitter. You're making your own aggregation. I think that's beyond the scope of this module.