<?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>David Walsh :: Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞. &#187; Bookmarking / Social</title> <atom:link href="http://davidwalsh.name/tutorials/bookmarking/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 02 Sep 2010 03:13:15 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>Facebook-Style Modal Box Using&#160;MooTools</title><link>http://davidwalsh.name/facebook-modal-mootools</link> <comments>http://davidwalsh.name/facebook-modal-mootools#comments</comments> <pubDate>Tue, 07 Apr 2009 12:35:40 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Blog]]></category> <category><![CDATA[Bookmarking / Social]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Markup]]></category> <category><![CDATA[MooTools]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=1965</guid> <description><![CDATA[In my oh-so-humble opinion, Facebook&#8217;s Modal box is the best modal box around. It&#8217;s lightweight, subtle, and very stylish. I&#8217;ve taken Facebook&#8217;s imagery and CSS and combined it with MooTools&#8217; awesome functionality to duplicate the effect. View Demo The&#160;Imagery Facebook uses a funky sprite for their modal box. Pretty cool though. The&#160;CSS /* from facebook [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/facebook-modal-mootools">Facebook-Style Modal Box Using&nbsp;MooTools</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/facebook-sliders-with-mootools-and-css-now-with-image-generation' rel='bookmark' title='Permanent Link: Facebook Sliders With Mootools and CSS &#8211; Now With Image&nbsp;Generation!'>Facebook Sliders With Mootools and CSS &#8211; Now With Image&nbsp;Generation!</a></li><li><a
href='http://davidwalsh.name/facebook-sliders-mootools' rel='bookmark' title='Permanent Link: Facebook Sliders With Mootools and&nbsp;CSS'>Facebook Sliders With Mootools and&nbsp;CSS</a></li><li><a
href='http://davidwalsh.name/digg-share-widget' rel='bookmark' title='Permanent Link: Digg-Style Dynamic Share Widget Using&nbsp;MooTools'>Digg-Style Dynamic Share Widget Using&nbsp;MooTools</a></li><li><a
href='http://davidwalsh.name/skype-mootools' rel='bookmark' title='Permanent Link: Skype-Style Buttons Using&nbsp;MooTools'>Skype-Style Buttons Using&nbsp;MooTools</a></li><li><a
href='http://davidwalsh.name/snook-navigation-mootools' rel='bookmark' title='Permanent Link: Create Snook-Style Navigation Using&nbsp;MooTools'>Create Snook-Style Navigation Using&nbsp;MooTools</a></li></ol>]]></description> <content:encoded><![CDATA[<p>In my oh-so-humble opinion, Facebook&#8217;s Modal box is the best modal box around.  It&#8217;s lightweight, subtle, and very stylish.  I&#8217;ve taken Facebook&#8217;s imagery and CSS and combined it with MooTools&#8217; awesome functionality to duplicate the effect.</p><p><img
src="http://davidwalsh.name/dw-content/facebook-modal-example.jpg" alt="Facebook Example" /></p><div
class="actions"> <a
href="http://davidwalsh.name/dw-content/facebook-modal.php" class="demo">View Demo</a><div
class="clear"></div></div><h2>The&nbsp;Imagery</h2><p> <img
src="http://davidwalsh.name/dw-content/facebook-pop-dialog-sprite.png" alt="Facebook Modal" /> <img
src="http://davidwalsh.name/dw-content/facebook-overlay.png" alt="Facebook Modal" /></p><p>Facebook uses a funky sprite for their modal box.  Pretty cool though.</p><h2>The&nbsp;CSS</h2><pre class="css">
/* from facebook */
.generic_dialog { height:0; left:0; overflow:visible; position:fixed; /*dw*/ top:0; width:100%; z-index:101; }
#generic_dialog_iframe { left:0; position:absolute; top:0; z-index:3; }
.generic_dialog .generic_dialog_popup { height:0; overflow:visible; position:relative; }
.generic_dialog div.dialog_loading 		{ background-color:#F2F2F2; border:1px solid #606060; font-size:24px; padding:10px; }
#generic_dialog_overlay { display:block; left:0; position:absolute; top:0; width:100%; z-index:100; }
.dialog_body .dialog_content_img { float:left; margin-right:15px; }
.dialog_body .dialog_content_txt { float:left; padding-bottom:5px; width:300px; }
.dialog_body .dialog_content_body { padding-bottom:13px; } 
.dialog_body .form_label { padding-right:5px; }
.dark_dialog_overlay { background-image:url(facebook-overlay.png); background-repeat:repeat; }
* html .dark_dialog_overlay { background-color:transparent; background-image:url(blank.gif); }
.full_bleed .pop_dialog_table td.pop_content .dialog_body { padding:0; } 
table.pop_dialog_table { border-collapse:collapse; direction:ltr; margin:auto; table-layout:fixed; width:465px; }
td.pop_topleft, td.pop_topright, td.pop_bottomleft, td.pop_bottomright { height:10px; overflow:hidden; padding:0 !important; width:10px !important; }
td.pop_topleft { background:transparent url(facebook-pop-dialog-sprite.png) no-repeat scroll 0 0; }
td.pop_topright { background:transparent url(facebook-pop-dialog-sprite.png) no-repeat scroll 0 -10px; }
td.pop_bottomleft { background:transparent url(facebook-pop-dialog-sprite.png) no-repeat scroll 0 -20px; }
td.pop_bottomright { background:transparent url(facebook-pop-dialog-sprite.png) no-repeat scroll 0 -30px; }
td.pop_top, td.pop_bottom { background:transparent url(facebook-pop-dialog-sprite.png) repeat-x scroll 0 -40px; }
td.pop_side { background:transparent url(facebook-pop-dialog-sprite.png) repeat-y scroll -10px 0; }
td.pop_content { background-color:white; direction:ltr; padding:0; }
.pop_dialog_rtl td.pop_content { direction:rtl; }
td.pop_content h2.dialog_title { background:#6D84B4 none repeat scroll 0 0; border:1px solid #3B5998; color:white; font-size:14px; font-weight:bold; margin:0; }
td.pop_content h2.dialog_loading { background:#6D84B4 url(facebook-indicator_white_small.gif) no-repeat scroll 400px 10px; padding-right:40px; }
td.pop_content h2 span { display:block; padding:4px 10px 5px; }
td.pop_content .dialog_content { background:#FFFFFF none repeat scroll 0 0; border-color:#555555; border-style:solid; border-width:0 1px 1px; }
td.pop_content .dialog_body { border-bottom:1px solid #CCCCCC; padding:10px; }
td.pop_content .dialog_summary { background:#F2F2F2 none repeat scroll 0 0; border-bottom:1px solid #CCCCCC; padding:8px 10px; }
td.pop_content .dialog_buttons { background:#F2F2F2 none repeat scroll 0 0; padding:8px; text-align:right; }
td.pop_content .dialog_buttons input { margin-left:5px; }
td.pop_content .dialog_buttons_msg { float:left; padding:5px 0 0; }
td.pop_content .dialog_footer { background:#F2F2F2 none repeat scroll 0 50%; }

/* david walsh custom */
#fb-modal	{ display:none; }
#fb-close	{ cursor:pointer; }
.info		{ width:280px; float:left; font-size:11px; color:#666; }
.info b	{ color:#000; }
.image	{ width:200px; float:left; margin-right:10px; }
</pre><p>Most of this CSS was copied straight from Facebook&#8217;s stylesheets.  You&#8217;ll see a bit of custom CSS at the bottom but that&#8217;s just me customizing the content in the modal box.</p><h2>The MooTools&nbsp;JavaScript</h2><pre class="js">
window.addEvent('domready',function() {
	/* hide using opacity on page load */
	$('fb-modal').setStyles({
		opacity:0,
		display:'block'
	});
	/* hiders */
	$('fb-close').addEvent('click',function(e) { $('fb-modal').fade('out'); });
	window.addEvent('keypress',function(e) { if(e.key == 'esc') { $('fb-modal').fade('out'); } });
	$(document.body).addEvent('click',function(e) { 
		if($('fb-modal').get('opacity') == 1 &#038;&#038; !e.target.getParent('.generic_dialog')) { 
			$('fb-modal').fade('out'); 
		} 
	});
	/* click to show */
	$('fb-trigger').addEvent('click',function() {
		$('fb-modal').fade('in');
	});
});
</pre><p>Fade in. Fade out.  Too easy with MooTools!</p><div
class="actions"> <a
href="http://davidwalsh.name/dw-content/facebook-modal.php" class="demo">View Demo</a><div
class="clear"></div></div><p>Just because Facebook has more resources than you doesn&#8217;t mean your site can&#8217;t look as good as Facebook!</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/facebook-modal-mootools">Facebook-Style Modal Box Using&nbsp;MooTools</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/facebook-sliders-with-mootools-and-css-now-with-image-generation' rel='bookmark' title='Permanent Link: Facebook Sliders With Mootools and CSS &#8211; Now With Image&nbsp;Generation!'>Facebook Sliders With Mootools and CSS &#8211; Now With Image&nbsp;Generation!</a></li><li><a
href='http://davidwalsh.name/facebook-sliders-mootools' rel='bookmark' title='Permanent Link: Facebook Sliders With Mootools and&nbsp;CSS'>Facebook Sliders With Mootools and&nbsp;CSS</a></li><li><a
href='http://davidwalsh.name/digg-share-widget' rel='bookmark' title='Permanent Link: Digg-Style Dynamic Share Widget Using&nbsp;MooTools'>Digg-Style Dynamic Share Widget Using&nbsp;MooTools</a></li><li><a
href='http://davidwalsh.name/skype-mootools' rel='bookmark' title='Permanent Link: Skype-Style Buttons Using&nbsp;MooTools'>Skype-Style Buttons Using&nbsp;MooTools</a></li><li><a
href='http://davidwalsh.name/snook-navigation-mootools' rel='bookmark' title='Permanent Link: Create Snook-Style Navigation Using&nbsp;MooTools'>Create Snook-Style Navigation Using&nbsp;MooTools</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/facebook-modal-mootools/feed</wfw:commentRss> <slash:comments>57</slash:comments> </item> <item><title>Create Digg URLs Using&#160;PHP</title><link>http://davidwalsh.name/create-digg-url-php</link> <comments>http://davidwalsh.name/create-digg-url-php#comments</comments> <pubDate>Mon, 06 Apr 2009 12:16:59 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Bookmarking / Social]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=2032</guid> <description><![CDATA[Digg recently came out with a sweet new feature that allows users to create Tiny Digg URLs which show a Digg banner at the top allowing easy access to vote for the article from the page. While I love visiting Digg every once in a while, I&#8217;d rather grab the URL remotely. Here&#8217;s how to [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/create-digg-url-php">Create Digg URLs Using&nbsp;PHP</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/bitly-api-php' rel='bookmark' title='Permanent Link: Create Bit.ly Short URLs Using PHP: API Version&nbsp;3'>Create Bit.ly Short URLs Using PHP: API Version&nbsp;3</a></li><li><a
href='http://davidwalsh.name/create-short-urls-unu' rel='bookmark' title='Permanent Link: Create Short URLs Using&nbsp;U.Nu'>Create Short URLs Using&nbsp;U.Nu</a></li><li><a
href='http://davidwalsh.name/bitly-php' rel='bookmark' title='Permanent Link: Create Bit.ly Short URLs Using&nbsp;PHP'>Create Bit.ly Short URLs Using&nbsp;PHP</a></li><li><a
href='http://davidwalsh.name/6-reason-why-digg-is-losing-me' rel='bookmark' title='Permanent Link: 6 Reason Why Digg Is Losing&nbsp;Me'>6 Reason Why Digg Is Losing&nbsp;Me</a></li><li><a
href='http://davidwalsh.name/digg-homepage-woohooo' rel='bookmark' title='Permanent Link: Digg Homepage!!&nbsp;Woohooo!!'>Digg Homepage!!&nbsp;Woohooo!!</a></li></ol>]]></description> <content:encoded><![CDATA[<img
src="http://davidwalsh.name/dw-content/digg-guy.jpg" class="image" /><p>Digg recently came out with a sweet new feature that allows users to create Tiny Digg URLs which show a Digg banner at the top allowing easy access to vote for the article from the page.  While I love visiting Digg every once in a while, I&#8217;d rather grab the URL remotely.  Here&#8217;s how to do so using PHP.</p><h2>The&nbsp;PHP</h2><pre class="php">
/* function that grabs the response from digg */
function get_digg_url($url,$app_key)
{
	$return_xml = file_get_contents('http://services.digg.com/url/short/create?type=xml&#038;appkey='.urlencode($app_key).'&#038;url='.urlencode($url));
	$digg_url = get_match('/short_url="(.*)"/isU',$return_xml);
	return $digg_url;
}

/* function that runs a regex to scrub for the url */
function get_match($regex,$content)
{
	preg_match($regex,$content,$matches);
	return $matches[1];
}

/* important! set a fake user agent */
ini_set('user_agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6');

/* url i want the digg URL for, and my app key which is a URL */
$url = 'http://davidwalsh.name/penetrated-diggnation';
$app = 'http://davidwalsh.name';

/* get the digg URL! */
$digg_url = get_digg_url($url,$app);  //returns:  http://digg.com/u1DOk
</pre><p>Very quick and simple.  You could also use PHP&#8217;s cURL library if you wanted.</p><h2>The XML&nbsp;Response</h2><pre class="xml">
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;shorturls count="1" offset="0" timestamp="1238884894" total="1"&gt;
	&lt;shorturl link="http://davidwalsh.name/penetrated-diggnation" short_url="http://digg.com/u1DOk" view_count="0"/&gt;
&lt;/shorturls&gt;
</pre><p>XML is a beautiful thing, isn&#8217;t it?  You may also request a JSON response.</p><p>Like this Digg article?  I suppose you could Digg it!  Or you can check out the time <a
href="http://davidwalsh.name/penetrated-diggnation">I was featured on DiggNation!</a></p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/create-digg-url-php">Create Digg URLs Using&nbsp;PHP</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/bitly-api-php' rel='bookmark' title='Permanent Link: Create Bit.ly Short URLs Using PHP: API Version&nbsp;3'>Create Bit.ly Short URLs Using PHP: API Version&nbsp;3</a></li><li><a
href='http://davidwalsh.name/create-short-urls-unu' rel='bookmark' title='Permanent Link: Create Short URLs Using&nbsp;U.Nu'>Create Short URLs Using&nbsp;U.Nu</a></li><li><a
href='http://davidwalsh.name/bitly-php' rel='bookmark' title='Permanent Link: Create Bit.ly Short URLs Using&nbsp;PHP'>Create Bit.ly Short URLs Using&nbsp;PHP</a></li><li><a
href='http://davidwalsh.name/6-reason-why-digg-is-losing-me' rel='bookmark' title='Permanent Link: 6 Reason Why Digg Is Losing&nbsp;Me'>6 Reason Why Digg Is Losing&nbsp;Me</a></li><li><a
href='http://davidwalsh.name/digg-homepage-woohooo' rel='bookmark' title='Permanent Link: Digg Homepage!!&nbsp;Woohooo!!'>Digg Homepage!!&nbsp;Woohooo!!</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/create-digg-url-php/feed</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Following MooTools on&#160;Twitter</title><link>http://davidwalsh.name/follow-mootools-twitter</link> <comments>http://davidwalsh.name/follow-mootools-twitter#comments</comments> <pubDate>Mon, 09 Mar 2009 12:33:09 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Bookmarking / Social]]></category> <category><![CDATA[MooTools]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=1777</guid> <description><![CDATA[A while back I posted links to various official and unofficial websites that would keep you up to date on the MooTools project. Here are a bunch of Twitter-related links that will get you even closer to the project. MooTools Devs &#38;&#160;Contributors Official Twitter Account Jan Kassens Aaron Newton Thomas Aylott Christoph Pojer Harald Kirschner [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/follow-mootools-twitter">Following MooTools on&nbsp;Twitter</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/mootools-github' rel='bookmark' title='Permanent Link: Follow MooTools on&nbsp;GitHub!'>Follow MooTools on&nbsp;GitHub!</a></li><li><a
href='http://davidwalsh.name/twitter-mootools' rel='bookmark' title='Permanent Link: Twitter:&nbsp;@mootools'>Twitter:&nbsp;@mootools</a></li><li><a
href='http://davidwalsh.name/mootools-plugins' rel='bookmark' title='Permanent Link: Forge:  MooTools Plugin&nbsp;Repository'>Forge:  MooTools Plugin&nbsp;Repository</a></li><li><a
href='http://davidwalsh.name/script-style-twitter' rel='bookmark' title='Permanent Link: Follow Script &#038; Style on&nbsp;Twitter!'>Follow Script &#038; Style on&nbsp;Twitter!</a></li><li><a
href='http://davidwalsh.name/twitter' rel='bookmark' title='Permanent Link: I&#8217;ve Finally Caved:&nbsp;Twitter'>I&#8217;ve Finally Caved:&nbsp;Twitter</a></li></ol>]]></description> <content:encoded><![CDATA[<p>A while back I posted links to various official and unofficial websites that would keep you up to date on the MooTools project.  Here are a bunch of Twitter-related links that will get you even closer to the project.</p><h2>MooTools Devs &amp;&nbsp;Contributors</h2><ul><li><a
href="http://twitter.com/mootools">Official Twitter Account</a></li><li><a
href="http://twitter.com/kassens">Jan Kassens </a></li><li><a
href="http://twitter.com/anutron">Aaron Newton</a></li><li><a
href="http://twitter.com/subtleGradient">Thomas Aylott</a></li><li><a
href="http://twitter.com/cpojer">Christoph Pojer</a></li><li><a
href="http://twitter.com/digitarald">Harald Kirschner</a></li><li><a
href="http://twitter.com/tomocchino">Tom Occhino</a></li><li><a
href="http://twitter.com/rauchg">Guillermo Rauch</a></li><li><a
href="http://twitter.com/_nw_">Nathan White</a></li></ul><h2>Automated&nbsp;Accounts</h2><ul><li><a
href="http://twitter.com/clientcide">Clientcide</a></li><li><a
href="http://twitter.com/mootools_core">MooTools Core Updates (from Github)</a></li><li><a
href="http://search.twitter.com/search?q=mootools">&#8220;MooTools&#8221; Twitter Search</a></li></ul><p>Many of the accounts above are tweeted to often so if you follow MooTools you should follow the developers above.</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/follow-mootools-twitter">Following MooTools on&nbsp;Twitter</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/mootools-github' rel='bookmark' title='Permanent Link: Follow MooTools on&nbsp;GitHub!'>Follow MooTools on&nbsp;GitHub!</a></li><li><a
href='http://davidwalsh.name/twitter-mootools' rel='bookmark' title='Permanent Link: Twitter:&nbsp;@mootools'>Twitter:&nbsp;@mootools</a></li><li><a
href='http://davidwalsh.name/mootools-plugins' rel='bookmark' title='Permanent Link: Forge:  MooTools Plugin&nbsp;Repository'>Forge:  MooTools Plugin&nbsp;Repository</a></li><li><a
href='http://davidwalsh.name/script-style-twitter' rel='bookmark' title='Permanent Link: Follow Script &#038; Style on&nbsp;Twitter!'>Follow Script &#038; Style on&nbsp;Twitter!</a></li><li><a
href='http://davidwalsh.name/twitter' rel='bookmark' title='Permanent Link: I&#8217;ve Finally Caved:&nbsp;Twitter'>I&#8217;ve Finally Caved:&nbsp;Twitter</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/follow-mootools-twitter/feed</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>MooTools TwitterGitter&#160;Plugin</title><link>http://davidwalsh.name/mootools-twitter-plugin</link> <comments>http://davidwalsh.name/mootools-twitter-plugin#comments</comments> <pubDate>Wed, 04 Mar 2009 13:38:08 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[APIs]]></category> <category><![CDATA[Bookmarking / Social]]></category> <category><![CDATA[MooTools]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=1468</guid> <description><![CDATA[Everyone loves Twitter. Everyone loves MooTools. That&#8217;s why everyone should love TwitterGitter, a MooTools plugin that retrieves a user&#8217;s recent tweets and allows the user to format them however the user would like. TwitterGitter allows the user to choose the number of tweets to retrieve and returns an object containing the data provided by Twitter. [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/mootools-twitter-plugin">MooTools TwitterGitter&nbsp;Plugin</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/mootools-twitter-cookies' rel='bookmark' title='Permanent Link: MooTools TwitterGitter and&nbsp;Cookies'>MooTools TwitterGitter and&nbsp;Cookies</a></li><li><a
href='http://davidwalsh.name/cache-ajax' rel='bookmark' title='Permanent Link: Caching AJAX Results in&nbsp;JavaScript'>Caching AJAX Results in&nbsp;JavaScript</a></li><li><a
href='http://davidwalsh.name/tweetify' rel='bookmark' title='Permanent Link: Implementing String.Tweetify in&nbsp;MooTools'>Implementing String.Tweetify in&nbsp;MooTools</a></li><li><a
href='http://davidwalsh.name/update-twitter-php' rel='bookmark' title='Permanent Link: Update Your Twitter Status Remotely Using&nbsp;PHP'>Update Your Twitter Status Remotely Using&nbsp;PHP</a></li><li><a
href='http://davidwalsh.name/linkify-twitter-feed' rel='bookmark' title='Permanent Link: Linkify Your Twitter&nbsp;Feed'>Linkify Your Twitter&nbsp;Feed</a></li></ol>]]></description> <content:encoded><![CDATA[<a
href="http://davidwalsh.name/dw-content/twitter-gitter.php"><img
src="http://davidwalsh.name/dw-content/twitter-gitter.png" class="image" alt="TwitterGitter" /></a><p>Everyone loves Twitter.  Everyone loves MooTools.  That&#8217;s why everyone should love TwitterGitter, a MooTools plugin that retrieves a user&#8217;s recent tweets and allows the user to format them however the user would like.  TwitterGitter allows the user to choose the number of tweets to retrieve and returns an object containing the data provided by Twitter.</p><div
class="actions"> <a
href="http://davidwalsh.name/dw-content/twitter-gitter.php" class="demo">View Demo</a> <a
href="http://davidwalsh.name/js" class="download">Download</a><div
class="clear"></div></div><h2>Twitter&#8217;s Response&nbsp;Object</h2><pre class="js">
JsonP.requestors.request_0.handleResults(
	[
		{
			"created_at":"Mon Feb 09 23:38:33 +0000 2009",
			"user": {
				"description":"",
				"url":"http:\/\/davidwalsh.name",
				"name":"davidwalshblog",
				"protected":false,
				"followers_count":639,
				"profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/57860553\/footer-logo_normal.jpg",
				"location":"Madison, WI, US",
				"screen_name":"davidwalshblog",
				"id":15759583
			},
			"in_reply_to_user_id":null,
			"in_reply_to_status_id":null,
			"in_reply_to_screen_name":null,
			"truncated":false,
			"text":"Just got home from work.  Enjoying a Heineken.  Going to write some articles.",
			"id":1193654096,
			"favorited":false,
			"source":"&lt;a href=\"http:\/\/www.netvibes.com\/subscribe.php?module=Twitter\"&gt;Netvibes&lt;\/a&gt;"
		},
		{
			"in_reply_to_screen_name":null,
			"user": {
				"description":"",
				"screen_name":"davidwalshblog",
				"followers_count":639,
				"url":"http:\/\/davidwalsh.name",
				"name":"davidwalshblog",
				"protected":false,
				"profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/57860553\/footer-logo_normal.jpg",
				"location":"Madison, WI, US",
				"id":15759583
			},
			"created_at":"Mon Feb 09 21:58:00 +0000 2009",
			"truncated":false,
			"favorited":false,
			"in_reply_to_user_id":null,
			"text":"Yep, it's decided...writing articles tonight.",
			"id":1193352388,
			"in_reply_to_status_id":null,
			"source":"web"
		},
		//....
	]
);
</pre><p>Above is a sample of what is returned by Twitter.</p><h2>The MooTools&nbsp;Plugin</h2><pre class="js">
var TwitterGitter = new Class({
	
	//implements
	Implements: [Options,Events],

	//options
	options: {
		count: 2,
		sinceID: 1,
		link: true,
		onRequest: $empty,
		onComplete: $empty
	},
	
	//initialization
	initialize: function(username,options) {
		//set options
		this.setOptions(options);
		this.info = {};
		this.username = username;
	},
	
	//get it!
	retrieve: function() {
		new JsonP('http://twitter.com/statuses/user_timeline/' + this.username + '.json',{
			data: {
				count: this.options.count,
				since_id: this.options.sinceID
			},
			onRequest: this.fireEvent('request'),
			onComplete: function(data) {
				//linkify?
				if(this.options.link) {
					data.each(function(tweet) { tweet.text = this.linkify(tweet.text); },this);
				}
				//complete!
				this.fireEvent('complete',[data,data[0].user]);
			}.bind(this)
		}).request();
		return this;
	},
	
	//format
	linkify: function(text) {
		//courtesy of Jeremy Parrish (rrish.org)
		return text.replace(/(https?:\/\/\S+)/gi,'&lt;a href="$1"&gt;$1&lt;/a&gt;').replace(/(^|\s)@(\w+)/g,'$1&lt;a href="http://twitter.com/$2"&gt;@$2&lt;/a&gt;').replace(/(^|\s)#(\w+)/g,'$1#&lt;a href="http://search.twitter.com/search?q=%23$2"&gt;$2&lt;/a&gt;');
	}
});
</pre><p><em>Note:  you will need to download Aaron Newton&#8217;s JSONP plugin <a
href="http://clientcide.com/js">here</a>.</em></p><p> Parameters include:</p><ul><li><span
class="param">username</span>: Your Twitter user handle.</li></ul><p> Options of the TwitterGitter class include:</p><ul><li><span
class="param">count</span>: <em>(defaults to 2)</em> The number of tweets you would like returned.</li><li><span
class="param">sinceID</span>: <em>(defaults to 1)</em> The baseline for the tweets to be returned.</li><li><span
class="param">link</span>:: <em>(defaults to true)</em> Want the class to linkify URLs, @ replies, and #topics?</li></ul><p> Events include:</p><ul><li><span
class="param">onRequest</span>: The function to execute when the TwitterGitter request is made.</li><li><span
class="param">onComplete</span>: The function to execute when the TwitterGitter request is complete.  This is where you want to put your tweet formatting.</li></ul><h2>Sample&nbsp;Usage</h2><pre class="js">
window.addEvent('domready',function() {
	$('git').addEvent('click',function(e) {
		e.stop();
		$('tweets-here').set('html','');
		//get information
		var myTwitterGitter = new TwitterGitter($('username').value,{
			count: 5,
			onComplete: function(tweets,user) {
				tweets.each(function(tweet,i) {
					new Element('div',{
						html: '&lt;img src="' + user.profile_image_url.replace("\\",'') + '" align="left" alt="' + user.name + '" /&gt; &lt;strong&gt;' + user.name + '&lt;/strong&gt;&lt;br /&gt;' + tweet.text + '&lt;br /&gt;&lt;span&gt;' + tweet.created_at + ' via ' + tweet.source.replace("\\",'') + '&lt;/span&gt;',
						'class': 'tweet clear'
					}).inject('tweets-here');
				});
			}
		}).retrieve();
	});
});
</pre><div
class="actions"> <a
href="http://davidwalsh.name/dw-content/twitter-gitter.php" class="demo">View Demo</a> <a
href="http://davidwalsh.name/js" class="download">Download</a><div
class="clear"></div></div><p>Make sure to check out the demo.  If you happen to use this, be sure to post a link &#8212; I&#8217;d love to see what you&#8217;ve done.  Happy tweeting!</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/mootools-twitter-plugin">MooTools TwitterGitter&nbsp;Plugin</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/mootools-twitter-cookies' rel='bookmark' title='Permanent Link: MooTools TwitterGitter and&nbsp;Cookies'>MooTools TwitterGitter and&nbsp;Cookies</a></li><li><a
href='http://davidwalsh.name/cache-ajax' rel='bookmark' title='Permanent Link: Caching AJAX Results in&nbsp;JavaScript'>Caching AJAX Results in&nbsp;JavaScript</a></li><li><a
href='http://davidwalsh.name/tweetify' rel='bookmark' title='Permanent Link: Implementing String.Tweetify in&nbsp;MooTools'>Implementing String.Tweetify in&nbsp;MooTools</a></li><li><a
href='http://davidwalsh.name/update-twitter-php' rel='bookmark' title='Permanent Link: Update Your Twitter Status Remotely Using&nbsp;PHP'>Update Your Twitter Status Remotely Using&nbsp;PHP</a></li><li><a
href='http://davidwalsh.name/linkify-twitter-feed' rel='bookmark' title='Permanent Link: Linkify Your Twitter&nbsp;Feed'>Linkify Your Twitter&nbsp;Feed</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/mootools-twitter-plugin/feed</wfw:commentRss> <slash:comments>34</slash:comments> </item> <item><title>Script &amp; Style Revamp with Submission&#160;Favelet</title><link>http://davidwalsh.name/script-style-favelet</link> <comments>http://davidwalsh.name/script-style-favelet#comments</comments> <pubDate>Wed, 18 Feb 2009 14:09:50 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Bookmarking / Social]]></category> <category><![CDATA[JavaScript]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=1622</guid> <description><![CDATA[It&#8217;s been six months and some change since the launch of Script &#38; Style and the website is doing extremely well. Traffic continues to rise, our RSS feed subscriber count is close to 4,000, the submissions continue to be quality, and we&#8217;re slowly adding new features to the site. We&#8217;ve recently taken some time to [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/script-style-favelet">Script &#038; Style Revamp with Submission&nbsp;Favelet</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/jquery-favelet-documentation' rel='bookmark' title='Permanent Link: jQuery Code Documentation&nbsp;Favelet'>jQuery Code Documentation&nbsp;Favelet</a></li><li><a
href='http://davidwalsh.name/script-style-exclusive-add-custom-values-wordpress-rss-feed' rel='bookmark' title='Permanent Link: Script &#038; Style Exclusive: Add Custom Values To Your WordPress RSS&nbsp;Feed'>Script &#038; Style Exclusive: Add Custom Values To Your WordPress RSS&nbsp;Feed</a></li><li><a
href='http://davidwalsh.name/mootools-documentation' rel='bookmark' title='Permanent Link: MooTools Documentation Search&nbsp;Favelet'>MooTools Documentation Search&nbsp;Favelet</a></li><li><a
href='http://davidwalsh.name/script-and-style' rel='bookmark' title='Permanent Link: You Script.  You Style.  Introducing Script &#038;&nbsp;Style.'>You Script.  You Style.  Introducing Script &#038;&nbsp;Style.</a></li><li><a
href='http://davidwalsh.name/script-style-feed' rel='bookmark' title='Permanent Link: Add the Script &#038; Style Feed to Your&nbsp;Website'>Add the Script &#038; Style Feed to Your&nbsp;Website</a></li></ol>]]></description> <content:encoded><![CDATA[<p>It&#8217;s been six months and some change since the launch of <a
href="http://scriptandstyle.com">Script &amp; Style</a> and the website is doing extremely well.  Traffic continues to rise, our RSS feed subscriber count is close to 4,000, the submissions continue to be quality, and we&#8217;re slowly adding new features to the site.  We&#8217;ve recently taken some time to revamp the website to continue its growth.</p><p><strong><a
href="http://css-tricks.com/script-style-redesign/">Click here to read Chris Coyier&#8217;s article with regard to the site redesign.</a></strong></p><p>The newest code snippet we&#8217;ve added to enhance your S&amp;S experience is a submission favelet/bookmarklet.  This new favelet allows you to quickly submit the article you&#8217;re reading, no matter what the source, to Script &amp; Style.  All you need to do is select/highlight the text you&#8217;d like to act as the article description and click the favelet.  A new window will appear with the submission screen already filled out for you!</p><div
class="actions"> <a
href="http://davidwalsh.name/dw-content/favelet.php" class="demo">View Demo</a><div
class="clear"></div></div><h2>The Favelet&nbsp;Code</h2><pre class="js">
//favelet modified from:  http://cubicle17.com/post/32941821/bookmarklet-search-netflix
(function()%7Bvar%20d=document,w=window,ds=d.getSelection,ws=w.getSelection,ss=d.selection,e=encodeURIComponent;t=(ws)%3Fws():(ds)%3Fds():(ss)%3Fss.createRange().text:'';t=(t.toString().length)%3Ft:prompt('Please select article description text.','');if(t)%7Ba='http://www.scriptandstyle.com/submit%3Ftitle=' + e(document.title) + '%26url=' + e(window.location) + '%26content=';u=a+e(t);f=function()%7Bx=w.open(u,'nfx','scrollbars=1,toolbar=0,resizable=1,status=1,width=600,height=600');if(!x)w.location.href=u;%7D;if(/Firefox/.test(navigator.userAgent))setTimeout(f,0);else%20f();%7D%7D)();
</pre><p>Don&#8217;t worry about the mess of code.  All you need to do is drag the link to your &#8220;favorites&#8221; toolbar and it will work on any site you visit!</p><div
class="actions"> <a
href="http://davidwalsh.name/dw-content/favelet.php" class="demo">View Demo</a><div
class="clear"></div></div><p>Jump on over to <a
href="http://scriptandstyle.com">Script &amp; Style</a> to check out the new look and be sure to grab the <a
href="javascript:(function()%7Bvar%20d=document,w=window,ds=d.getSelection,ws=w.getSelection,ss=d.selection,e=encodeURIComponent;t=(ws)%3Fws():(ds)%3Fds():(ss)%3Fss.createRange().text:'';t=(t.toString().length)%3Ft:prompt('Please select article description text.','');if(t)%7Ba='http://www.scriptandstyle.com/submit%3Ftitle=' + e(document.title) + '%26url=' + e(window.location) + '%26content=';u=a+e(t);f=function()%7Bx=w.open(u,'nfx','scrollbars=1,toolbar=0,resizable=1,status=1,width=600,height=600');if(!x)w.location.href=u;%7D;if(/Firefox/.test(navigator.userAgent))setTimeout(f,0);else%20f();%7D%7D)();">Script &amp; Style favelet</a>!</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/script-style-favelet">Script &#038; Style Revamp with Submission&nbsp;Favelet</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/jquery-favelet-documentation' rel='bookmark' title='Permanent Link: jQuery Code Documentation&nbsp;Favelet'>jQuery Code Documentation&nbsp;Favelet</a></li><li><a
href='http://davidwalsh.name/script-style-exclusive-add-custom-values-wordpress-rss-feed' rel='bookmark' title='Permanent Link: Script &#038; Style Exclusive: Add Custom Values To Your WordPress RSS&nbsp;Feed'>Script &#038; Style Exclusive: Add Custom Values To Your WordPress RSS&nbsp;Feed</a></li><li><a
href='http://davidwalsh.name/mootools-documentation' rel='bookmark' title='Permanent Link: MooTools Documentation Search&nbsp;Favelet'>MooTools Documentation Search&nbsp;Favelet</a></li><li><a
href='http://davidwalsh.name/script-and-style' rel='bookmark' title='Permanent Link: You Script.  You Style.  Introducing Script &#038;&nbsp;Style.'>You Script.  You Style.  Introducing Script &#038;&nbsp;Style.</a></li><li><a
href='http://davidwalsh.name/script-style-feed' rel='bookmark' title='Permanent Link: Add the Script &#038; Style Feed to Your&nbsp;Website'>Add the Script &#038; Style Feed to Your&nbsp;Website</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/script-style-favelet/feed</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Get a URL&#8217;s de.licio.us Count Using&#160;JavaScript</title><link>http://davidwalsh.name/delicious-url-count-javascript</link> <comments>http://davidwalsh.name/delicious-url-count-javascript#comments</comments> <pubDate>Mon, 12 Jan 2009 14:02:02 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[APIs]]></category> <category><![CDATA[Bookmarking / Social]]></category> <category><![CDATA[JavaScript]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=1206</guid> <description><![CDATA[When I put together my new theme, I made it a goal to integrate more of the social bookmarking websites. The benefit to me is that my articles and website will get more attention. The benefit to you is that you can save / bookmark / share my articles easier. I&#8217;ve found the most useful [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/delicious-url-count-javascript">Get a URL&#8217;s de.licio.us Count Using&nbsp;JavaScript</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/implementing-array-count-method-javascript' rel='bookmark' title='Permanent Link: Implementing an Array.count() Method in&nbsp;JavaScript'>Implementing an Array.count() Method in&nbsp;JavaScript</a></li><li><a
href='http://davidwalsh.name/cache-feedburner' rel='bookmark' title='Permanent Link: Retrieve, Cache, and Display Your FeedBurner Subscriber&nbsp;Count'>Retrieve, Cache, and Display Your FeedBurner Subscriber&nbsp;Count</a></li><li><a
href='http://davidwalsh.name/mootools-twitter-plugin' rel='bookmark' title='Permanent Link: MooTools TwitterGitter&nbsp;Plugin'>MooTools TwitterGitter&nbsp;Plugin</a></li><li><a
href='http://davidwalsh.name/get-reddit-score' rel='bookmark' title='Permanent Link: Get a URL&#8217;s Reddit Score Using PHP and&nbsp;JSON'>Get a URL&#8217;s Reddit Score Using PHP and&nbsp;JSON</a></li><li><a
href='http://davidwalsh.name/github-markdown' rel='bookmark' title='Permanent Link: Using the GitHub API and PHP to Get Repository&nbsp;Information'>Using the GitHub API and PHP to Get Repository&nbsp;Information</a></li></ol>]]></description> <content:encoded><![CDATA[<p>When I put together my new theme, I made it a goal to integrate more of the social bookmarking websites.  The benefit to me is that my articles and website will get more attention.  The benefit to you is that you can save / bookmark / share my articles easier.</p><p>I&#8217;ve found the most useful bookmarking site to be <a
href="http://delicious.com">de.licio.us</a>.  De.licio.us provides a very simple API which allows me access information about who has bookmarked my articles quickly.  Here&#8217;s how to pull the bookmark count for a specified URL.</p><h2>The&nbsp;JavaScript</h2><pre class="js">
&lt;script type="text/javascript"&gt;
//the callback -- what do we do with the json response?
function get_delicious_count(info) { 
	//get the number of saves
	var num = info[0].total_posts
	//if none, do nothing
	if(!num) return;
	//if some, I add the number to the end of my link, like at the top of every one of my article posts.
	return $('delic').set({ 
		'text': $('delic').get('text') + ' (' + num + ')',
		'title': num + ' people found this post delicious!'
	});
}
&lt;/script&gt;


&lt;script src='http://badges.del.icio.us/feeds/json/url/data?url=http://davidwalsh.name/delicious-url-count-javascript&#038;callback=get_delicious_count'&gt;&lt;/script&gt;
</pre><p> You need to place your function code before the second JavaScript tag which goes to de.licio.us to get the statistic information.  Note that you need to provide the URL to check and a callback function which will handle the data.</p><p>When you receive the data, you can do whatever you want to format it.  On this site, I get the count and append it to the &#8220;de.licio.us&#8221; link at the top of the article.  How would you use this data?</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/delicious-url-count-javascript">Get a URL&#8217;s de.licio.us Count Using&nbsp;JavaScript</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/implementing-array-count-method-javascript' rel='bookmark' title='Permanent Link: Implementing an Array.count() Method in&nbsp;JavaScript'>Implementing an Array.count() Method in&nbsp;JavaScript</a></li><li><a
href='http://davidwalsh.name/cache-feedburner' rel='bookmark' title='Permanent Link: Retrieve, Cache, and Display Your FeedBurner Subscriber&nbsp;Count'>Retrieve, Cache, and Display Your FeedBurner Subscriber&nbsp;Count</a></li><li><a
href='http://davidwalsh.name/mootools-twitter-plugin' rel='bookmark' title='Permanent Link: MooTools TwitterGitter&nbsp;Plugin'>MooTools TwitterGitter&nbsp;Plugin</a></li><li><a
href='http://davidwalsh.name/get-reddit-score' rel='bookmark' title='Permanent Link: Get a URL&#8217;s Reddit Score Using PHP and&nbsp;JSON'>Get a URL&#8217;s Reddit Score Using PHP and&nbsp;JSON</a></li><li><a
href='http://davidwalsh.name/github-markdown' rel='bookmark' title='Permanent Link: Using the GitHub API and PHP to Get Repository&nbsp;Information'>Using the GitHub API and PHP to Get Repository&nbsp;Information</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/delicious-url-count-javascript/feed</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>6 Reasons I&#8217;m Glad I Joined&#160;Twitter</title><link>http://davidwalsh.name/reasons-join-twitter</link> <comments>http://davidwalsh.name/reasons-join-twitter#comments</comments> <pubDate>Thu, 02 Oct 2008 12:57:18 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Bookmarking / Social]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=478</guid> <description><![CDATA[For the longest time I refused to do the Twitter thing. Looking back it seems stupid but I just would not join the craze. Two months and 350 updates later, I&#8217;m a proud card-carrying Twitter fanboy. Here are 6 reasons I&#8217;m glad I joined Twitter. I get more reader&#160;interaction I recognize that many of the [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/reasons-join-twitter">6 Reasons I&#8217;m Glad I Joined&nbsp;Twitter</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/follow-mootools-twitter' rel='bookmark' title='Permanent Link: Following MooTools on&nbsp;Twitter'>Following MooTools on&nbsp;Twitter</a></li><li><a
href='http://davidwalsh.name/joined-web' rel='bookmark' title='Permanent Link: Just Joined Who&#8217;s&nbsp;Web'>Just Joined Who&#8217;s&nbsp;Web</a></li><li><a
href='http://davidwalsh.name/david-walsh-twitter' rel='bookmark' title='Permanent Link: David Walsh on&nbsp;Twitter'>David Walsh on&nbsp;Twitter</a></li><li><a
href='http://davidwalsh.name/twitter-emulation-mootools-php' rel='bookmark' title='Permanent Link: NetTuts Exclusive:  Twitter Emulation Using MooTools 1.2 and&nbsp;PHP'>NetTuts Exclusive:  Twitter Emulation Using MooTools 1.2 and&nbsp;PHP</a></li><li><a
href='http://davidwalsh.name/twitter-friendships' rel='bookmark' title='Permanent Link: Test Twitter Friendships with&nbsp;PHP'>Test Twitter Friendships with&nbsp;PHP</a></li></ol>]]></description> <content:encoded><![CDATA[<p>For the longest time I refused to do the Twitter thing.  Looking back it seems stupid but I just would not join the craze.  Two months and 350 updates later, I&#8217;m a proud card-carrying Twitter fanboy.  Here are 6 reasons I&#8217;m glad I joined Twitter.</p><h2>I get more reader&nbsp;interaction</h2><p>I recognize that many of the readers of this blog follow me on Twitter.  I love when I get comments on my articles and that has spilled into my Twitter account.  Every once in a while I solicit feedback and there&#8217;s never a shortage of responses.  I value the time people give me when they respond so if any of you read this, thank you for responding to my quips.</p><h2>I need a place I can vent to fellow web&nbsp;developers</h2><p>When I see that a customer who required CMS capabilities has completely messed up their website by using 28 colors and sizes of text or another customer has a 12 year old managing their website, I simply MUST share this with fellow developers.</p><h2>There&#8217;s no better place to throw a quick razz at web&nbsp;friends</h2><p>While developers usually respect each others choices in tools (PHP vs. Rails, MooTools vs. jQuery), I couldn&#8217;t, however, live with myself if I didn&#8217;t take a quick, harmless shot at jQuery and Firefox team member <a
href="http://twitter.com/reybango">@reybango</a>.  Of course, he never hesitates to throw a shot my way too! Just a little fun to help us get through the day.</p><h2>Sometimes you just want to make a pithy&nbsp;comment</h2><p>Whether we know it or not, we&#8217;re all smart asses.  Really.  And every once in a while we need to rail off a relatively meaningless, witty 140 character or less sentence.  Twitter is the perfect place to do so.</p><h2>It&#8217;s fun to hear what other programmers think about non-web topics (aka devs have&nbsp;personalities?)</h2><p>Web is a huge and ever growing topic, but I don&#8217;t always want to hear other developers talk about it.  What does <a
href="http://twitter.com/chriscoyier">@chriscoyier </a>think about <a
href="http://twitter.com/chriscoyier/statuses/942045472">peanut butter vendors</a>? <a
href="http://twitter.com/emwendelin">@emwendelin</a> spent a night with his uncle &#8212; <a
href="http://twitter.com/emwendelin/statuses/938132472">how did it go</a>?  It&#8217;s good to get a taste of what other techies are really like away from the computer.</p><h2>You get 140 characters or&nbsp;less</h2><p>I don&#8217;t have time to write novels and I don&#8217;t want to read yours.  The 140 character limit forces me (and you) to be brief and creative with your messages and that&#8217;s the best thing in the world when I&#8217;m busy but need a little intrigue.</p><p>Did I miss something?  Share!</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/reasons-join-twitter">6 Reasons I&#8217;m Glad I Joined&nbsp;Twitter</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/follow-mootools-twitter' rel='bookmark' title='Permanent Link: Following MooTools on&nbsp;Twitter'>Following MooTools on&nbsp;Twitter</a></li><li><a
href='http://davidwalsh.name/joined-web' rel='bookmark' title='Permanent Link: Just Joined Who&#8217;s&nbsp;Web'>Just Joined Who&#8217;s&nbsp;Web</a></li><li><a
href='http://davidwalsh.name/david-walsh-twitter' rel='bookmark' title='Permanent Link: David Walsh on&nbsp;Twitter'>David Walsh on&nbsp;Twitter</a></li><li><a
href='http://davidwalsh.name/twitter-emulation-mootools-php' rel='bookmark' title='Permanent Link: NetTuts Exclusive:  Twitter Emulation Using MooTools 1.2 and&nbsp;PHP'>NetTuts Exclusive:  Twitter Emulation Using MooTools 1.2 and&nbsp;PHP</a></li><li><a
href='http://davidwalsh.name/twitter-friendships' rel='bookmark' title='Permanent Link: Test Twitter Friendships with&nbsp;PHP'>Test Twitter Friendships with&nbsp;PHP</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/reasons-join-twitter/feed</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Digg Homepage!!&#160;Woohooo!!</title><link>http://davidwalsh.name/digg-homepage-woohooo</link> <comments>http://davidwalsh.name/digg-homepage-woohooo#comments</comments> <pubDate>Thu, 28 Feb 2008 18:42:17 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Blog]]></category> <category><![CDATA[Bookmarking / Social]]></category><guid
isPermaLink="false">http://davidwalsh.name/digg-homepage-woohooo/</guid> <description><![CDATA[I made the Digg homepage for the first time! Sweet. Nothing like a front page promotion! Subsequently, DZone&#8217;s server crashed quickly. Ooops!Follow Me! Twitter &#124; Facebook &#124; LinkedIn &#124; MooTools Forge. Full David Walsh Blog Post: Digg Homepage!!&#160;Woohooo!! Related posts:Create Digg URLs Using&#160;PHP 6 Reason Why Digg Is Losing&#160;Me One Year Anniversary&#160;Today! Digg-Style Dynamic Share [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/digg-homepage-woohooo">Digg Homepage!!&nbsp;Woohooo!!</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/create-digg-url-php' rel='bookmark' title='Permanent Link: Create Digg URLs Using&nbsp;PHP'>Create Digg URLs Using&nbsp;PHP</a></li><li><a
href='http://davidwalsh.name/6-reason-why-digg-is-losing-me' rel='bookmark' title='Permanent Link: 6 Reason Why Digg Is Losing&nbsp;Me'>6 Reason Why Digg Is Losing&nbsp;Me</a></li><li><a
href='http://davidwalsh.name/one-year-anniversary' rel='bookmark' title='Permanent Link: One Year Anniversary&nbsp;Today!'>One Year Anniversary&nbsp;Today!</a></li><li><a
href='http://davidwalsh.name/digg-share-widget' rel='bookmark' title='Permanent Link: Digg-Style Dynamic Share Widget Using&nbsp;MooTools'>Digg-Style Dynamic Share Widget Using&nbsp;MooTools</a></li><li><a
href='http://davidwalsh.name/dojo-digg' rel='bookmark' title='Permanent Link: Digg-Style Dynamic Share Widget Using the Dojo&nbsp;Toolkit'>Digg-Style Dynamic Share Widget Using the Dojo&nbsp;Toolkit</a></li></ol>]]></description> <content:encoded><![CDATA[<p><img
src="http://davidwalsh.name/dw-content/digg-guy.jpg" class="image" /></p><p>I made the Digg homepage for the first time!  Sweet.  Nothing like a front page promotion!</p><p><em>Subsequently, DZone&#8217;s server crashed quickly.  Ooops!</em></p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/digg-homepage-woohooo">Digg Homepage!!&nbsp;Woohooo!!</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/create-digg-url-php' rel='bookmark' title='Permanent Link: Create Digg URLs Using&nbsp;PHP'>Create Digg URLs Using&nbsp;PHP</a></li><li><a
href='http://davidwalsh.name/6-reason-why-digg-is-losing-me' rel='bookmark' title='Permanent Link: 6 Reason Why Digg Is Losing&nbsp;Me'>6 Reason Why Digg Is Losing&nbsp;Me</a></li><li><a
href='http://davidwalsh.name/one-year-anniversary' rel='bookmark' title='Permanent Link: One Year Anniversary&nbsp;Today!'>One Year Anniversary&nbsp;Today!</a></li><li><a
href='http://davidwalsh.name/digg-share-widget' rel='bookmark' title='Permanent Link: Digg-Style Dynamic Share Widget Using&nbsp;MooTools'>Digg-Style Dynamic Share Widget Using&nbsp;MooTools</a></li><li><a
href='http://davidwalsh.name/dojo-digg' rel='bookmark' title='Permanent Link: Digg-Style Dynamic Share Widget Using the Dojo&nbsp;Toolkit'>Digg-Style Dynamic Share Widget Using the Dojo&nbsp;Toolkit</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/digg-homepage-woohooo/feed</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>PHP DZone Story Information&#160;Grabber</title><link>http://davidwalsh.name/php-dzone-information-grabber</link> <comments>http://davidwalsh.name/php-dzone-information-grabber#comments</comments> <pubDate>Mon, 21 Jan 2008 14:02:26 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Bookmarking / Social]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://davidwalsh.name/php-dzone-information-grabber/</guid> <description><![CDATA[Having a user submit a post to DZone is great for several reasons: A reader thinks enough of what you wrote to want to share it with others. Your blog gets more readership. Your blog revenue increases. The inlink and traffic boost improve your search engine rank and Alexa ranks. The new visitors may post [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/php-dzone-information-grabber">PHP DZone Story Information&nbsp;Grabber</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/google-spy-php-total-search-results' rel='bookmark' title='Permanent Link: Google Grabber &#8212; Using PHP to Find Out How Many Pages Your Domain Has Listed in&nbsp;Google'>Google Grabber &#8212; Using PHP to Find Out How Many Pages Your Domain Has Listed in&nbsp;Google</a></li><li><a
href='http://davidwalsh.name/php-imdb-information-grabber' rel='bookmark' title='Permanent Link: PHP IMDB Information&nbsp;Grabber'>PHP IMDB Information&nbsp;Grabber</a></li><li><a
href='http://davidwalsh.name/msn-live-search-result-grabber' rel='bookmark' title='Permanent Link: MSN Live Search Result&nbsp;Grabber'>MSN Live Search Result&nbsp;Grabber</a></li><li><a
href='http://davidwalsh.name/yahoo-seo-domain-result-grabber' rel='bookmark' title='Permanent Link: Yahoo SEO Domain Result&nbsp;Grabber'>Yahoo SEO Domain Result&nbsp;Grabber</a></li><li><a
href='http://davidwalsh.name/technorati-rank-authority' rel='bookmark' title='Permanent Link: Technorati Grabber:  Get Your Technorati Rank and&nbsp;Authority'>Technorati Grabber:  Get Your Technorati Rank and&nbsp;Authority</a></li></ol>]]></description> <content:encoded><![CDATA[<p>Having a user submit a post to DZone is great for several reasons:</p><ul><li>A reader thinks enough of what you wrote to want to share it with others.</li><li>Your blog gets more readership.</li><li>Your blog revenue increases.</li><li>The inlink and traffic boost improve your search engine rank and Alexa ranks.</li><li>The new visitors may post comments, which may enhance your article.</li></ul><p>Surely there are numerous more.  Thus, it&#8217;s important to keep track of the information about your article provided by DZone.  Luckily, using some quick PHP code, you can grab relevant information right from DZone.  All you need to know is the DZone URL that features your article.</p><h2>The&nbsp;Code</h2><pre  class="php">/* step 1:  download the page content */
$dzone_content = file_get_contents('http://www.dzone.com/links/f_programming_fast_guide.html');

/* step 2:  parse it! */
$votes_up = get_match('/class="ldStats-up"&gt;(.*)&lt;\/li&gt;/isU',$dzone_content);
$votes_down = get_match('/class="ldStats-down"&gt;(.*)&lt;\/li&gt;/isU',$dzone_content);
$views = get_match('/class="ldStats-views"&gt;(.*)&lt;\/li&gt;/isU',$dzone_content);
$clicks = get_match('/class="ldStats-clicks"&gt;(.*)&lt;\/li&gt;/isU', $dzone_content);

/* step 3:  echo */
echo 'Up Votes: ',$votes_up,'&lt;br /&gt;';
echo 'Down Votes: ',$votes_down,'&lt;br /&gt;';
echo 'Views: ',$views,'&lt;br /&gt;';
echo 'Clicks: ',$clicks,'&lt;br /&gt;';

/* helper:  does regex */
function get_match($regex,$content)
{
	preg_match($regex,$content,$matches);
	return $matches[1];
}</pre><p>One note:  each usage of this script increments DZone&#8217;s &#8220;views&#8221; stat, so if you plan on keeping accurate statistics, record the number of requests to the page and subtract that from the total.</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/php-dzone-information-grabber">PHP DZone Story Information&nbsp;Grabber</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/google-spy-php-total-search-results' rel='bookmark' title='Permanent Link: Google Grabber &#8212; Using PHP to Find Out How Many Pages Your Domain Has Listed in&nbsp;Google'>Google Grabber &#8212; Using PHP to Find Out How Many Pages Your Domain Has Listed in&nbsp;Google</a></li><li><a
href='http://davidwalsh.name/php-imdb-information-grabber' rel='bookmark' title='Permanent Link: PHP IMDB Information&nbsp;Grabber'>PHP IMDB Information&nbsp;Grabber</a></li><li><a
href='http://davidwalsh.name/msn-live-search-result-grabber' rel='bookmark' title='Permanent Link: MSN Live Search Result&nbsp;Grabber'>MSN Live Search Result&nbsp;Grabber</a></li><li><a
href='http://davidwalsh.name/yahoo-seo-domain-result-grabber' rel='bookmark' title='Permanent Link: Yahoo SEO Domain Result&nbsp;Grabber'>Yahoo SEO Domain Result&nbsp;Grabber</a></li><li><a
href='http://davidwalsh.name/technorati-rank-authority' rel='bookmark' title='Permanent Link: Technorati Grabber:  Get Your Technorati Rank and&nbsp;Authority'>Technorati Grabber:  Get Your Technorati Rank and&nbsp;Authority</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/php-dzone-information-grabber/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>5 Usability Suggestions For&#160;DZone.com</title><link>http://davidwalsh.name/usability-suggestions-dzonecom</link> <comments>http://davidwalsh.name/usability-suggestions-dzonecom#comments</comments> <pubDate>Wed, 05 Dec 2007 13:27:28 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Bookmarking / Social]]></category> <category><![CDATA[Usability / Accessibility]]></category><guid
isPermaLink="false">http://davidwalsh.name/usability-suggestions-dzonecom/</guid> <description><![CDATA[DZone.com has quickly become one of my favorite programming-related internet websites. DZone provides a wealth of fresh, interesting development-related links to articles, announcements, and code snippets. DZone also provides bloggers a great way to get their articles the credit and attention they deserve. Unlike Digg, DZone has a specific target audience and since I fall [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/usability-suggestions-dzonecom">5 Usability Suggestions For&nbsp;DZone.com</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/php-dzone-information-grabber' rel='bookmark' title='Permanent Link: PHP DZone Story Information&nbsp;Grabber'>PHP DZone Story Information&nbsp;Grabber</a></li><li><a
href='http://davidwalsh.name/the-need-to-blog' rel='bookmark' title='Permanent Link: The Need To&nbsp;Blog'>The Need To&nbsp;Blog</a></li><li><a
href='http://davidwalsh.name/script-and-style' rel='bookmark' title='Permanent Link: You Script.  You Style.  Introducing Script &#038;&nbsp;Style.'>You Script.  You Style.  Introducing Script &#038;&nbsp;Style.</a></li><li><a
href='http://davidwalsh.name/updates-enhancements-ideas' rel='bookmark' title='Permanent Link: Not Only Updates, But Enhancements!  Any&nbsp;Ideas?'>Not Only Updates, But Enhancements!  Any&nbsp;Ideas?</a></li><li><a
href='http://davidwalsh.name/fix-anchor-urls-mootools' rel='bookmark' title='Permanent Link: Fix Anchor URLs Using MooTools&nbsp;1.2'>Fix Anchor URLs Using MooTools&nbsp;1.2</a></li></ol>]]></description> <content:encoded><![CDATA[<p>DZone.com has quickly become one of my favorite programming-related internet websites.  DZone provides a wealth of fresh, interesting development-related links to articles, announcements, and code snippets.  DZone also provides bloggers a great way to get their articles the credit and attention they deserve.  Unlike Digg, DZone has a specific target audience and since I fall into that audience, I continue to be a loyal visitor to the website.</p><p>My appreciation for the DZone website doesn&#8217;t, however, prevent me from seeing some big holes in DZone.  Usability is a major concern among DZone users and it&#8217;s clear there are some issues on the website that need attention.  I&#8217;ve compiled a list of usability issues on DZone in the hopes that other DZone users will comment  and add to this post.  This post isn&#8217;t a giant bitchfest about DZone &#8212; it&#8217;s a place where users can suggest solutions to issues they see on the website.</p><h2>Remember My Place In The Article&nbsp;List</h2><p>DZone uses an unique system for browsing its list of articles:  when your scrollbar hits the bottom of the page, you see an image that tells you that more articles are coming and viola &#8212; the power of AJAX places more articles at the end of the page.  A system like this has many positives:  less bandwidth usage, the &#8220;wow&#8221; factor, and quicker load time.  The problem is that if you refresh the page or click into an article and click back, you lose your &#8220;place&#8221; in the list.  Essentially, if you click on the 51st article in the list and click your back button, you need to scroll down to the bottom of the page and wait for two more &#8220;cycles&#8221; of articles to load into the page.  Keeping your place in the article list has become a task.</p><p>My solution is to save the user&#8217;s place in the list when you make the AJAX call.  Saving the user&#8217;s place in the list should be relatively easy &#8212; simply use a session variable.  When the index page loads (from either a new visit or from someone clicking &#8220;back&#8221;), simply request the number of articles plus a chosen page increment (25) that&#8217;s recorded in the session.  If no value is present in the session, use your default of 1 &#8211; 25.</p><h2>Create A Rising Links&nbsp;Page</h2><p><img
src="http://davidwalsh.name/dw-content/dzone-overlap.jpg" class="image" /></p><p>The &#8220;Rising Links&#8221; tab on the left is great.  I can see which articles are likely the most worth reading by the number of views and votes an article receives.  I can quickly give an up or down vote to the article and move on.  I can also request the next page worth of rising links with one click.  The ease of use of the functionality within the tab is great. The main issue is that a user with a small vertical resolution (like myself with my laptop &#8212; 1280&#215;800) can&#8217;t see most of the rising links because the advertisement on the left is z-indexed above the articles.  Quite frankly, I can&#8217;t use DZone on my laptop.</p><p>My solution is to create a separate &#8220;Rising Links&#8221; page.  This will prevent the advertisement on the bottom left side of the screen from obstructing my view of the popular articles.</p><h2>Allow &#8220;Save&#8221; &amp; &#8220;Share&#8221; Links To Be Accessed Via Tab On The&nbsp;Homepage</h2><p>Any frequent visitor to my site knows that I post a summary of great programming articles and announcements in my <a
href="http://davidwalsh.name/sugar/link/" target="_blank" rel="nofollow">Weekend Links</a> section.  DZone has always been a great place for me to find these articles and the &#8220;save&#8221; feature has been an especially useful function of the DZone website.  Unfortunately, neither &#8220;Save&#8221; or &#8220;Share&#8221; are accessible by using the [tab] key on the homepage.  Pressing &#8220;tab&#8221; skips over &#8220;Save&#8221; and &#8220;Share&#8221;, from the number of comments to the first &#8220;tag.&#8221;</p><p>Unfortunately I don&#8217;t have a solution to prescribe &#8212; I&#8217;m confused as to why both Firefox and Internet Explorer skip over these two links.</p><h2>Place More Space Between The Affiliate Tabs And The &#8220;Rising Links&#8221;/&#8221;Popular&#8221;/&#8221;Tags&#8221;&nbsp;Tabs</h2><p>Whenever I move my mouse toward the &#8220;Rising Links&#8221; area of the page, I need to be careful not to trip the Sun and Nexaweb tabs.  Why?  Because I don&#8217;t want the tab to drop down and cover up all of the content I was <strong>trying</strong> to get to.  I have no interest in the content of these advertiser / affiliate tabs.</p><p>My solutions is to add top margin to the &#8220;Rising Links,&#8221; &#8220;Popular,&#8221; and &#8220;Tags&#8221; tabs.  I&#8217;ll check out the affiliate links if I&#8217;m interested.</p><h2>Make The &#8220;Send&#8221; Link&nbsp;Modal</h2><p>I send articles I&#8217;ve found on DZone to my friends often, but why do I have to go to another page to do it?  AJAX and JavaScript functions are used all over your website &#8212; why not here?</p><p>My solution is to make the &#8220;Send&#8221; link page content go to a modal window without changing pages.  A modal window will allow me to still see (although faintly) the article description which will allow me to write a better summary of the article to my friends.  A better summary means more clicks into the DZone website.</p><p><em>At the time of writing this article, clicking the &#8220;Cancel&#8221; button on the &#8220;Share This Link&#8221; screen (email) triggers a 404 error.  Ooops!  May want to fix that!</em></p><p>The above detail what I have observed on DZone.  Coupled with my proposed solutions, I belive DZone can easily be improved.   If you have any other suggestion or solutions, please contribute by way of the comment box below.  Remember, complaints don&#8217;t improve the site &#8212; solutions do.</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/usability-suggestions-dzonecom">5 Usability Suggestions For&nbsp;DZone.com</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/php-dzone-information-grabber' rel='bookmark' title='Permanent Link: PHP DZone Story Information&nbsp;Grabber'>PHP DZone Story Information&nbsp;Grabber</a></li><li><a
href='http://davidwalsh.name/the-need-to-blog' rel='bookmark' title='Permanent Link: The Need To&nbsp;Blog'>The Need To&nbsp;Blog</a></li><li><a
href='http://davidwalsh.name/script-and-style' rel='bookmark' title='Permanent Link: You Script.  You Style.  Introducing Script &#038;&nbsp;Style.'>You Script.  You Style.  Introducing Script &#038;&nbsp;Style.</a></li><li><a
href='http://davidwalsh.name/updates-enhancements-ideas' rel='bookmark' title='Permanent Link: Not Only Updates, But Enhancements!  Any&nbsp;Ideas?'>Not Only Updates, But Enhancements!  Any&nbsp;Ideas?</a></li><li><a
href='http://davidwalsh.name/fix-anchor-urls-mootools' rel='bookmark' title='Permanent Link: Fix Anchor URLs Using MooTools&nbsp;1.2'>Fix Anchor URLs Using MooTools&nbsp;1.2</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/usability-suggestions-dzonecom/feed</wfw:commentRss> <slash:comments>7</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 142/393 queries in 5.055 seconds using disk

Served from: davidwalsh.name @ 2010-09-02 23:47:32 -->