It’s easy to set up a Twitter Feed in a webpage to scroll your Tweets or the hashmarked Twitter feed from out in the world, using the free search widget. But what about when a # (hashmark) could unleash a cataract of unneeded or inappropriate content across your site?
To get a feed you just go to Twitter.com and set a search widget up. The code can then be copied and pasted in to a regular html web page. But what if you need to moderate it for an event or mass Tweets–that can get out of hand? So if you like to hack a bit, this is fun.
I tweaked two feeds for a site so that the webmaster’s tweets would scroll by, and a selected contributor or two, or three, could stream in, too, depending. And they can moderate the entire hashmark feed out there in the Twitterverse that are not included in the tweaked search criteria and “retweet with comment” those they think are appropriate and that should should appear in the feed too–and they will, since their Twitter username is in the [modified] search criteria. The scrolling action is great and they can keep the feed under control.
You’ll need an html editor or text editor to proceed. The code below is a screen shot image of a modified widget so you can’t copy/paste it. Enter it yourself and save or ask me here at supTweet (comments below, include email address) to send a copy of the text file (plain text.) It’s simple and works well and I suggest you use this code instead of the existing Twitter.com service available now. (this code is two years old now in January 2013) So check out the image and move on down for your breakdown on how to get this done and running on your site and a link to a live example. Note: the widget script is contained in a table cell as seen here.
First: the account names – I am using fictitious account names, of course. You use yours.
- TwitterAcct1 (owner)
- TwitterAcct2 (trusted associate)
- remoteTweet (compound, a custom contributor – can be modified as times and events might change)
- #myhashmark this is up to you – REMEMBER your contributor(s) will need to include the # for the widget to pick it up – any Tweet without it will just fly on by. Neat eh?
Then the search Criteria: see “search” at line #6 in the image above
search: ‘TweetAcct1 OR TweetAcct2 OR (#myhashmark remoteTweet)’,
- All search criteria MUST be enclosed within single quote marks as a group
- multiple criteria must be separated by an UPPER CASE OR (remember nand/nor)? I am not totally sure on this but it works so…
- Each critical COMPOUND criteria must be enclosed in parentheses of its own
- WITHIN the parentheses, you need the appropriate hashmark AND the Twitter username that will be your contributor this time–note space and no other punctuation within parentheses
- The client has successfully used up to 4 of these temp contributors for an event
One tip – the “interval” control can be useful to add interest to a page with more than one of these feeds – varied a bit, the feeds will scroll by at different rates, cool. The colors, title, subject are all up to you. This feed runs on a page with a black background and looks awesome. It’s at http://www.indiancanyon.org and makes freshening the page a breeze.
Copyright © forever and 2012, 2013 by Russell Imrie
- Social Media Conversation at Davos (hispanicbusiness.com)
- How to Display Tweets of an User or List on Your Website (mayura4ever.com)