Curating the twitter feed (and the rotating globe)
Primary tabs
Submitted by lambert on Wed, 12/19/2012 - 3:15pm
As you can see in the siderbar, the twitter feed is back and IMNSHO better than ever. But the feed is coming from a single hash tag: #OWS. I could just slam in my own collection, but readers, what do you think?
So far as I can tell from the twitter api, I can only get hash tags (and not @names).
I could also make several blocks with different collections, and then allow you all to turn them on or off in your account settings (see "My Account in the middle menu bar. That's where you turn on the globe showing all the current hits; I turned that off because it's JavaScript-heavy, and that's a performance hit for some. But maybe not you!)

- lambert's blog


- Log in or register to post comments
Comments
Re: Curating the twitter feed (and the rotating globe)
I don't see the twitter feed.
For the twitter block
My account (second menu) -> Edit -> Personalize Blocks [x] Live Tweets
If that is checked, and the bllock is not showing up please (a) clear your browser's cache (b) make sure JavaScript is turned on, and (c) let me know if it still doesn't turn up. Thanks!
Got it now
Thanks, and sorry for the need for spoonfeeding!
Re: Curating the twitter feed (and the rotating globe)
it used to be that you could follow a @name or a list of @names or a hashtag or a list of hashtags. i think there was one other option too. i had the different code blocks for each option saved on my previous computer, which crashed recently, and i only barely remember pieces of the code, so i can't recreate any of it.
then there's the the added issue of twitter's not wanting to play nicely with third-party apps, but i'll look around and see what i can find out...
Re: Curating the twitter feed (and the rotating globe)
this looks vaguely familiar:
http://www.simonhanmer.com/embedding_twitter_drupal_without_any_addition...
the first example - the black background with green text, using setProfile - is for following one twitter user. the example at the bottom of the page - using setList - is for following a list of twitter users. for that one, you first make a list on your twitter profile page of people you want to follow with your twitter widget, then put your twitter user name and your list name in the appropriate spaces in the setList line.
Re: Curating the twitter feed (and the rotating globe)
more:
http://figure-w.co.uk/tweet-into-drupal-3-ways-to-add-twitter-updates-to...
i didn't know you could do favorites too!
I want to use twitter's widget
The other ones myteriously stop working and/or are not maintained. And I couldn't get names and hash tags to work together when I tried.
Re: I want to use twitter's widget
i don't think hashtags and names work together, you get one or the other but not both.
admittedly, those examples, and the code i had, were for drupal 6. this is all i've found for drupal 7 so far: http://drupal.org/node/1301394
here's an article on having twitter create your widget for you: https://support.twitter.com/groups/31-twitter-basics/topics/111-features...
That's what I did
I had twtiter create the widget. So I want to add hash tags to the twitter widget.
Re: That's what I did
<a class="twitter-timeline" data-dnt=true href="?q=%23corgi" data-widget-id="281606587758559233">Tweets about "#corgi"</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
Re: That's what I did
ok THAT didn't work...
Re: That's what I did
<a class="twitter-timeline" data-dnt=true href="?q=#corgi" data-widget-id="281607675207368704">Tweets about "#corgi"</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
Re: That's what I did
<a class="twitter-timeline" data-dnt=true href="?q=#corgi" data-widget-id="281607675207368704">Tweets about "#corgi"</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
Re: That's what I did
Tweets by @hipparchia2
Re: That's what I did
Tweets about "#corgi"
this one worked
the hashtag is #corgi, so copy it and replace "corgi" with whatever hashtag(s) you want to follow.
nb: it only worked when i pasted it into a "full html" box here.
Re: this one worked
Re: this one worked
also, did i link to this already? it's got code samples for formatting height, width, etc:
https://dev.twitter.com/docs/embedded-timelines
Re: That's what I did
behmmm...
it doesn't seem to be updating, but may it won't here in comments and maybe it will in a sidebar?
Re: That's what I did
never mind. it IS updating, just with a lag......
I should have said I used twitter's widget...
... although I did want to, which is why I did. (I tried a litter of Drupal twitter modules, and none of them are very good).
So the widget is twitters, and working fine. It refreshes. But it has the single #ows tag. What I am looking for is suggestions for more tags, closer to what users want.