Add new comment

Displaying Recent Tweets in Drupal

Tue, 03/13/2012 - 00:03 -- Sam

There are many ways on how to show your recent tweets in Drupal sites. I am going to show you two methods to achieve this.

Custom code
Using the following code in a custom block. Working for both Drupal 6 and 7.

<div class="twitter_div">
<ul id="twitter_update_list"><li><script type="text/javascript" src="http://twitter.com/statuses/user_timeline/azridesign.json?callback=twitt...

Using Drupal module
We can display the most recent tweets in Drupal sites for a Twitter @username with the twitter_pull module for both Drupal 6 and 7.
The following code will print a nicely themed list of the latest 3 tweets from @azridesign:

<?php
 
if (function_exists('twitter_pull_render')) { print twitter_pull_render('@azridesign', 'AzriDesign', 3); }
?>

Hope it will help!

Tweets

@csscutie on

Azul