<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Codrops &#187; twitter</title>
	<atom:link href="http://tympanus.net/codrops/tag/twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://tympanus.net/codrops</link>
	<description>Useful resources and inspiration for creative minds</description>
	<lastBuildDate>Wed, 23 May 2012 09:46:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Interactive Google Map using the Twitter API</title>
		<link>http://tympanus.net/codrops/2011/04/13/interactive-google-map/</link>
		<comments>http://tympanus.net/codrops/2011/04/13/interactive-google-map/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 11:12:19 +0000</pubDate>
		<dc:creator>Marcin Dziewulski</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[geocoding service]]></category>
		<category><![CDATA[google map]]></category>
		<category><![CDATA[interactive]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=4628</guid>
		<description><![CDATA[View demo Download source Hey! In today&#8217;s tutorial we will create an interactive Google map using the geocoding service. Using the Twitter API we will retrieve the user&#8217;s location, and then display the profile picture on the map. We will also add the click action, after which we will retrieve the user&#8217;s 5 latest tweets. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://tympanus.net/Tutorials/InteractiveGoogleMapTwitter/" target="_blank"><img src="http://tympanus.net/codrops/wp-content/uploads/2011/04/InteractiveGoogleMapTwitter.jpg" alt="" title="InteractiveGoogleMapTwitter" width="580" height="315" class="aligncenter size-full wp-image-4637" /></a><br />
<a class="demo" href="http://tympanus.net/Tutorials/InteractiveGoogleMapTwitter/" target="_blank">View demo</a> <a class="download" href="http://tympanus.net/Tutorials/InteractiveGoogleMapTwitter/InteractiveGoogleMapTwitter.zip">Download source</a></p>
<p>Hey! In today&#8217;s tutorial we will create an interactive Google map using the geocoding service. Using the Twitter API we will retrieve the user&#8217;s location, and then display the profile picture on the map. We will also add the click action, after which we will retrieve the user&#8217;s 5 latest tweets.</p>
<p>So, let’s start!</p>
<div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div>
<h3>The Markup</h3>
<p>At the beginning let&#8217;s write some simple HTML code.</p>
<pre class="brush:xml">
&lt;div id="map"&gt;&lt;/div&gt;
&lt;div class="twitter"&gt;
	&lt;div class="inside"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="posts"&gt;&lt;/div&gt;
&lt;div class="get"&gt;
	&lt;input type="hidden" value="marcinmobily" /&gt;
	&lt;input type="hidden" value="codrops" /&gt;
	&lt;input type="hidden" value="onextrapixel" /&gt;
	&lt;input type="hidden" value="smashingmag" /&gt;
	&lt;input type="hidden" value="umutm" /&gt;
	&lt;input type="hidden" value="1stwebdesigner" /&gt;
	&lt;input type="hidden" value="chriscoyier" /&gt;
	&lt;input type="hidden" value="marcofolio" /&gt;
&lt;/div&gt;
</pre>
<p>Let&#8217;s examine the code line-by-line. The first &#8220;div&#8221; will display a Google map. Another &#8220;div&#8221; is the place where we store the description, name and profile picture of the Twitter users. Next, we create a &#8220;div&#8221; which will display the last 5 tweets. </p>
<p>At the end of the block, we store the Twitter user name, which will be used to download the location. If this is already done, we can proceed to write the JavaScript code.</p>
<h3>The JavaScript</h3>
<p>At the beginning we should define the global variables.</p>
<pre class="brush:js">
var map, geocoder, marker, ey, my, mouseDown = false;
</pre>
<p>Then we create the main object that will incorporate all functions used by us. The most important function in this object is the &#8216;init&#8217; function.</p>
<pre class="brush:js">
var map, geocoder, marker, ey, my, mouseDown = false;
var o = {
	init: function(){
		// in this place we will call all needed functions
	}
}
$(function(){ o.init(); }
</pre>
<p>Let&#8217;s create a new object called &#8220;map&#8221; in the main &#8220;o&#8221; object.  It is an object, where the function initiating a Google Map will be placed. The first function in this object is the &#8220;size&#8221; function, where we draw the current window size. This is what we need in order to display the map in full screen. Then we create the object entitled &#8220;data&#8221; with the parameters: &#8220;zoom&#8221;, &#8220;center&#8221; and &#8220;mapTypeId&#8221;. When the DOM is ready we call the init function.</p>
<pre class="brush:js">
var map, geocoder, marker, ey, my, mouseDown = false;
var o = {
	init: function(){
		this.map.init();
	},
	map: {
		size: function(){
			var w = $(window).width(),
				h = $(window).height();
			return { width: w, height: h }
		},
		data: {
			zoom: 3,
			center: new google.maps.LatLng(52, 23),
			mapTypeId: google.maps.MapTypeId.ROADMAP
		},
		init: function(){
			var size = o.map.size();
			$('#map').css({ width: size.width, height: size.height });
			map = new google.maps.Map(document.getElementById('map'), o.map.data),
			geocoder = new google.maps.Geocoder();
			google.maps.event.addListener(map, 'dragstart', function(){
				$('.posts').hide();
			});
		}
	}
}
$(function(){ o.init(); }
</pre>
<p>The next step is to create an object, where we will retrieve the Twitter user data such as name, description, location and the path to the profile picture.  First, we create a function where we will retrieve the value of the &#8216;input&#8217; fields and we will store it in the array. The next stage is another function where every element of previously created tables is looped. Thus, by using the Twitter API, we can extract the user&#8217;s location and using a geocoding service we can convert it to geographic coordinates. At the end, we show the user in the right place on the map and put the name, description and user picture to a blank &#8216;div&#8217; just called &#8216;twitter&#8217; ;)</p>
<pre class="brush:js">
var map, geocoder, marker, ey, my, mouseDown = false;
var o = {
	init: function(){
		this.map.init();
		this.twitter.show();
		this.twitter.click();
	},
	twitter: {
		get: function(){
			var arr = new Array;
			$('.get').find('input').each(function(i){
				var t = $(this),
					val = t.val();
				arr[i] = val;
			});
			return arr;
		},
		show: function(){
			var users = o.twitter.get(),
				arr = new Array;
			for (i in users){
				var user = users[i];
				$.getJSON('http://twitter.com/users/show/'+user+'.json?callback=?', function(data) {
					var img = data.profile_image_url,
						screen_name = data.screen_name;
					geocoder.geocode({ address: data.location }, function(response, status){
						if (status == google.maps.GeocoderStatus.OK) {
							var x = response[0].geometry.location.lat(),
								y = response[0].geometry.location.lng();
							marker = new google.maps.Marker({
								icon: img,
								map: map,
								title: screen_name,
								position: new google.maps.LatLng(x, y)
							});
							arr.push('&lt;div class="item"&gt;');
							arr.push('&lt;p class="img"&gt;&lt;a href="#" class="open" rel="'+screen_name+'"&gt;&lt;img src="'+img+'" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;');
							arr.push('&lt;div class="entry"&gt;');
							arr.push('&lt;a href="#" class="open title" rel="'+screen_name+'"&gt;'+data.name+'&lt;/a&gt;');
							arr.push('&lt;p class="description"&gt;'+data.description+'&lt;/p&gt;');
							arr.push('&lt;p class="url"&gt;&lt;a href="'+data.url+'" target="_blank"&gt;'+data.url+'&lt;/a&gt;&lt;/p&gt;');
							arr.push('&lt;p class="count"&gt;Followers: '+data.followers_count+', Following: '+data.friends_count+'&lt;/p&gt;');
							arr.push('&lt;/div&gt;');
							arr.push('&lt;/div&gt;');
							var html = arr.join('');
							arr = [];
							$('.twitter').find('.inside').append(html);
							google.maps.event.addListener(marker, 'click', function(){
								o.twitter.open(this.title);
							});
						}
					});
				});
			}
		},
		click: function(){
			$('.twitter').find('.open').live('click', function(){
				var t = $(this), rel = t.attr('rel');
				o.twitter.open(rel);
			});
		},
		open: function(user){
			var posts = $('.posts'), arr = new Array;
			$.getJSON('http://twitter.com/status/user_timeline/'+user+'.json?count=5&#038;callback=?', function(data) {
				$.each(data, function(i, post){
					arr.push('&lt;div class="post">');
					arr.push(post.text);
					arr.push('&lt;/div&gt;');
				});
				var html = arr.join('');
				posts.html(html).fadeIn();
			});
		}
	},
	map: {
		size: function(){
			var w = $(window).width(),
				h = $(window).height();
			return { width: w, height: h }
		},
		data: {
			zoom: 3,
			center: new google.maps.LatLng(52, 23),
			mapTypeId: google.maps.MapTypeId.ROADMAP
		},
		init: function(){
			var size = o.map.size();
			$('#map').css({ width: size.width, height: size.height });
			map = new google.maps.Map(document.getElementById('map'), o.map.data),
			geocoder = new google.maps.Geocoder();
			google.maps.event.addListener(map, 'dragstart', function(){
				$('.posts').hide();
			});
		}
	}
}
$(function(){ o.init(); }
</pre>
<p>Lastly, we will add a &#8216;scroll&#8217; object that has a function called &#8216;init&#8217; which is responsible for scrolling the &#8216;.twitter&#8217; div vertically.</p>
<pre class="brush:js">
var map, geocoder, marker, ey, my, mouseDown = false;
var o = {
	init: function(){
		this.map.init();
		this.twitter.show();
		this.twitter.click();
	},
	twitter: {
		get: function(){
			var arr = new Array;
			$('.get').find('input').each(function(i){
				var t = $(this),
					val = t.val();
				arr[i] = val;
			});
			return arr;
		},
		show: function(){
			var users = o.twitter.get(), // retrieve all users which are stored in html
				arr = new Array;
			for (i in users){
				var user = users[i];
				$.getJSON('http://twitter.com/users/show/'+user+'.json?callback=?', function(data) {
					var img = data.profile_image_url,
						screen_name = data.screen_name;
					geocoder.geocode({ address: data.location }, function(response, status){
						if (status == google.maps.GeocoderStatus.OK) {
							var x = response[0].geometry.location.lat(),
								y = response[0].geometry.location.lng();
							marker = new google.maps.Marker({
								icon: img,
								map: map,
								title: screen_name,
								position: new google.maps.LatLng(x, y)
							});
							arr.push('&lt;div class="item"&gt;');
							arr.push('&lt;p class="img"&gt;&lt;a href="#" class="open" rel="'+screen_name+'"&gt;&lt;img src="'+img+'" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;');
							arr.push('&lt;div class="entry"&gt;');
							arr.push('&lt;a href="#" class="open title" rel="'+screen_name+'"&gt;'+data.name+'&lt;/a&gt;');
							arr.push('&lt;p class="description"&gt;'+data.description+'&lt;/p&gt;');
							arr.push('&lt;p class="url"&gt;&lt;a href="'+data.url+'" target="_blank"&gt;'+data.url+'&lt;/a&gt;&lt;/p&gt;');
							arr.push('&lt;p class="count"&gt;Followers: '+data.followers_count+', Following: '+data.friends_count+'&lt;/p&gt;');
							arr.push('&lt;/div&gt;');
							arr.push('&lt;/div&gt;');
							var html = arr.join('');
							arr = [];
							$('.twitter').find('.inside').append(html);
							google.maps.event.addListener(marker, 'click', function(){
								o.twitter.open(this.title);
							});
						}
					});
				});
			}
		},
		click: function(){
			$('.twitter').find('.open').live('click', function(){
				var t = $(this), rel = t.attr('rel');
				o.twitter.open(rel);
			});
		},
		open: function(user){
			var posts = $('.posts'), arr = new Array;
			$.getJSON('http://twitter.com/status/user_timeline/'+user+'.json?count=5&#038;callback=?', function(data) {
				$.each(data, function(i, post){
					arr.push('&lt;div class="post">');
					arr.push(post.text);
					arr.push('&lt;/div&gt;');
				});
				var html = arr.join('');
				posts.html(html).fadeIn();
			});
		}
	},
	map: {
		size: function(){
			var w = $(window).width(),
				h = $(window).height();
			return { width: w, height: h }
		},
		data: {
			zoom: 3,
			center: new google.maps.LatLng(52, 23),
			mapTypeId: google.maps.MapTypeId.ROADMAP
		},
		init: function(){
			var size = o.map.size();
			$('#map').css({ width: size.width, height: size.height });
			map = new google.maps.Map(document.getElementById('map'), o.map.data),
			geocoder = new google.maps.Geocoder();
			google.maps.event.addListener(map, 'dragstart', function(){
				$('.posts').hide();
			});
		}
	},
	scroll: {
		mouse: function(e){
			var y = e.pageY;
			return y;
		},
		check: function(y){
			var all = $('.twitter').height(),
				inside = $('.twitter').find('.inside').height();
			if (y < (all - inside)) {
				y = all - inside;
			} else if (y > 0) {
				y = 0;
			}
			return y;
		},
		update: function(e){
			var y = o.scroll.mouse(e),
				movey = y-my,
				top = ey+movey;
				check = o.scroll.check(top);
			$('.twitter').find('.inside').css({ top: check+'px' });
		},
		init: function(){
			$('.twitter').find('.inside').bind({
				mousedown: function(e){
					e.preventDefault();
					mouseDown = true;
					var mouse = o.scroll.mouse(e);
						my = mouse;
					var element = $(this).position();
						ey = element.top;
					o.scroll.update(e);
				},
				mousemove: function(e){
					if (mouseDown)
						o.scroll.update(e);
					return false;
				},
				mouseup: function(){
					if (mouseDown)
						mouseDown = false;
					return false;
				},
				mouseleave: function(){
					if (mouseDown)
						mouseDown = false;
					return false;
				}
			});
		}
	}
}
$(function(){ o.init(); }
</pre>
<h3>The CSS</h3>
<p>First, we will embed our reset.css that will reset all the basic styles, and we’ll define some main properties:</p>
<pre class="brush:css">
@import url("reset.css");

html, body {
	margin:0;
	padding:0;
}

body {
	font-family:Arial, Helvetica, sans-serif;
	font-size:12px;
	color:#333;
	line-height:18px;
}

a {
	text-decoration:none;
	color:#fff;
}
</pre>
<p>Next, we will define the styles for the map, Twitter posts and descriptions.</p>
<pre class="brush:css">
.twitter {
	position:fixed;
	left:0;
	bottom:0;
	background:#000;
	background:rgba(0, 0, 0, .7);
	width:100%;
	height:180px;
	color:#fff;
	overflow:hidden;
}

.twitter .inside {
	position:absolute;
	top:0;
	left:0;
	cursor:n-resize;
}

.twitter .item {
	float:left;
	width:280px;
	padding:20px;
}

.twitter .item .img {
	float:left;
	width:48px;
}

.twitter .img img {
	-moz-box-shadow:0 0 5px #000;
	-webkit-box-shadow:0 0 5px #000;
	box-shadow:0 0 5px #000;
}

.twitter .item .entry {
	float:right;
	width:215px;
	height:140px;
	color:#eee;
	font-size:11px;
	position:relative;
}

.twitter .item .count {
	position:absolute;
	left:0;
	bottom:-10px;
	font-size:10px;
	text-transform:uppercase;
}

.twitter .item .title {
	font-size:13px;
	font-weight:bold;
	color:#fff;
}

.twitter .item .url a {
	text-decoration:underline;
}

.twitter .item p {
	margin-bottom:5px;
}

.posts {
	display:none;
	position:absolute;
	left:50%;
	margin-left:-310px;
	width:580px;
	bottom:180px;
	background:#fff;
	color:#fff;
	background:#000;
	background:rgba(0, 0, 0, .7);
	padding:20px;
}

.posts .post {
	float:left;
	clear:both;
	width:100%;
	margin-bottom:20px;
	font-size:12px;
	font-weight:bold;
}
</pre>
<h3>Conclusion</h3>
<p>In today&#8217;s tutorial you learned how to use a geocoding service and how to use the Twitter API. An important fact to remember is that Google has imposed some limits to its geocoding service. Maximum number of requests in one day from a single IP address is 2500. Also, Twitter will rate limit the IP address from which the request was made. </p>
<p>Stay tuned for the next tutorial!</p>
<p><a class="demo" href="http://tympanus.net/Tutorials/InteractiveGoogleMapTwitter/" target="_blank">View demo</a> <a class="download" href="http://tympanus.net/Tutorials/InteractiveGoogleMapTwitter/InteractiveGoogleMapTwitter.zip">Download source</a></p>
<div class="googlead"><!-- wp_ad_camp_1 --></div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2011/04/13/interactive-google-map/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>Latest Tweets Tooltip with jQuery</title>
		<link>http://tympanus.net/codrops/2010/07/20/latest-tweets-tooltip/</link>
		<comments>http://tympanus.net/codrops/2010/07/20/latest-tweets-tooltip/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 16:48:47 +0000</pubDate>
		<dc:creator>cody</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[draggable]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[tooltip]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=2636</guid>
		<description><![CDATA[If you have a news website, it might be interesting for you to allow your users to see the latests tweets about a topic. Here is a jQuery plugin for showing the latest tweets about a certain word or phrase. For this plugin we are using the jQuery Twitter Search Plugin. Words or phrases that [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://tympanus.net/Development/LatestTweetsTooltip/" target="_blank"><img class="size-full wp-image-2641 aligncenter" title="LatestTweetsTooltip" src="http://tympanus.net/codrops/wp-content/uploads/2010/07/LatestTweetsTooltip.jpg" alt="" width="580" height="315" /></a></p>
<p>If you have a news website, it might be interesting for you to allow your users to see the latests tweets about a topic. Here is a jQuery plugin for showing the latest tweets about a certain word or phrase. </p>
<p>For this plugin we are using the <a href="http://jquery.malsup.com/twitter/">jQuery Twitter Search Plugin</a>.</p>
<p>Words or phrases that you want to be searched for in Twitter, are wrapped with the following span:</p>
<pre class="brush:xml">&lt;span class="twitter_search"&gt;Some search term&lt;/span&gt;</pre>
<p>The popup box that appears can be dragged and resized. Clicking on the cross will make it disappear. The tweets are constantly being loaded in a predefined time span. This loading stops when the user hovers over the tooltip box.</p>
<p>If you want to configure and restyle the tooltip, you will need to have a look at the configurations of the Twitter Search Plugin. Many parameters can be set here, from style to timings.</p>
<p>You can call the plugin like this:</p>
<pre class="brush:js">$(function() {
	$('#article').find('.twitter_search').twitterpopup();
});</pre>
<p>where #article should be replaced by the ID of your container.</p>
<p><a class="demo" href="http://tympanus.net/Development/LatestTweetsTooltip/" target="_blank">View demo</a><a class="download" href="http://tympanus.net/Development/LatestTweetsTooltip/LatestTweetsTooltip.zip">Download source</a></p>
<div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2010/07/20/latest-tweets-tooltip/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Collective: 9 Best Twitter Jquery Plugins</title>
		<link>http://tympanus.net/codrops/2010/07/18/collective-9-best-twitter-jquery-plugins/</link>
		<comments>http://tympanus.net/codrops/2010/07/18/collective-9-best-twitter-jquery-plugins/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 09:15:52 +0000</pubDate>
		<dc:creator>Community</dc:creator>
				<category><![CDATA[Collective]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=2615</guid>
		<description><![CDATA[There are lots of JavaScript libraries out there and many of them are in use on social media sites like twitter. This Twitter plugins uses the popular jQuery library, article contains a sampling of jQuery twitter plugins I’ve found useful. Source http://skyje.com/2010/07/twitter-jquery-plugins/]]></description>
			<content:encoded><![CDATA[<p><!-- Digg Digg Disabled --></p>
<p><a href="http://skyje.com/2010/07/twitter-jquery-plugins/"><img src="http://tympanus.net/codrops/wp-content/uploads/2010/07/twitterPlugins.gif" alt="" title="twitterPlugins" width="580" height="236" class="aligncenter size-full wp-image-2616" /></a></p>
<p>There are lots of JavaScript libraries out there and many of them are in use on social media sites like twitter. This Twitter plugins uses the popular jQuery library, article contains a sampling of jQuery twitter plugins I’ve found useful.</p>
<h3>Source</h3>
<p><a href="http://skyje.com/2010/07/twitter-jquery-plugins/" target="_blank">http://skyje.com/2010/07/twitter-jquery-plugins/</a></p>
<div style="margin-bottom:100px;"></div>
<p><!-- wp_ad_camp_1 --></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2010/07/18/collective-9-best-twitter-jquery-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find Your First Twitter Follower</title>
		<link>http://tympanus.net/codrops/2010/01/09/find-your-first-twitter-follower/</link>
		<comments>http://tympanus.net/codrops/2010/01/09/find-your-first-twitter-follower/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 08:49:00 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twitter api]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=1184</guid>
		<description><![CDATA[This application aims to show you who your first follower was in twitter. It&#8217;s done with PHP and jQuery and of course it uses the twitter API. Two of the available API methods are used : statuses/show and followers/ids. Note that the rate limit is 150 requests per hour (you can increase this) so it [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-1189" title="firstFollow" src="http://tympanus.net/codrops/wp-content/uploads/2010/01/firstFollow.png" alt="firstFollow" width="500" height="357" /></p>
<p>This application aims to show you who your first follower was in twitter. It&#8217;s done with PHP and jQuery and of course it uses the twitter API. Two of the available API methods are used :<em> statuses/show</em> and <em>followers/ids. </em>Note that the rate limit is 150 requests per hour (you can increase this) so it might happen that it stops working in some point of time :( For this reason I don&#8217;t provide a demo page, but you can download the application, and install it locally or in your web site and give it a try. Anyway, the purpose of this post is just to show you how to do it!</p>
<p><a class="download" href="http://www.tympanus.net/FirstFollower/FirstFollower.zip">Download source</a></p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2010/01/09/find-your-first-twitter-follower/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>TweetTheme: Color Theme Inspiration from Twitter Themes</title>
		<link>http://tympanus.net/codrops/2009/12/02/tweettheme/</link>
		<comments>http://tympanus.net/codrops/2009/12/02/tweettheme/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 22:37:22 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[colors]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RGB]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twitter api]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=954</guid>
		<description><![CDATA[My next Twitter API experiment: Get the theme&#8217;s colors from any Twitter account! With this PHP and jQuery code you can call the Twitter API and request the RGB color and the background image from a given user. In the provided demonstration you just have to input the username and hit enter &#8211; the theme [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-955" title="TweetTheme" src="http://tympanus.net/codrops/wp-content/uploads/2009/12/TweetTheme.png" alt="TweetTheme" width="512" height="343" /></p>
<p>My next Twitter API experiment: Get the theme&#8217;s colors from any Twitter account!</p>
<p>With this PHP and jQuery code you can call the Twitter API and request the RGB color and the background image from a given user. In the provided demonstration you just have to input the username and hit enter &#8211; the theme will get loaded. Hover over the color rows to obtain the hexadecimal color values.</p>
<p>Not much said:</p>
<p><a class="demo" href="http://tympanus.net/TweetTheme/" target="_blank">View demo</a><a class="download" href="http://tympanus.net/TweetTheme/TweetTheme.zip">Download source</a></p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/12/02/tweettheme/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Twitter API and jQuery Showcase: Display your Followers or Friends</title>
		<link>http://tympanus.net/codrops/2009/12/02/twitter-api-and-jquery-showcase-display-your-followers-or-friends/</link>
		<comments>http://tympanus.net/codrops/2009/12/02/twitter-api-and-jquery-showcase-display-your-followers-or-friends/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 11:47:42 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twitter api]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=952</guid>
		<description><![CDATA[Today I was playing around with the Twitter API and created this little &#8220;widget&#8221; using jQuery and PHP. I know, there are already plenty of them, but I wanted to improve some details. Some of the features are: You can get your most recent 100 followers or friends Followers or friends are shown in sets [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-953" title="twitterconn" src="http://tympanus.net/codrops/wp-content/uploads/2009/12/twitterconn.png" alt="twitterconn" width="518" height="322" /></p>
<p>Today I was playing around with the Twitter API and created this little &#8220;widget&#8221; using jQuery and PHP. I know, there are already plenty of them, but I wanted to improve some details.</p>
<p>Some of the features are:</p>
<p><span id="more-952"></span></p>
<ul>
<li>You can get your most recent 100 followers or friends</li>
<li>Followers or friends are shown in sets of 25 per widget page</li>
<li>The images of the users are preloaded (unlike in Twitter)</li>
<li>You can navigate through the set</li>
<li>You can refresh the entire set</li>
<li>More information on the user can be seen using a tooltip when hovering over his picture</li>
</ul>
<p>You can configure and use this in your website to show your followers or friends with some interesting information about them (name, number of followers, number of friends).</p>
<p>A reason why 100 followers or friends are loaded in the beginning is the restriction the Twitter API is giving in the number of results per request. So, in order not to make several requests which would take quite some time, I just get 100. However, you can always click the link to the entire list in the end of the pagination.</p>
<p>The tooltip is created using <a href="http://craigsworks.com/projects/qtip/" target="_blank">qTip</a>.</p>
<p><a class="demo" href="http://tympanus.net/TwitterConnections/" target="_blank">View demo</a><a class="download" href="http://tympanus.net/TwitterConnections/TwitterConnections.zip">Download source</a></p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/12/02/twitter-api-and-jquery-showcase-display-your-followers-or-friends/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>jMaxInput: jQuery Twitter-Like Textarea</title>
		<link>http://tympanus.net/codrops/2009/11/08/jmaxinput-twitter-like-textarea/</link>
		<comments>http://tympanus.net/codrops/2009/11/08/jmaxinput-twitter-like-textarea/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 19:05:04 +0000</pubDate>
		<dc:creator>cody</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[maximum input]]></category>
		<category><![CDATA[textarea]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=790</guid>
		<description><![CDATA[jMaxInput allows you to limit the input size of a textarea like it is done in Twitter. The number of characters left to type are shown while typing. The user can write as many characters as he wants (negative value is shown) but the text can only be submitted if the size of the input [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-792 aligncenter" title="jMaxInput" src="http://tympanus.net/codrops/wp-content/uploads/2009/11/jMaxInput.gif" alt="jMaxInput" width="505" height="270" /></p>
<p>jMaxInput allows you to limit the input size of a textarea like it is done in Twitter. The number of characters left to type are shown while typing. The user can write as many characters as he wants (negative value is shown) but the text can only be submitted if the size of the input is below the limit (the button is active/inactive).</p>
<p>You can call it like this:</p>
<p><span id="more-790"></span></p>
<p><code>$("#div").maxinput();</code></p>
<p>You can as well define the following properties:</p>
<ol>
<li><strong>limit</strong>: The maximum number of characters allowed</li>
<li><strong>position</strong>: The position of the message</li>
<li><strong>showtext</strong>: Boolean for showing the text message or just the number of characters left</li>
<li><strong>message</strong>: A custom message shown after the number of characters left</li>
</ol>
<p><a class="demo" href="http://tympanus.net/jMaxInput/" target="_blank">View demo</a><a class="download" href="http://tympanus.net/jMaxInput/jMaxInput.zip">Download jMaxInput</a></p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
<div class="partner_section_post"><span>Message from Testking</span>Join <a href="http://www.pass4sure.com/CISSP.html">cissp training</a> to learn how to use jquery to improve your website. With our <a href="http://www.pass4sure.com/CompTIA-Security-plus.html">comptia security+</a> tutorials and <a href="http://www.pass4sure.com/CWNA.html">cwna</a>  guide , you will learn a lot about jQuery ans csss</div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/11/08/jmaxinput-twitter-like-textarea/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  tympanus.net/codrops/tag/twitter/feed/ ) in 0.24902 seconds, on May 24th, 2012 at 12:47 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 24th, 2012 at 1:47 am UTC -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- Quick Cache Is Fully Functional :-) ... A Quick Cache file was just served for (  tympanus.net/codrops/tag/twitter/feed/ ) in 0.25401 seconds, on May 24th, 2012 at 1:27 am UTC. -->
