Showing a Twitter Feed in a Drupal Block |
| January 10, 2010 |
Written by Steve Burge |
In this tutorial we'll show you how to place a Twitter feed inside a block. You can then display that Twitter feed anywhere around your theme. There are many different Twitter options out there but most have a couple of limitations: - They post tweets as nodes rather than in a block.
- If they post to a block, they require very complex setups normally involving creating Views.
Thanks to Expedition Post, we're going to suggest a much simpler way to show tweets in a block on your site. They've created a script that is very cleverly called "Twitter Block".Installing Twitterblock to Your Drupal Site- Step 1: Click here to download the latest version of "Twitter Block".
- Step 2: Extract the files into a folder on your desktop. The folder will be called "twitterblock".
- Step 3: Login to your site's files via FTP and navigate to /sites/default/. If there isn't a folder called /modules/ here, create one.
- Step 4: Upload the "twitterblock" folder to /sites/default/modules/
- Step 5: Go to Administer >> Site building >> Modules. Check the box next to "Twitter Block" and click Save Configuration.
Placing Your Twitter Feed in a BlockNow that Twitter Block is set up, we'll go and place it on our site: - Step 6: Go to Administer >> Site building >> Blocks. Scroll down to find Twitter Block.
- Step 7: Click "Configure" next to the block and enter your Twitter username and password:
 - Step 8: Click "Save Block", publish the block and check to see how it looks on your site:

|
Comments
thanks a lot..
http://www.fpsa.org > I think you can see the spot I’d like to add the feed to.
Would love to try it.
As for the password issue, EP's site states that the latest version of the module doesn't require the password, since it works off RSS
warning: opendir(sites/all/modules/twitterblock) [function.opendir]: failed to open dir: Permission denied in /var/www/openremolque.net/includes/file.inc on line 934.
Thanks in advance!
An issue: It's posible to add hashtags instead an account?
Thanks again!
warning: file_get_conten ts(): http:// wrapper is disabled in the server configuration by allow_url_fopen =0 in /var/www/modules/twitterblock/twitterblock.module on line 72.
Please advise
It's an independant (not on drupal.org) "Twitter Block for Drupal 7". Works with Twitter Pull. Simple and just works. Full CSS control.