<?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>Superdit.com &#187; twitter</title>
	<atom:link href="http://superdit.com/tag/twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://superdit.com</link>
	<description>blogging, design, tech, and web</description>
	<lastBuildDate>Thu, 19 Jan 2012 07:50:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>45 Twitter Infographics Collection</title>
		<link>http://superdit.com/2011/04/24/45-twitter-infographics-collection/</link>
		<comments>http://superdit.com/2011/04/24/45-twitter-infographics-collection/#comments</comments>
		<pubDate>Sun, 24 Apr 2011 10:11:58 +0000</pubDate>
		<dc:creator>aditia rahman</dc:creator>
				<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[infographic]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://superdit.com/?p=6225</guid>
		<description><![CDATA[Twitter has becoming social media giant these day, the business industry quickly adopt twitter marketing as one of their strategy to promote their product or services, all these infographics show how twitter used, and maybe can be added to some of your reference about what to do on twitter, to get the most benefit from.<a href="http://superdit.com/2011/04/24/45-twitter-infographics-collection/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>Twitter has becoming social media giant these day, the business industry quickly adopt twitter marketing as one of their strategy to promote their product or services, all these infographics show how twitter used, and maybe can be added to some of your reference about what to do on twitter, to get the most benefit from.</p>
<h5>Twitter On Paper</h5>
<p><a title="Twitter On Paper" href="http://gobieta.com/portfolio/" target="_blank"><img title="Twitter On Paper" src="http://i.min.us/inmvTY.jpg" alt="Twitter On Paper" width="540" height="280" /><span id="more-6225"></span></a></p>
<h5>Airlines Montly Twitter Report</h5>
<p><a title="How Airlines Use Twitter" href="http://www.tnooz.com/2011/04/11/news/how-airlines-use-twitter-infographic/" target="_blank"><img class="alignnone" title="How Airlines Use Twitter" src="http://i.min.us/ikVHhC.jpg" alt="How Airlines Use Twitter" width="540" height="280" /></a></p>
<h5>The Path to 10 Billion Tweets</h5>
<p><a title="Path To 10 Billion Tweets" href="http://mashable.com/2010/03/18/twitter-infographic/" target="_blank"><img class="alignnone" title="Path To 10 Billion Tweets" src="http://i.min.us/ikVCRw.jpg" alt="Path To 10 Billion Tweets" width="540" height="280" /></a></p>
<h5>What do Twitter users Love (And Hate) the Most?</h5>
<p><a title="Love &amp; Hate On Twitter" href="http://www.mediabistro.com/alltwitter/what-do-twitter-users-love-and-hate-the-most-infographic_b4509" target="_blank"><img class="alignnone" title="Love &amp; Hate On Twitter" src="http://i.min.us/ikZXDY.png" alt="Love &amp; Hate On Twitter" width="540" height="280" /></a></p>
<h5>Which States Twitter the Most</h5>
<p><a title="Twitter's Territory" href="http://www.socialnomics.net/2011/03/09/massachusetts-tops-twitter-usage/" target="_blank"><img class="alignnone" title="Twitter's Territory" src="http://i.min.us/ikZZMg.png" alt="Twitter's Territory" width="540" height="526" /></a></p>
<h5>Twitter vs Facebook</h5>
<p><a title="Twitter vs Facebook" href="http://www.digitalsurgeons.com/facebook-vs-twitter-infographic/" target="_blank"><img class="alignnone" title="Twitter vs Facebook" src="http://i.min.us/ikVAZA.jpg" alt="Twitter vs Facebook" width="540" height="280" /></a></p>
<h5>Twitter’s Meteoric Rise</h5>
<p><a title="The Meteoric Rise Of Twitter" href="http://www.blogherald.com/2010/06/28/twitters-meteoric-rise-compared-to-facebook-infographic/twitter-statistics-infographic-911/" target="_blank"><img class="alignnone" title="The Meteoric Rise Of Twitter" src="http://i.min.us/inniUU.jpg" alt="The Meteoric Rise Of Twitter" width="540" height="280" /></a></p>
<h5>If You Printed Twitter …</h5>
<p><a title="If You Printed Twitter" href="http://www.cartridgesave.co.uk/news/if-you-printed-twitter/" target="_blank"><img class="alignnone" title="If You Printed Twitter" src="http://i.min.us/inr59s.jpg" alt="If You Printed Twitter" width="540" height="280" /></a></p>
<h5>The History of Twitter’s Valuation</h5>
<p><a title="The History Of Twitter's Valuation" href="http://www.twitip.com/the-history-of-twitters-valuation-infographic/" target="_blank"><img class="alignnone" title="The History Of Twitter's Valuation" src="http://i.min.us/inmycg.jpg" alt="The History Of Twitter's Valuation" width="540" height="280" /></a></p>
<h5>Twitter Facts &amp; Figures</h5>
<p><a title="Twitter Fact &amp; Figures" href="http://www.website-monitoring.com/blog/2010/05/04/twitter-facts-and-figures-history-statistics/" target="_blank"><img class="alignnone" title="Twitter Fact &amp; Figures" src="http://i.min.us/inr7H0.jpg" alt="Twitter Fact &amp; Figures" width="540" height="280" /></a></p>
<h5>The Twitter Biotch</h5>
<p><a title="Profile Of Twitter User" href="http://dailyinfographic.com/the-twitter-biotch-infographic" target="_blank"><img class="alignnone" title="Profile Of Twitter User" src="http://i.min.us/ilaecy.jpeg" alt="Profile Of Twitter User" width="540" height="405" /></a></p>
<h5>A Year of Twitter</h5>
<p><a title="A Year Of Twitter" href="http://www.flowtown.com/blog/a-year-of-twitter?display=wide" target="_blank"><img class="alignnone" title="A Year Of Twitter" src="http://i.min.us/ilabUq.png" alt="A Year Of Twitter" width="540" height="280" /></a></p>
<h5>The Four Stages Of Getting Twitter</h5>
<p><a title="The Four Stages of &quot;Getting&quot; Twitter" href="http://www.flickr.com/photos/roba/4720190923/" target="_blank"><img class="alignnone" title="The Four Stages of &quot;Getting&quot; Twitter" src="http://i.min.us/ilaGyI.jpg" alt="The Four Stages of &quot;Getting&quot; Twitter" width="540" height="280" /></a></p>
<h5>Why You Can&#8217;t Ignore Twitter</h5>
<p><a title="Why You Can't Ignore Twitter" href="http://www.flickr.com/photos/31643066@N03/5341408911/" target="_blank"><img class="alignnone" title="Why You Can't Ignore Twitter" src="http://i.min.us/ilam8W.jpg" alt="Why You Can't Ignore Twitter" width="540" height="540" /></a></p>
<h5>Top 10 Most Retweeted Twitter Users</h5>
<p><a title="Who Are The Most Retweeted User?" href="http://www.flickr.com/photos/31643066@N03/5210547307/" target="_blank"><img class="alignnone" title="Who Are The Most Retweeted User?" src="http://i.min.us/ikVLEq.jpg" alt="Who Are The Most Retweeted User?" width="540" height="280" /></a></p>
<h5>Facebook vs Twitter</h5>
<p><a title="Facebook vs Twitter" href="http://www.flickr.com/photos/metrobest/3485574749/" target="_blank"><img class="alignnone" title="Facebook vs Twitter" src="http://i.min.us/ilaKFa.jpg" alt="Facebook vs Twitter" width="540" height="439" /></a></p>
<h5>The journey of a tweet</h5>
<p><a title="The Journey Of Tweet" href="http://www.ngonlinenews.com/news/the-journey-of-a-tweet/" target="_blank"><img class="alignnone" title="The Journey Of Tweet" src="http://i.min.us/inmyci.png" alt="The Journey Of Tweet" width="540" height="509" /></a></p>
<h5>Top Twitter Apps</h5>
<p><a title="Top 10 Twitter Apps" href="http://www.flickr.com/photos/rosauraochoa/4994540388/" target="_blank"><img class="alignnone" title="Top 10 Twitter Apps" src="http://i.min.us/inmvUa.jpg" alt="Top 10 Twitter Apps" width="540" height="280" /></a></p>
<h5>5 Scientifically Proven Ways to Get More Followers</h5>
<p><a title="5 Scientifically Proven Ways To Get More Followers" href="http://danzarrella.com/infographic-5-scientifically-proven-ways-to-get-more-followers.html" target="_blank"><img class="alignnone" title="5 Scientifically Proven Ways To Get More Followers" src="http://i.min.us/inmWdW.jpg" alt="5 Scientifically Proven Ways To Get More Followers" width="540" height="280" /></a></p>
<h5>Is Twitter losing its tweet-factor?</h5>
<p><a title="Twitter Trend's" href="http://www.ngonlinenews.com/news/twitter-in-decline/" target="_blank"><img class="alignnone" title="Twitter Trend's" src="http://i.min.us/ilaI6S.png" alt="Twitter Trend's" width="540" height="280" /></a></p>
<h5>The Story (so far) of Twitter</h5>
<p><a title="The Story So Far Of Twitter" href="http://600series.net/infoshot/?p=149" target="_blank"><img class="alignnone" title="The Story So Far Of Twitter" src="http://i.min.us/inqX3s.jpg" alt="The Story So Far Of Twitter" width="540" height="280" /></a></p>
<h5>Twitter’s Most Influential Users</h5>
<p><a title="Twitter's Most Influental Users" href="http://mashable.com/2010/05/24/twitters-influential-users/" target="_blank"><img class="alignnone" title="Twitter's Most Influental Users" src="http://i.min.us/inmAOU.jpg" alt="Twitter's Most Influental Users" width="540" height="364" /></a></p>
<h5>What Color Is Twitter?</h5>
<p><a title="The Color of Twitter" href="http://mashable.com/2010/04/27/twitter-color-infographic/" target="_blank"><img class="alignnone" title="The Color of Twitter" src="http://i.min.us/inqZB0.png" alt="The Color of Twitter" width="540" height="221" /></a></p>
<h5>Twitter PR Strategy</h5>
<p><a title="Twitter PR Strategy" href="http://www.flickr.com/photos/27132029@N06/3022781883/" target="_blank"><img class="alignnone" title="Twitter PR Strategy" src="http://i.min.us/inmYqu.jpg" alt="Twitter PR Strategy" width="540" height="432" /></a></p>
<h5>The Twitterverse</h5>
<p><a title="The Twitterverse" href="http://oneforty.com/pages/twitterverse" target="_blank"><img class="alignnone" title="The Twitterverse" src="http://i.min.us/innay2.jpg" alt="The Twitterverse" width="540" height="275" /></a></p>
<h5>What Are People Saying on Twitter About Facebook</h5>
<div><a title="What Are People Saying On Twitter About Facebook" href="http://www.flowtown.com/blog/what-are-people-saying-on-twitter-about-facebook?display=wide" target="_blank"><img class="alignnone" title="What Are People Saying On Twitter About Facebook" src="http://i.min.us/inm2s0.jpg" alt="What Are People Saying On Twitter About Facebook" width="540" height="280" /></a></div>
<h5>Why Do We Follow Company On Twitter</h5>
<p><a title="Why Do We Follow Company On Twitter" href="http://gobieta.com/images/Following_Companies_Twitter.jpg" target="_blank"><img class="alignnone" title="Why Do We Follow Company On Twitter" src="http://i.min.us/inr1ti.jpg" alt="Why Do We Follow Company On Twitter" width="540" height="280" /></a></p>
<h5>Who’s Using Twitter And How They’re Using It</h5>
<p><a title="Who's Using Twitter &amp; How They Using It" href="http://www.flowtown.com/blog/whos-using-twitter-and-how-theyre-using-it?display=wide" target="_blank"><img class="alignnone" title="Who's Using Twitter &amp; How They Using It" src="http://i.min.us/inqXzc.png" alt="Who's Using Twitter &amp; How They Using It" width="540" height="280" /></a></p>
<h5>SMS Vs Email Vs Twitter</h5>
<p><a title="Text Messaging vs Twitter" href="http://www.onlinemarketing-trends.com/2011/01/sms-vs-email-vs-twitter-infographics.html" target="_blank"><img class="alignnone" title="Text Messaging vs Twitter" src="http://i.min.us/inr31q.png" alt="Text Messaging vs Twitter" width="540" height="280" /></a></p>
<h5>15 Most Popular Twitter Clients</h5>
<p><a title="15 Most Popular Twitter Client" href="http://www.digisecrets.com/news/15-most-popular-twitter-clients/" target="_blank"><img class="alignnone" title="15 Most Popular Twitter Client" src="http://i.min.us/inm0ks.png" alt="15 Most Popular Twitter Client" width="540" height="280" /></a></p>
<h5>Timeline: Le Twitter Hack</h5>
<p><a title="Timeline: Lee Twitter Hack" href="http://lalawag.com/2009/07/19/timeline-le-twitter-hack/" target="_blank"><img class="alignnone" title="Timeline: Le Twitter Hack" src="http://i.min.us/ikWvOk.jpg" alt="Timeline: Le Twitter Hack" width="540" height="280" /></a></p>
<h5>He Tweeted, She Tweeted: Men vs. Women On Twitter</h5>
<div><a title="He Tweeted, She Tweeted" href="http://blog.hubspot.com/blog/tabid/6307/bid/6365/He-Tweeted-She-Tweeted-Men-vs-Women-On-Twitter-Infographic.aspx" target="_blank"><img class="alignnone" title="He Tweeted, She Tweeted" src="http://i.min.us/ilaCek.jpg" alt="He Tweeted, She Tweeted" width="540" height="280" /></a></div>
<h5>Inside the Political Twittersphere</h5>
<p><a title="Inside The Political Twittersphere" href="http://datavisualization.ch/showcases/inside-the-political-twittersphere" target="_blank"><img class="alignnone" title="Inside The Political Twittersphere" src="http://i.min.us/ilaI28.jpg" alt="Inside The Political Twittersphere" width="540" height="536" /></a></p>
<h5>Twitter Malware Through Time</h5>
<p><a title="Twitter Malware Through Time" href="http://www.securelist.com/en/blog/6145/Twitter_Malware_through_time" target="_blank"><img class="alignnone" title="Twitter Malware Through Time" src="http://i.min.us/ilaKAG.jpg" alt="Twitter Malware Through Time" width="540" height="280" /></a></p>
<h5>How Airlines Use Twitter</h5>
<p><a title="How Airlines Use Twitter" href="http://www.enterakt.com/social-media/airlines-twitter-infographic/" target="_blank"><img class="alignnone" title="How Airlines Use Twitter" src="http://i.min.us/ikWtGc.jpg" alt="How Airlines Use Twitter" width="540" height="280" /></a></p>
<h5>If Twitter Community 100 People</h5>
<p><a title="If Twitter Community 100 People" href="http://www.hgharrygo.com/infographics.php" target="_blank"><img class="alignnone" title="If Twitter Community 100 People" src="http://i.min.us/inr55c.jpg" alt="If Twitter Community 100 People" width="540" height="349" /></a></p>
<h5>Twitter By The Numbers</h5>
<p><a title="Twitter By The Numbers" href="http://www.viralblog.com/social-media/all-the-best-to-twitter-and-small-business/" target="_blank"><img class="alignnone" title="Twitter By The Numbers" src="http://i.min.us/inqMKw.jpg" alt="Twitter By The Numbers" width="540" height="280" /></a></p>
<h5>A Day In Life Of Twitter Spambot</h5>
<p><a title="A Day In Life Of Twitter Spambot" href="http://www.split-screen.net/features/a-day-in-the-life-of-a-twitter-spambot" target="_blank"><img class="alignnone" title="A Day In Life Of Twitter Spambot" src="http://i.min.us/inm4wo.png" alt="A Day In Life Of Twitter Spambot" width="540" height="280" /></a></p>
<h5>Twitter Overview</h5>
<p><a title="Twitter Overview" href="http://blog.alivenow.in/2010/11/infographic-twitter-overview.html" target="_blank"><img class="alignnone" title="Infographic Twitter Overview" src="http://i.min.us/inm64w.png" alt="Infographic Twitter Overview" width="540" height="280" /></a></p>
<h5>Top Super Bowl Ads on Twitter</h5>
<p><a title="Top Super Bowl Ads on Twitter" href="http://mediain5.com/2011/02/05/top-super-bowl-ads-on-twitter/" target="_blank"><img class="alignnone" title="Top Brand Superbowl On Twitter" src="http://i.min.us/inqKCo.jpg" alt="Top Brand Superbowl On Twitter" width="540" height="280" /></a></p>
<h5>The Oscars, On Twitter</h5>
<p><a title="Twiiter Goes Hollywod" href="http://techcrunch.com/2011/02/28/the-oscars-twitter/" target="_blank"><img class="alignnone" title="Twitter Goes Holywood" src="http://i.min.us/ilam4E.png" alt="Twitter Goes Holywood" width="540" height="280" /></a></p>
<h5>Curate your Knowledge with Twitter</h5>
<p><a title="Cureate Your Knowledge With Twitter" href="http://blog.mytweetmag.com/index.php/blog/infografic-curate-your-knowledge-with-twitter/" target="_blank"><img class="alignnone" title="Curate Your Knowledge With Twitter" src="http://i.min.us/ikWlj8.png" alt="Curate Your Knowledge With Twitter" width="540" height="280" /></a></p>
<h5>Twitter Infographic</h5>
<p><a title="Twitter Infographics" href="http://www.behance.net/gallery/Twitter-Infographic/758372" target="_blank"><img class="alignnone" title="Twitter Infographics" src="http://i.min.us/ikWnrG.png" alt="Twitter Infographics" width="540" height="540" /></a></p>
<h5>Barclays Premier League Tweet Map</h5>
<p><a title="Barclays Premier League Tweet Map" href="http://digitalcamsreviews.com/2011/02/09/infographic-football-banter-twitter-style/" target="_blank"><img class="alignnone" title="Barclays Premier League Tweet Map" src="http://i.min.us/ilakw6.jpg" alt="Barclays Premier League Tweet Map" width="540" height="280" /></a></p>
<h5>Design Blogs by Twitter Followers</h5>
<p><a title="The Most Popular Design Blogs by Twitter Followers and Facebook Fans" href="http://www.testking.com/techking/infographics/the-most-popular-design-blogs-by-twitter-followers-and-facebook-fans/" target="_blank"><img class="alignnone" title="The Most Popular Design Blogs by Twitter Followers and Facebook Fans" src="http://i.min.us/ikWrCa.jpg" alt="The Most Popular Design Blogs by Twitter Followers and Facebook Fans" width="540" height="280" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://superdit.com/2011/04/24/45-twitter-infographics-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Displaying Twitter Search Result With Sencha Touch</title>
		<link>http://superdit.com/2011/04/15/displaying-twitter-search-result-with-sencha-touch/</link>
		<comments>http://superdit.com/2011/04/15/displaying-twitter-search-result-with-sencha-touch/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 08:23:16 +0000</pubDate>
		<dc:creator>aditia rahman</dc:creator>
				<category><![CDATA[Sencha Touch]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://superdit.com/?p=6156</guid>
		<description><![CDATA[Today I want to take another step in Learning Sencha Touch, if you already browse on all sencha touch official examples there are already have the same twitter search example and that is a better one, but when I try it look like the interface only optimized for tablet. This example only created for smartphone<a href="http://superdit.com/2011/04/15/displaying-twitter-search-result-with-sencha-touch/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>Today I want to take another step in Learning Sencha Touch, if you already browse on all sencha touch official examples there are already have the same twitter search example and that is a better one, but when I try it look like the interface only optimized for tablet.</p>
<p><a title="Displaying Twitter Search Result With Sencha Touch" href="http://superdit.com/2011/04/15/displaying-twitter-search-result-with-sencha-touch/"><img class="aligncenter size-full wp-image-6158" title="Sencha Touch Twitter Search" src="http://superdit.com/wp-content/uploads/2011/04/thumbnail.png" alt="Sencha Touch Twitter Search" width="540" height="170" /></a></p>
<p>This example only created for smartphone resolution, and very simple single twitter search without pagination or load more function, and to fetch data twitter server here is using PHP.<span id="more-6156"></span></p>
<p style="text-align: center;"><a title="Sencha Touch Twitter Search Demo" href="http://demo.superdit.com/sencha-touch/twitter_search/" target="_blank">View Demo</a> | <a title="Sencha Touch Twitter Search Download" href="http://www.box.net/shared/fep0g6lhdr" target="_blank">Download Source</a></p>
<p style="text-align: center;"><em>(use mobile webkit browser to see demo)</em></p>
<h5>Sencha Touch Code</h5>
<p>The Sencha Touch code consist of four panel component one for main component, one for top toolbar, this panel not doing nothing but just showing application title, one for search textfield and button, and the last one for displaying search result</p>
<pre class="brush: jscript; title: ; notranslate">
Ext.setup({
    onReady: function() {
        var topToolbar = new Ext.Toolbar({
            dock : 'top',
            ui: 'dark',
            title: 'Sencha Twitter Search'
        });

         var tpl = new Ext.XTemplate(
            '&lt;div id=&quot;tweet_container&quot;&gt;',
                '&lt;tpl for=&quot;.&quot;&gt;',
                    '&lt;div class=&quot;tweet_data&quot;&gt;',
                    '&lt;div class=&quot;tweet_avatar&quot;&gt;',
                        '&lt;img width=&quot;30&quot; height=&quot;30&quot; src=&quot;{profile_image_url}&quot;/&gt;',
                    '&lt;/div&gt;',
                    '&lt;div class=&quot;tweet_content&quot;&gt;',
                        '&lt;a class=&quot;user&quot; href=&quot;http://twitter.com/{from_user}&quot;&gt;{from_user}&lt;/a&gt;&amp;nbsp;',
                        '{text}',
                    '&lt;/div&gt;',
                    '&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;',
                    '&lt;/div&gt;',
                '&lt;/tpl&gt;',
            '&lt;/div&gt;'
         );

        var resultPanel = new Ext.Panel({
            layout: 'fit',
            style: 'padding-bottom: 10px;',
            tpl: tpl
        });

        var searchPanel = new Ext.Panel({
            padding: 10,
            layout: {
                type: 'hbox',
                align: 'stretch'
            },
            items: [{
                flex: 4,
                xtype: 'textfield',
                style: 'margin-right: 10px;',
                id: 'textquery'
            },{
                flex: 2,
                xtype: 'button',
                text: 'Search',
                handler: function() {
                    var query = Ext.getCmp(&quot;textquery&quot;).getValue();
                    Ext.Ajax.request({
                        url: 'index.php?act=search&amp;q='+query,
                        success: function(e) {
                            var obj = Ext.util.JSON.decode(e.responseText);
                            var msg = obj.results;
                            var html = tpl.apply(msg);
                            resultPanel.update(html);
                        }
                    });
                }
            }]
        });

        var myPanel = new Ext.Panel({
            dockedItems: [topToolbar],
            items: [searchPanel, resultPanel],
            scroll: 'vertical',
            style: 'background: #DDEEF6;',
            fullscreen : true
        });
    }
});
</pre>
<p>The result panel using XTemplate to displaying search result, and remember to set the config layout value to &#8216;fit&#8217; , so it can be scrollable.</p>
<h5>PHP Code</h5>
<p>The PHP code fetch the search result as a JSON format, this is only using twitter search api, so we don&#8217;t need to register for using this api, here is the link to know more about <a title="twitter search api" href="http://search.twitter.com/api/" target="_blank">twitter search api</a>, in case you wanna know about other parameter or getting as other format.</p>
<pre class="brush: php; title: ; notranslate">
if (isset($_GET[&quot;act&quot;]) &amp;&amp; $_GET[&quot;act&quot;] == &quot;search&quot;) {
    $url = 'http://search.twitter.com/search.json?q='.$_GET[&quot;q&quot;];

    $content = file_get_contents($url);
    $array = json_decode($content);

    $data = array();

    foreach ($array-&gt;results as $var =&gt; $value)
    {
        // adding url
        $pattern = '/\b(https?:\/\/[-A-Z0-9+&amp;@#\/%?=~_|$!:,.;]*[A-Z0-9+&amp;@#\/%=~_|$])/i';
        preg_match_all($pattern, $value-&gt;text, $regs);
        $loop = count($regs[0]);

        for ($i = 0; $i &lt; $loop; $i++) {
            $value-&gt;text = str_replace($regs[0][$i], '&lt;a class=&quot;outlink&quot; href=&quot;'.$regs[0][$i].'&quot;&gt;'.$regs[0][$i].'&lt;/a&gt;', $value-&gt;text);
        }

        $data[] = array(
            &quot;profile_image_url&quot; =&gt; $value-&gt;profile_image_url,
            &quot;from_user&quot;         =&gt; $value-&gt;from_user,
            &quot;text&quot;              =&gt; $value-&gt;text
        );
    }

    $out = array(
        &quot;success&quot; =&gt; true,
        &quot;results&quot; =&gt; $data
    );

    echo json_encode($out);
    exit;
}
</pre>
<p>In PHP code there are a regex function I get from <a title="PHP If text contains url" href="http://www.phpfreaks.com/forums/index.php?topic=259451.0" target="_blank">phpfreak</a> to check whether the tweets contain some url, if yes it will change directly to html link element. Last this are the screen example, if you want to see the demo, better using your iphone, android smartphone or using the android emulator, cause I&#8217;m not creating condition for desktop browser or tablet.</p>
<p style="text-align: center;"><a title="Sencha Touch Twitter Search Demo" href="http://demo.superdit.com/sencha-touch/twitter_search/" target="_blank">View Demo</a> | <a title="Sencha Touch Twitter Search Download" href="http://www.box.net/shared/fep0g6lhdr" target="_blank">Download Source</a></p>
<p><img class="aligncenter size-full wp-image-6161" title="Sencha Touch Twitter Search" src="http://superdit.com/wp-content/uploads/2011/04/screenshot2.png" alt="Sencha Touch Twitter Search" width="540" height="314" /></p>
]]></content:encoded>
			<wfw:commentRss>http://superdit.com/2011/04/15/displaying-twitter-search-result-with-sencha-touch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Free Twitter Clone Script Based on PHP</title>
		<link>http://superdit.com/2010/09/06/free-twitter-clone-script-based-on-php/</link>
		<comments>http://superdit.com/2010/09/06/free-twitter-clone-script-based-on-php/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 03:23:25 +0000</pubDate>
		<dc:creator>aditia rahman</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[freebie]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://superdit.com/?p=2522</guid>
		<description><![CDATA[In this post I want to share a Twitter Clone script built on PHP, maybe this useful for you who want to start your own microblog or just to study the file structure to build from scratch. Status.net - StatusNet is the open source microblogging platform that helps you share and connect in real-time within<a href="http://superdit.com/2010/09/06/free-twitter-clone-script-based-on-php/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>In this post I want to share a Twitter Clone script built on PHP, maybe this useful for you who want to start your own microblog or just to study the file structure to build from scratch.</p>
<h5><a title="Status.net" href="http://status.net/" target="_blank">Status.net</a></h5>
<p>- <em>StatusNet is the open source microblogging platform that helps  you share and connect in real-time within your own domain. With  StatusNet you can encourage collaboration, build and engage your  community, and be in command of your brand.</em> -</p>
<p><a title="Status.net" href="http://status.net/" target="_blank"><img class="aligncenter" title="Status.net" src="http://superdit.com/wp-content/uploads/2010/09/StatusNet.png" alt="Status.net" width="500" height="275" /></a></p>
<p><span id="more-2522"></span>I think this is the most promising twitter clone based PHP right now, running very smooth on my localhost, without problem, it has many great feature like twitter has and quite nice default design and it is free but if you want to take it to the enterprise level, they provide some service too.</p>
<h5><a title="Jisko" href="http://jisko.org/" target="_blank">Jisko</a></h5>
<p><em>- Since Jisko is a microblogging system that lets you share short messages between your network of friends, it can help you and your company improving the internal organization between departments or even among employees. </em>-</p>
<p><a title="Jisko" href="http://jisko.org/" target="_blank"><img class="aligncenter size-full wp-image-2702" title="Jisko" src="http://superdit.com/wp-content/uploads/2010/09/Jikso_on_Localhost.png" alt="Jisko" width="500" height="239" /></a></p>
<h5><a title="Floopo" href="http://www.floopo.com/" target="_blank">Floopo</a></h5>
<p>- <em>Floopo enables you to create a micro blog (or what some would call  a twitter clone) in just minutes. It comes with all the features you would expect but also includes some very cool features. For more details on the full list of feature see Micro blog features.</em> -</p>
<p><a title="Floopo" href="http://www.floopo.com" target="_blank"><img class="aligncenter size-full wp-image-2727" title="floopo" src="http://superdit.com/wp-content/uploads/2010/09/demo_floopo_com.jpg" alt="floopo" width="500" height="250" /></a></p>
<p>This project development seems stopping, don&#8217;t know, but still good to try, and you need ionCube PHP installed on your server.</p>
<h5><a title="Noserub" href="http://noserub.com/" target="_blank">Noserub</a></h5>
<p>- <em>NoseRub only defines the social network and some basic content types like media, links, micropublishing and text. You can add all your contacts to a NoseRub network and aggregate several social networks into just one. And you always have full control of your data, as you can install NoseRub on your own server and have it connect to other servers out there.</em> -</p>
<p><a title="Noserub" href="http://noserub.com/" target="_blank"><img class="aligncenter size-full wp-image-2720" title="noserub" src="http://superdit.com/wp-content/uploads/2010/09/noserub_com.jpg" alt="noserub" width="500" height="349" /></a></p>
<p>Noserub mix all the web feeds all around the net, which mean it can connects to your favorite social media site, but it&#8217;s like the development stop for a while. The script is based on old CakePHP version, the PHP 5.3 version won&#8217;t work well, just downgrade your PHP to 5.2 to try it.</p>
<h5><a title="Sharetronix Personal" href="http://sharetronix.com/sharetronix/" target="_blank">Sharetronix Personal</a></h5>
<p>- <em>Sharetronix is the world&#8217;s favorite opensource microblogging platform</em> -</p>
<p><a title="Sharetronix Personal" href="http://sharetronix.com/sharetronix/" target="_blank"><img class="aligncenter size-full wp-image-2730" title="sharetronix" src="http://superdit.com/wp-content/uploads/2010/09/sharetronix.jpg" alt="sharetronix" width="500" height="250" /></a></p>
<p>Sharetronix looks promising cause there a company backed up this project but it seems you only can use it for free if you are using in personal project, not for commercial.</p>
<h5><a title="pagecookery" href="http://www.pagecookery.com" target="_blank">Pagecookery</a></h5>
<p><a title="Pagecookery" href="http://www.pagecookery.com" target="_blank"><img class="aligncenter size-full wp-image-2737" title="pagecookery" src="http://superdit.com/wp-content/uploads/2010/09/pagecookery.png" alt="pagecookery" width="500" height="198" /></a></p>
<p>The project in is japanese language but still work when i&#8217;m installing.</p>
]]></content:encoded>
			<wfw:commentRss>http://superdit.com/2010/09/06/free-twitter-clone-script-based-on-php/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Get Latest Tweet Using ExtJS DataView and PHP</title>
		<link>http://superdit.com/2010/07/27/get-latest-tweet-using-extjs-dataview-and-php/</link>
		<comments>http://superdit.com/2010/07/27/get-latest-tweet-using-extjs-dataview-and-php/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 14:44:53 +0000</pubDate>
		<dc:creator>aditia rahman</dc:creator>
				<category><![CDATA[Extjs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://superdit.com/?p=1981</guid>
		<description><![CDATA[Recently I love twitter, even though I didn&#8217;t tweet too often, cause I found many great link from the people that I follow. In this post, I want to create a little twitter client to getting the latest tweets by specific username using ExtJS DataView, cause the app are just getting the tweets the it<a href="http://superdit.com/2010/07/27/get-latest-tweet-using-extjs-dataview-and-php/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>Recently I love twitter, even though I didn&#8217;t tweet too often, cause I found many great link from the people that I follow. In this post, I want to create a little twitter client to getting the latest tweets by specific username using <a title="ExtJS Data View" href="http://www.sencha.com/deploy/dev/examples/view/data-view.html" target="_blank">ExtJS DataView</a>, cause the app are just getting the tweets the it doesn&#8217;t have to authenticate the users, let get straight to the code:<span id="more-1981"></span></p>
<p>First is the <em><strong>get-tweets.php</strong></em>, is to fecth the latest tweets using <a title="Go To Twitter API" href="http://dev.twitter.com/" target="_blank">Twitter API</a>, you can se on the code below the <em>$username </em>variable is dynamic which means it will be input by users (it will explained on the next step) and this PHP script returned as the XML document.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

$username = $_GET['username'];

$twitterHost = &quot;http://twitter.com/statuses/user_timeline/&quot;.$username.&quot;.xml?count=10&quot;;

$curl = curl_init();

curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($curl, CURLOPT_URL, $twitterHost);

$result = curl_exec($curl);
curl_close($curl);

header('Content-Type: application/xml; charset=ISO-8859-1');

print $result;

?&gt;
</pre>
<p>And second is the ExtJS code, just put it inside your HTML code (my filename is index.html) and always to include the required ExtJS file (<em>ext-all.css,</em> <em>ext-base.js</em>, and <em>ext-all.js</em>). Because the PHP script returned as XML, so we have to catch with ExtJS XMLReader, and the tweets will be showed after the users insert a twitter username and push the button, so we create FormPanel component to catch the value from the users, here&#8217;s the code</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
Ext.onReady(function(){
    var proxyTweets = new Ext.data.HttpProxy({
        url: 'get-tweets.php?username=mashable'
    });

    var strTweets = new Ext.data.Store({
        proxy: proxyTweets,
        reader: new Ext.data.XmlReader({
            record: 'status'
        }, [
            'text'
        ]),
        listeners: {
            'beforeload': function() {
                Ext.getCmp('twitter_username').setDisabled(true);
                Ext.getCmp('btnGetTweets').setDisabled(true);
            },
            'datachanged': function() {
                Ext.getCmp('twitter_username').setDisabled(false);
                Ext.getCmp('btnGetTweets').setDisabled(false);
            }
        }
    });

    var tplTweets = new Ext.XTemplate(
        '&lt;tpl for=&quot;.&quot;&gt;',
            '&lt;div class=&quot;tweetbox&quot;&gt;{text}&lt;/div&gt;',
        '&lt;/tpl&gt;',
        '&lt;div class=&quot;x-clear&quot;&gt;&lt;/div&gt;'
    );
    var dataTweets = new Ext.DataView({
        autoScroll: true, store: strTweets, tpl: tplTweets,
        autoHeight: false, height: 265,
        multiSelect: true, itemSelector: 'div.thumb-wrap',
        emptyText: 'No tweets to display',
        style: 'border:1px solid #99BBE8;background:#fff;'
    });
    var panelTop = new Ext.FormPanel({
        title: 'Enter Twitter Username', width: 400,
        renderTo: 'top', buttonAlign: 'center',
        labelWidth: 150, fileUpload: true,
        frame: true, style: 'margin: 0 auto;',
        id: 'panelTop',
        items: [{
            xtype: 'textfield',
            emptyText: '',
            fieldLabel: 'Twitter Username',
            buttonText: 'Select a File',
            width: 230,
            id: 'twitter_username'
        }],
        buttons: [{
            id: 'btnGetTweets',
            text: 'Latest Tweets',
            handler: getTweets
        }],
        keys: [{
            key: [Ext.EventObject.ENTER], handler: getTweets
        }]
    });

    function getTweets() {
        var u = Ext.getCmp('twitter_username').getValue();
        proxyTweets.setUrl('get-tweets.php?username=' + u, false);
        strTweets.load();
        Ext.getCmp('panelBottom').setTitle('Latest Tweets From ' + u);
    }

    var panelBottom = new Ext.Panel({
        title: 'Latest Tweets', frame: true, width: 400,
        height: 300, id: 'panelBottom', style: 'margin: 0 auto;',
        renderTo: 'bottom', items: [dataTweets]
    });
});
&lt;/script&gt;
</pre>
<p>And the last is the simple HTML tag to be ExtJS Panel Container</p>
<pre class="brush: xml; title: ; notranslate">
&lt;body&gt;
  &lt;div id=&quot;container&quot;&gt;
    &lt;div id=&quot;top&quot;&gt;&lt;/div&gt;
    &lt;div id=&quot;bottom&quot;&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/body&gt;
</pre>
<p>Here is the sample screenshot and like usual you can download the complete code from this post or view the online demo just click the link below the thumb image.</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-2000" title="ExtJS get Latest Tweets" src="http://superdit.com/wp-content/uploads/2010/07/ext_twitter_status.png" alt="ExtJS get Latest Tweets" width="433" height="426" /></p>
<p style="text-align: center;"><a title="View Extjs DataView Get Latest Tweets Demo" href="http://demo.superdit.com/ext_twitter_status/" target="_blank">View Demo</a> | <a title="Download Extjs DataView Get Latest Tweets" href="http://www.box.net/shared/el1i16idju" target="_blank">Download Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://superdit.com/2010/07/27/get-latest-tweet-using-extjs-dataview-and-php/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Twitter Like Login Screen</title>
		<link>http://superdit.com/2010/06/07/twitter-like-login-screen/</link>
		<comments>http://superdit.com/2010/06/07/twitter-like-login-screen/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 13:19:08 +0000</pubDate>
		<dc:creator>aditia rahman</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://superdit.com/?p=837</guid>
		<description><![CDATA[I like twitter, almost everyday I connected to twitter, in this post I created the Twitter Like Login Screen, not really the same but at least as similar as Twitter (without server side processing). Let&#8217;s start, first we have to prepare the folder, you can see the image on the right, that how my folder<a href="http://superdit.com/2010/06/07/twitter-like-login-screen/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full  wp-image-856" title="Twitter_Login_structure" src="http://superdit.com/wp-content/uploads/2010/06/Twitter_Login_structure.png" alt="" width="126" height="114" />I like twitter, almost everyday I connected to twitter, in this post I created the Twitter Like Login Screen, not really the same but at least as similar as Twitter (without server side processing). Let&#8217;s start, first we have to prepare the folder, you can see the image on the right, that how my folder look like and as usual I&#8217;m using <a title="Netbeans" href="http://netbeansorg" target="_blank">Netbeans</a> so not to worry about the nbproject folder, the html, javascript and css code will be posted here, and you don&#8217;t worry about the image because I include it in downloadable source code and then create the html code first<span id="more-837"></span></p>
<pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
    &lt;title&gt;Twitter Like Login Screen&lt;/title&gt;
    &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/style.css&quot;/&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;js/script.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;divcontent&quot;&gt;
    &lt;div id=&quot;divlink&quot;&gt;
        &lt;span class=&quot;spLeft&quot;&gt;Have an account?&lt;/span&gt;
        &lt;span class=&quot;spUnclicked&quot; id=&quot;spLink&quot;&gt;
            &lt;a href=&quot;&quot; id=&quot;textSignin&quot; class=&quot;text_link&quot; onclick=&quot;showHideLogin(); return false;&quot;&gt;
                Sign In
            &lt;/a&gt;
        &lt;/span&gt;
    &lt;/div&gt;

    &lt;div style=&quot;clear:both;&quot;&gt;&lt;/div&gt;

    &lt;div id=&quot;divlogin&quot;&gt;
        &lt;form action=&quot;&quot; method=&quot;post&quot;&gt;
            &lt;label for=&quot;username&quot; class=&quot;formLabel&quot;&gt;Username or Email&lt;/label&gt;
            &lt;input type=&quot;text&quot; name=&quot;username&quot; class=&quot;field&quot;/&gt;
            &lt;label for=&quot;password&quot; class=&quot;formLabel&quot;&gt;Password&lt;/label&gt;
            &lt;input type=&quot;password&quot; name=&quot;passord&quot; class=&quot;field&quot;/&gt;
            &lt;div class=&quot;submit&quot;&gt;
                &lt;input type=&quot;submit&quot; value=&quot;Sign In&quot; id=&quot;signin_submit&quot;/&gt;
                &lt;input type=&quot;checkbox&quot; name=&quot;remember&quot; id=&quot;remember&quot;/&gt;
                &lt;label for=&quot;remember&quot; id=&quot;labelInline&quot;&gt;Remember Me&lt;/label&gt;
            &lt;/div&gt;
            &lt;div class=&quot;forgot&quot;&gt;
                &lt;a href=&quot;&quot; class=&quot;link_bottom&quot;&gt;Forgot Password?&lt;/a&gt;
                &amp;nbsp;
                &lt;a href=&quot;&quot; class=&quot;link_bottom&quot;&gt;Forgot Username?&lt;/a&gt;
            &lt;/div&gt;
            &lt;div class=&quot;forgot&quot;&gt;
                &lt;a href=&quot;&quot; class=&quot;link_bottom&quot;&gt;Already using Twitter on your phone?&lt;/a&gt;
            &lt;/div&gt;
        &lt;/form&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>To separate the div Sign In link and the div login i&#8217;m using another div with css style <em>clear:both </em>because I want to put the login screen exactly on the bottom of div Sign In, the real twitter is using absolute position for login form, because they have the content to show, but not here. So the complete css file look like this</p>
<pre class="brush: css; title: ; notranslate">
* { font-family: &quot;Arial&quot; }
body {
    background: #dbe9ed;
}
#divcontent {
    width: 800px;
    margin: 0 auto;
}
#divlink {
    text-align: left;
    float: right;
    font-size: 11px;
    background: #fff;
    padding: 5px 0 5px 8px;
    color: #666;
    /* mozilla firefox */
    -moz-border-radius: 5px;
    /* google chrome &amp; safari*/
    -webkit-border-radius: 5px;
    /* opera */
    border-radius: 5px;
}
#divlink a {
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    padding: 0 18px 0 0;
}
.spLeft {
    float: left;
}
.spUnclicked {
    padding: 5px 7px 5px 5px;
    margin-left: 5px;
    /* mozilla firefox */
    -moz-border-radius: 5px;
    /* google chrome &amp; safari*/
    -webkit-border-radius: 5px;
    /* opera */
    border-radius: 5px;
}
.spClicked {
    padding: 5px 7px 5px 5px;
    background: #ccc;
    margin-left: 5px;
    /* mozilla firefox */
    -moz-border-radius: 5px 5px 0 0;
    -moz-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.3);
    /* google chrome &amp; safari*/
    -webkit-border-radius: 5px 5px 0 0;
    -webkit-box-shadow: rgba(0, 0, 0, 0.296875) 0px 3px 3px;
    /* opera */
    border-radius: 5px 5px 0 0;
    box-shadow: 0px 3px 3px #666666;
}
.text_link {
    padding-right: 15px;
    color: #7fb3cc;
    background: url(../images/toggle_down_dark.png) no-repeat scroll right center;
}
.text_link_clicked {
    color: #000;
    background: #ccc;
    background: url(../images/toggle_up_dark.png) no-repeat scroll right center #ccc;
}
#divlogin {
    float:right;
    background: #fff;
    border: 5px solid #ccc;
    background-color: #ffffff;
    /* mozilla firefox */
    -moz-border-radius: 5px 0 5px 5px;
    -moz-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.3);
    /* google chrome &amp; safari*/
    -webkit-border-radius: 5px 0 5px 5px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.296875) 0px 3px 3px;
    /* opera */
    box-shadow: 0px 3px 3px #666666;
    border-radius: 5px 0 5px 5px;
}
#divlogin form {
    margin: 0;
    padding: 5px 8px;
}
.formLabel {
    font-size: 11px;
    color: #666;
    display: block;
    padding: 10px 0 7px 0;
}
#divlogin {
    width: 245px;
    display: none;
}
#divlogin form .field {
    border: 1px solid #ddd;
    padding: 5px;
    width: 218px;
}
#signin_submit {
    background: url(../images/bg-btn-blue.png) repeat-x scroll 0 0 #3399dd;
    /* mozilla firefox */
    -moz-border-radius: 4px 4px 4px 4px;
    /* google chrome &amp; safari*/
    -webkit-border-radius: 4px;
    /* opera */
    border: 1px solid #3399dd;
    color: #FFF;
    font-size: 11px;
    font-weight: bold;
    margin: 0 5px 0 0;
    padding: 4px 10px 5px;
    text-shadow: 0 -1px 0 #3399dd;
}
#signin_submit:focus, #signin_submit:hover {
    cursor: pointer;
    background-position: 0 -5px;
}
#signin_submit:active {
    background-image: none;
}
.submit {
    color: #666;
    font-size: 11px;
    margin: 12px 0 12px 0;
}
.submit #remember {
    position: relative;
    top: 3px;
}
.submit .labelInline {
    display: inline;
}
.link_bottom {
    color: #CC3366;
    font-size: 11px;
    text-decoration: none;
}
.link_bottom:hover {
    text-decoration: underline;
}
.forgot {
    margin-bottom: 5px;
}
</pre>
<p>As you can see on the code above the css code to creating rounded corner and shadow is different, it depend on the browser engine, but it wont work on IE, the <em>&#8220;Sign In&#8221; </em>button style I copied from the Twitter site it self. There are two unused css style like <em>.spClicked</em> and <em>.text_link_clicked</em>, but they will be used when we call using javascript, and here the complete javascript code</p>
<pre class="brush: jscript; title: ; notranslate">
document.onclick = check;
function Flag() {
    this.init = 1;
}

flag = new Flag;

function check(e) {
    var target = (e &amp;&amp; e.target) || (event &amp;&amp; event.srcElement);
    var objDiv = document.getElementById('divlogin');
    var objLink = document.getElementById('textSignin');
    var objSpan = document.getElementById(&quot;spLink&quot;);
    var parent = checkParent(target);
    if (flag.init == 1) {
        if (parent) {
            objDiv.style.display = 'none';
            objLink.className = 'text_link';
            objSpan.className = 'spUnclicked';
        }
        if (target == objLink) {
            objDiv.style.display = 'block';
            objLink.className = 'text_link_clicked';
            objSpan.className = 'spClicked';
        }
    }
    flag.init = 1;
}

function checkParent(t) {
    while (t.parentNode) {
        if (t == document.getElementById('divlogin')) {
            return false;
        }
        t = t.parentNode;
    }
    return true;
}

function showHideLogin() {
    var display = document.getElementById(&quot;divlogin&quot;).style.display;
    if (display == 'none' || display == '') {
        document.getElementById(&quot;divlogin&quot;).style.display = 'block';
        document.getElementById(&quot;textSignin&quot;).className = 'text_link_clicked';
        document.getElementById(&quot;spLink&quot;).className = 'spClicked';
        flag.init = 1;
    } else {
        document.getElementById(&quot;divlogin&quot;).style.display = 'none';
        document.getElementById(&quot;textSignin&quot;).className = 'text_link';
        document.getElementById(&quot;spLink&quot;).className = 'spUnclicked';
        flag.init = 0;
    }
}
</pre>
<p>The last file is the javascript, so the javascript code have to handle the users event this is what I have try with the real twitter, the login form shows when users clicks on the sign in link (so now the login form is visible). When the login form is visible there is two event that can close the login screen, first when users click outside the form, and second when users click again the sign in link (like toggle button). Now you can see the two css class <em>.spClicked</em> and <em>.text_link_clicked </em>are used when the login form visible. Here the result</p>
<p style="text-align: center;"><img class="size-full wp-image-853  aligncenter" title="Twitter Like Login Screen" src="http://superdit.com/wp-content/uploads/2010/06/Twitter_Like_Login.png" alt="" width="268" height="268" /></p>
<p style="text-align: center;"><a title="Twitter Like Login Screen" href="http://www.box.net/shared/5goi0m56nc" target="_blank">DOWNLOAD SOURCE</a></p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 3648px; width: 1px; height: 1px; overflow: hidden;">
<pre>.spClicked.</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://superdit.com/2010/06/07/twitter-like-login-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

