<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2romanianfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>scribu</title>
	
	<link>http://scribu.net</link>
	<description>propria subcultura</description>
	<lastBuildDate>Sat, 11 Jul 2009 14:25:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /><image><link>http://scribu.net</link><url>http://scribu.net/favicon.ico</url><title>scribu.net</title></image><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/scribu" type="application/rss+xml" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">scribu</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fscribu" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fscribu" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.bloglines.com/sub/http://feeds.feedburner.com/scribu" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fscribu" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fscribu" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fscribu" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.addtoany.com/?linkname=scribu&amp;linkurl=http%3A%2F%2Ffeeds.feedburner.com%2Fscribu&amp;type=feed" src="http://www.addtoany.com/addfr-b.gif">Add to Any Feed Reader</feedburner:feedFlare><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>The Right Way To Add Custom Quicktags</title>
		<link>http://scribu.net/wordpress/right-way-to-add-custom-quicktags.html</link>
		<comments>http://scribu.net/wordpress/right-way-to-add-custom-quicktags.html#comments</comments>
		<pubDate>Sat, 11 Jul 2009 12:18:06 +0000</pubDate>
		<dc:creator>scribu</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://scribu.net/?p=519</guid>
		<description><![CDATA[Ever since WordPress introduced quicktags, people have been wanting to customize them. Naturally, a lot of tutorials popped up, demonstrating how to do this. The problem is that all of them require that you edit quicktags.js.
But it doesn&#8217;t have to be that way now, since newer versions of WP have a script loading API. So [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since WordPress introduced quicktags, people have been wanting to customize them. Naturally, a lot of <a href="http://lorelle.wordpress.com/2006/03/31/customizing-your-wordpress-quicktag-buttons/">tutorials</a> popped up, demonstrating how to do this. The problem is that <em>all</em> of them require that you edit quicktags.js.</p>
<p>But it doesn&#8217;t have to be that way now, since newer versions of WP have a script loading API. So here&#8217;s a better way to do it, without modifying any core files:</p>
<p>First, we make a basic plugin file, where we tell WP to load some javascript, right after loading the quicktags script:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Plugin Name: My Custom Quicktags
*/</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'admin_print_scripts'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my_custom_quicktags'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">function</span> my_custom_quicktags<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	wp_enqueue_script<span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">'my_custom_quicktags'</span><span style="color: #339933;">,</span>
		plugins_dir_url<span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">__FILE__</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'my-custom-quicktags.js'</span><span style="color: #339933;">,</span>
		<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'quicktags'</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Now, instead of modifying quicktags.js, we add our quicktag code in a separate file:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">edButtons<span style="color: #009900;">&#91;</span>edButtons.<span style="color: #660066;">length</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> 
<span style="color: #003366; font-weight: bold;">new</span> edButton<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'sup'</span>
<span style="color: #339933;">,</span><span style="color: #3366CC;">'sup'</span>
<span style="color: #339933;">,</span><span style="color: #3366CC;">'&lt;sup&gt;'</span>
<span style="color: #339933;">,</span><span style="color: #3366CC;">'&lt;/sup&gt;'</span>
<span style="color: #339933;">,</span><span style="color: #3366CC;">''</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Feel free to modify this to suit your needs.</p>
<p>The benefit of this method is that when you upgrade WordPress, your quicktag(s) will still be there.</p>
<p>I&#8217;ve made a .zip with these two files, which you can download and install as a regular plugin. It has been tested on WordPress 2.8.1 and 2.7.1.</p>
<p><a class="button download" href="http://scribu.net/files/my-custom-quicktags.zip">Download</a></p>
<p>I&#8217;d love to know what quicktags you make with this tutorial, so feel free to share in the comments.</p>
<p><strong>Update</strong>: It seems someone has taken this a step further, with the <a href="http://wordpress.org/extend/plugins/post-editor-buttons/">Post Edit Buttons</a> plugin. More power to him <img src='http://scribu.net/wp/wp-content/plugins/ym_smilies/images/yahoo_smiley.gif' alt='&#58;&#41; ' class='wp-smiley' width='18' height='18' title='&#58;&#41; ' /></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/scribu?a=n-4WDp_QoFk:_lWaXkIDSg4:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/scribu?i=n-4WDp_QoFk:_lWaXkIDSg4:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=n-4WDp_QoFk:_lWaXkIDSg4:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/scribu?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=n-4WDp_QoFk:_lWaXkIDSg4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/scribu?i=n-4WDp_QoFk:_lWaXkIDSg4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=n-4WDp_QoFk:_lWaXkIDSg4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/scribu?i=n-4WDp_QoFk:_lWaXkIDSg4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=n-4WDp_QoFk:_lWaXkIDSg4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/scribu?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/scribu/~4/n-4WDp_QoFk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://scribu.net/wordpress/right-way-to-add-custom-quicktags.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Community Appreciation</title>
		<link>http://scribu.net/wordpress/wordpress-community-appreciation.html</link>
		<comments>http://scribu.net/wordpress/wordpress-community-appreciation.html#comments</comments>
		<pubDate>Fri, 10 Jul 2009 21:07:09 +0000</pubDate>
		<dc:creator>scribu</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[appreciation]]></category>

		<guid isPermaLink="false">http://scribu.net/?p=517</guid>
		<description><![CDATA[I read an interesting post today about WordPress plugin users being ungrateful.
To be honest, I don&#8217;t know what Jeff (the author of that post) is talking about. All the people that leave comments here have a grateful attitude, or are at least polite.
Actually, I want to thank them:

 the people who report bugs or post [...]]]></description>
			<content:encoded><![CDATA[<p>I read an interesting post today about <a href="http://weblogtoolscollection.com/archives/2009/07/10/is-wordpress-a-thankless-community/">WordPress plugin users being ungrateful</a>.</p>
<p>To be honest, I don&#8217;t know what Jeff (the author of that post) is talking about. All the people that leave comments here have a grateful attitude, or are at least polite.</p>
<p>Actually, I want to thank them:</p>
<ul>
<li> the people who report bugs or post suggestions</li>
<li> the people who make translations</li>
<li> the people who spread the good word on their sites, on twitter etc.</li>
<li> the people who simply make a small donation</li>
<li> the people who offer me paid work</li>
</ul>
<p>You guys rock! This site would probably not even be here, if it weren&#8217;t for you. Thanks!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/scribu?a=H0gbx8oXwoo:p4kr0eTPPIo:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/scribu?i=H0gbx8oXwoo:p4kr0eTPPIo:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=H0gbx8oXwoo:p4kr0eTPPIo:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/scribu?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=H0gbx8oXwoo:p4kr0eTPPIo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/scribu?i=H0gbx8oXwoo:p4kr0eTPPIo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=H0gbx8oXwoo:p4kr0eTPPIo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/scribu?i=H0gbx8oXwoo:p4kr0eTPPIo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=H0gbx8oXwoo:p4kr0eTPPIo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/scribu?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/scribu/~4/H0gbx8oXwoo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://scribu.net/wordpress/wordpress-community-appreciation.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Custom Field Taxonomies: Version 1.3</title>
		<link>http://scribu.net/wordpress/custom-field-taxonomies/cft-1-3.html</link>
		<comments>http://scribu.net/wordpress/custom-field-taxonomies/cft-1-3.html#comments</comments>
		<pubDate>Thu, 09 Jul 2009 14:55:33 +0000</pubDate>
		<dc:creator>scribu</dc:creator>
				<category><![CDATA[Custom Field Taxonomies]]></category>

		<guid isPermaLink="false">http://scribu.net/?p=516</guid>
		<description><![CDATA[This version adds two query options:
OR query
?fruit=apple,orange,pair
will match all posts that have the fruit field set to apple OR orange OR pair.
AND query
?color=red+orange+yellow
will match posts that have 3 color fields: one with red, one with orange and one wih yellow.
These capabilities are disabled by default. Before you enable them from Posts -> CF Taxnomies, a [...]]]></description>
			<content:encoded><![CDATA[<p>This version adds two query options:</p>
<h4>OR query</h4>
<p><code>?fruit=apple,orange,pair</code></p>
<p>will match all posts that have the fruit field set to apple OR orange OR pair.</p>
<h4>AND query</h4>
<p><code>?color=red+orange+yellow</code></p>
<p>will match posts that have 3 color fields: one with red, one with orange and one wih yellow.</p>
<p>These capabilities are disabled by default. Before you enable them from Posts -> CF Taxnomies, a word of <strong>caution</strong>:</p>
<p>If some of your field values have commas &#8216;,&#8217; character in them, don&#8217;t enable the OR query.</p>
<p>Also, if some of the field values have spaces &#8216; &#8216; in them, don&#8217;t enable the AND query.</p>
<p>Currently, you can&#8217;t enable both the AND query and the &#8220;Show posts that don&#8217;t match all key=value pairs&#8221; option. This will probably be fixed in the future.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/scribu?a=ZmYAV6cogKQ:Ckgg3FiMqsc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/scribu?i=ZmYAV6cogKQ:Ckgg3FiMqsc:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=ZmYAV6cogKQ:Ckgg3FiMqsc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/scribu?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=ZmYAV6cogKQ:Ckgg3FiMqsc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/scribu?i=ZmYAV6cogKQ:Ckgg3FiMqsc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=ZmYAV6cogKQ:Ckgg3FiMqsc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/scribu?i=ZmYAV6cogKQ:Ckgg3FiMqsc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=ZmYAV6cogKQ:Ckgg3FiMqsc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/scribu?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/scribu/~4/ZmYAV6cogKQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://scribu.net/wordpress/custom-field-taxonomies/cft-1-3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment Autogrow: Version 1.0</title>
		<link>http://scribu.net/wordpress/comment-autogrow/ca-1-0.html</link>
		<comments>http://scribu.net/wordpress/comment-autogrow/ca-1-0.html#comments</comments>
		<pubDate>Tue, 07 Jul 2009 13:48:51 +0000</pubDate>
		<dc:creator>scribu</dc:creator>
				<category><![CDATA[Comment Autogrow]]></category>

		<guid isPermaLink="false">http://scribu.net/?p=515</guid>
		<description><![CDATA[I was using the autogrow script for my Front-End Editor plugin and thought it would be also useful for the comment textarea.
So I wrote this small plugin. To test it, start typing in the comment section below. Don&#8217;t press submit, because that&#8217;s not the point.
]]></description>
			<content:encoded><![CDATA[<p>I was using the autogrow script for my Front-End Editor plugin and thought it would be also useful for the comment textarea.</p>
<p>So I wrote this small plugin. To test it, start typing in the comment section below. <em>Don&#8217;t press submit, because that&#8217;s not the point.</em></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/scribu?a=-JeqmR8IUS0:RWjcIWbeUAY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/scribu?i=-JeqmR8IUS0:RWjcIWbeUAY:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=-JeqmR8IUS0:RWjcIWbeUAY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/scribu?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=-JeqmR8IUS0:RWjcIWbeUAY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/scribu?i=-JeqmR8IUS0:RWjcIWbeUAY:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=-JeqmR8IUS0:RWjcIWbeUAY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/scribu?i=-JeqmR8IUS0:RWjcIWbeUAY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=-JeqmR8IUS0:RWjcIWbeUAY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/scribu?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/scribu/~4/-JeqmR8IUS0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://scribu.net/wordpress/comment-autogrow/ca-1-0.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Front-end Editor: Loading only on certain pages</title>
		<link>http://scribu.net/wordpress/front-end-editor/loading-only-on-certain-pages.html</link>
		<comments>http://scribu.net/wordpress/front-end-editor/loading-only-on-certain-pages.html#comments</comments>
		<pubDate>Tue, 07 Jul 2009 13:25:32 +0000</pubDate>
		<dc:creator>scribu</dc:creator>
				<category><![CDATA[Front-end Editor]]></category>

		<guid isPermaLink="false">http://scribu.net/?p=514</guid>
		<description><![CDATA[Here is a foolproof way to make only parts of your site editable:

add_action&#40;'template_redirect', 'front_editor_load', 1&#41;;
function front_editor_load&#40;&#41; &#123;
	// Now the plugin will load only on single post pages.
	// Feel free to change the condition to meet your needs.
	if &#40; is_single&#40;&#41; &#41;
		return;
&#160;
	remove_action&#40;'template_redirect', array&#40;'frontEditor', 'add_scripts'&#41;&#41;;
&#125;

Just add this code in your theme&#8217;s functions.php file and you&#8217;re good to go.
]]></description>
			<content:encoded><![CDATA[<p>Here is a foolproof way to make only parts of your site editable:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_redirect'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'front_editor_load'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">function</span> front_editor_load<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// Now the plugin will load only on single post pages.</span>
	<span style="color: #666666; font-style: italic;">// Feel free to change the condition to meet your needs.</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
&nbsp;
	remove_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_redirect'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'frontEditor'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'add_scripts'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Just add this code in your theme&#8217;s <em>functions.php</em> file and you&#8217;re good to go.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/scribu?a=pra21FrFIn0:j7WD0F_SdmI:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/scribu?i=pra21FrFIn0:j7WD0F_SdmI:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=pra21FrFIn0:j7WD0F_SdmI:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/scribu?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=pra21FrFIn0:j7WD0F_SdmI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/scribu?i=pra21FrFIn0:j7WD0F_SdmI:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=pra21FrFIn0:j7WD0F_SdmI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/scribu?i=pra21FrFIn0:j7WD0F_SdmI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=pra21FrFIn0:j7WD0F_SdmI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/scribu?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/scribu/~4/pra21FrFIn0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://scribu.net/wordpress/front-end-editor/loading-only-on-certain-pages.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Event Pooling with WordPress</title>
		<link>http://scribu.net/wordpress/event-pooling-with-wordpress.html</link>
		<comments>http://scribu.net/wordpress/event-pooling-with-wordpress.html#comments</comments>
		<pubDate>Tue, 07 Jul 2009 10:11:26 +0000</pubDate>
		<dc:creator>scribu</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[patterns]]></category>

		<guid isPermaLink="false">http://scribu.net/?p=513</guid>
		<description><![CDATA[While reading an article about Event Pooling with jQuery, I realised that WP has an equivalent system, namely hooks. Here is a little map:



jQuery
WordPress


.bind()
add_action()


.unbind()
remove_action()


.trigger()
do_action()


event.type
current_filter()



Of course, it&#8217;s not a perfect 1:1 match.
WordPress also has filters, besides actions, and a few other functions for controlling both. jQuery, on the other hand, gives you the possibility to bind [...]]]></description>
			<content:encoded><![CDATA[<p>While reading an article about <a href="http://www.michaelhamrah.com/blog/index.php/2008/12/event-pooling-with-jquery-using-bind-and-trigger-managing-complex-javascript/">Event Pooling with jQuery</a>, I realised that WP has an equivalent system, namely <a href="http://codex.wordpress.org/Plugin_API#Hooks.2C_Actions_and_Filters">hooks</a>. Here is a little map:</p>
<table class="reference" border="0">
<tbody>
<tr>
<th>jQuery</th>
<th>WordPress</th>
</tr>
<tr>
<td>.bind()</td>
<td>add_action()</td>
</tr>
<tr>
<td>.unbind()</td>
<td>remove_action()</td>
</tr>
<tr>
<td>.trigger()</td>
<td>do_action()</td>
</tr>
<tr>
<td>event.type</td>
<td>current_filter()</td>
</tr>
</tbody>
</table>
<p>Of course, it&#8217;s not a perfect 1:1 match.</p>
<p>WordPress also has filters, besides actions, and a few other functions for controlling both. jQuery, on the other hand, gives you the possibility to bind an event to one or more elements on the page.</p>
<p>The important thing is that if you understand one system, you will easily comprehend the other. I guess this is another reason why jQuery is the prefered library for the WordPress admin.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/scribu?a=plSibQR7aY8:i-xVfiav2sw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/scribu?i=plSibQR7aY8:i-xVfiav2sw:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=plSibQR7aY8:i-xVfiav2sw:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/scribu?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=plSibQR7aY8:i-xVfiav2sw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/scribu?i=plSibQR7aY8:i-xVfiav2sw:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=plSibQR7aY8:i-xVfiav2sw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/scribu?i=plSibQR7aY8:i-xVfiav2sw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=plSibQR7aY8:i-xVfiav2sw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/scribu?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/scribu/~4/plSibQR7aY8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://scribu.net/wordpress/event-pooling-with-wordpress.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>7 reasons why I use bbPress</title>
		<link>http://scribu.net/blog/7-reasons-why-i-use-bbpress.html</link>
		<comments>http://scribu.net/blog/7-reasons-why-i-use-bbpress.html#comments</comments>
		<pubDate>Sun, 05 Jul 2009 12:01:21 +0000</pubDate>
		<dc:creator>scribu</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://scribu.net/?p=511</guid>
		<description><![CDATA[
bbPress 1.0 has finally been released last week. But why do I use it? Why would anyone use it? Here are my 7 reasons.
It&#8217;s familiar
If you have any experience with WordPress 2.7 or older, you will feel right at home using the new bbPress admin. You imediatly get a sense that you already know how [...]]]></description>
			<content:encoded><![CDATA[<a href='http://bbpress.org' ><img src="http://img6.imageshack.us/img6/9774/bbpress.png" style="float:right; margin: 0 0 .5em 1em;" alt="bbPress" title="bbPress"/></a>
<p><a href="http://bbpress.org/blog/2009/07/bbpress-1-0-final-finally-released/">bbPress 1.0</a> has finally been released last week. But why do I use it? Why would anyone use it? Here are my 7 reasons.</p>
<h4>It&#8217;s familiar</h4>
<p>If you have any experience with WordPress 2.7 or older, you will feel right at home using the new bbPress admin. You imediatly get a sense that you already know how to use it, which is great.</p>
<p><span id="more-511"></span></p>
<h4>It&#8217;s fast</h4>
<p>Very fast, right out of the box, which is always important for users.</p>
<h4>It scales</h4>
<p>It has to scale, since it&#8217;s used for <a href="http://wordpress.org/support/">WordPress Support</a>, which gets thousands of new messages daily.</p>
<h4>It integrates with WordPress</h4>
<p>Since it&#8217;s built on the same backend as WordPress, you won&#8217;t find any other forum software that integrates better.</p>
<h4>It&#8217;s extensible</h4>
<p>bbPress doesn&#8217;t include many of the features that other forum software have, but it has the same plugin architecture that made WordPress popular. That means you can add exactly the features that your users need.</p>
<h4>It&#8217;s easy to brand</h4>
<p>The theming system is similar to that of WordPress, so it&#8217;s pretty easy to tweak the design to make it your own. If not, you can always get a whole <a href="http://bbshowcase.org/forums/view/available-themes">new theme</a> from the interwebs.</p>
<h4>It&#8217;s free</h4>
<p>Last but not least, it&#8217;s free, as in beer &#8211; you don&#8217;t pay for it. It&#8217;s also open-source, being GPL licensed,  which is very important, at least for me.</p>
<p>So these are the 7 reasons why I&#8217;ll stick to bbPress.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/scribu?a=J2NROgMO5T8:att6KMkSawQ:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/scribu?i=J2NROgMO5T8:att6KMkSawQ:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=J2NROgMO5T8:att6KMkSawQ:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/scribu?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=J2NROgMO5T8:att6KMkSawQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/scribu?i=J2NROgMO5T8:att6KMkSawQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=J2NROgMO5T8:att6KMkSawQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/scribu?i=J2NROgMO5T8:att6KMkSawQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=J2NROgMO5T8:att6KMkSawQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/scribu?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/scribu/~4/J2NROgMO5T8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://scribu.net/blog/7-reasons-why-i-use-bbpress.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Field Images: Version 2.0</title>
		<link>http://scribu.net/wordpress/custom-field-images/cfi-2-0.html</link>
		<comments>http://scribu.net/wordpress/custom-field-images/cfi-2-0.html#comments</comments>
		<pubDate>Fri, 03 Jul 2009 22:12:23 +0000</pubDate>
		<dc:creator>scribu</dc:creator>
				<category><![CDATA[Custom Field Images]]></category>

		<guid isPermaLink="false">http://scribu.net/?p=510</guid>
		<description><![CDATA[Version 2.0 adds a feature that should have been there from the beginning: instead of storing the image URL, it stores the image ID (for images uploaded to the site), along with the desired size.
You&#8217;ll notice the change when you use the Insert CFI button to add an image. Otherwise, you can still add the [...]]]></description>
			<content:encoded><![CDATA[<p>Version 2.0 adds a feature that should have been there from the beginning: instead of storing the image URL, it stores the image ID (for images uploaded to the site), along with the desired size.</p>
<p>You&#8217;ll notice the change when you use the Insert CFI button to add an image. Otherwise, you can still add the URL by hand.</p>
<p>A Default URL option was also added in this version, so that all posts can have an image, making your site more uniform.</p>
<p><strong>The template tags have also changed</strong>, for the better, I hope.</p>
<p>These are the declaration for the template tags now:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">custom_field_image<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_id</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$defaults</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
get_custom_field_image<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_id</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$defaults</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$format</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'html'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Say you want to override the default alignment. You can do that by adding this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> custom_field_image<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'align=right'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>If you also wanted to override the alt text, you would do this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> custom_field_image<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'align=right&amp;alt=icon'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>And so on, with any parameter: url, id, size, align, alt, link.</p>
<p>Props to <a href="http://www.separatista.net">Separatista</a> for taking the time to make a Czech translation.</p>
<p>And props to <a href="http://moretechtips.net">Mike</a> for pitching in with suggestions.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/scribu?a=3B-JFA8iNkY:g7AqFBUsnl8:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/scribu?i=3B-JFA8iNkY:g7AqFBUsnl8:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=3B-JFA8iNkY:g7AqFBUsnl8:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/scribu?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=3B-JFA8iNkY:g7AqFBUsnl8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/scribu?i=3B-JFA8iNkY:g7AqFBUsnl8:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=3B-JFA8iNkY:g7AqFBUsnl8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/scribu?i=3B-JFA8iNkY:g7AqFBUsnl8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=3B-JFA8iNkY:g7AqFBUsnl8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/scribu?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/scribu/~4/3B-JFA8iNkY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://scribu.net/wordpress/custom-field-images/cfi-2-0.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Javascript: Why you should use the ‘var’ keyword</title>
		<link>http://scribu.net/blog/javascript-why-you-should-use-the-var-keyword.html</link>
		<comments>http://scribu.net/blog/javascript-why-you-should-use-the-var-keyword.html#comments</comments>
		<pubDate>Fri, 03 Jul 2009 20:21:20 +0000</pubDate>
		<dc:creator>scribu</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://scribu.net/?p=508</guid>
		<description><![CDATA[I always wondered what was the purpose of the var keyword, since in JavaScript, you can just use a variable without declaring it.
Today I found out.
Say you have this code:


foo = 1;
function test&#40;&#41; &#123;
	foo = bar;
&#125;
test&#40;&#41;;
alert&#40;foo&#41;;
&#160;
// Result: 'bar'

It turns out that foo will be modified from the test() function.
If you are coming from PHP scripting, [...]]]></description>
			<content:encoded><![CDATA[<p>I always wondered what was the purpose of the <strong>var</strong> keyword, since in JavaScript, you can just use a variable without declaring it.</p>
<p>Today I found out.</p>
<p>Say you have this code:</p>
<p><span id="more-508"></span></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">foo <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">function</span> test<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	foo <span style="color: #339933;">=</span> bar<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
test<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>foo<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// Result: 'bar'</span></pre></div></div>

<p>It turns out that foo will be modified from the test() function.</p>
<p>If you are coming from PHP scripting, like I am, you will find this very unusual.</p>
<p>Now, if you used var:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">foo <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">function</span> test<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> foo <span style="color: #339933;">=</span> <span style="color: #3366CC;">'bar'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
test<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>foo<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// Result: 1</span></pre></div></div>

<p>foo would remain unchanged.</p>
<p>It even works with functions declared as variables:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">foo <span style="color: #339933;">=</span> <span style="color: #3366CC;">'something'</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">function</span> test<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> foo <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'bar'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
test<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>foo<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// Result: function()</span></pre></div></div>

<p>So, <strong>var</strong> affects the variable scope:</p>
<p>Inside a function, all undeclared variables are global. Only those declared with var are local. This becomes very important when you have a lot of scripts running on the same page.</p>
<p>You might say that <strong>var</strong> is the opposite of the <strong>global</strong> keyword from PHP.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/scribu?a=zlwW1G9tXkU:dXwHOosvY3I:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/scribu?i=zlwW1G9tXkU:dXwHOosvY3I:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=zlwW1G9tXkU:dXwHOosvY3I:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/scribu?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=zlwW1G9tXkU:dXwHOosvY3I:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/scribu?i=zlwW1G9tXkU:dXwHOosvY3I:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=zlwW1G9tXkU:dXwHOosvY3I:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/scribu?i=zlwW1G9tXkU:dXwHOosvY3I:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=zlwW1G9tXkU:dXwHOosvY3I:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/scribu?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/scribu/~4/zlwW1G9tXkU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://scribu.net/blog/javascript-why-you-should-use-the-var-keyword.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Baseline Checker Bookmarklet</title>
		<link>http://scribu.net/util/baseline-checker-bookmarklet.html</link>
		<comments>http://scribu.net/util/baseline-checker-bookmarklet.html#comments</comments>
		<pubDate>Thu, 02 Jul 2009 22:36:30 +0000</pubDate>
		<dc:creator>scribu</dc:creator>
				<category><![CDATA[Util]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[webdesign]]></category>

		<guid isPermaLink="false">http://scribu.net/?p=507</guid>
		<description><![CDATA[If you&#8217;re a web designer, you&#8217;re probably familiar with the typographical concept of &#8220;baseline rhythm&#8220;.
While tackeling the problem on this site, all I could find was baseline rhytm calculators. Sure, that helps a little, but it wasn&#8217;t quite what I needed. So I wrote this bookmarklet, creatively named &#8220;Baseline Checker&#8221;.

What it does
It draws equally spaced [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re a web designer, you&#8217;re probably familiar with the typographical concept of &#8220;<a href="http://www.sitepoint.com/blogs/2007/04/30/typography-baseline-rhythm-deciphered/">baseline rhythm</a>&#8220;.</p>
<p>While tackeling the problem on this site, all I could find was baseline rhytm calculators. Sure, that helps a little, but it wasn&#8217;t quite what I needed. So I wrote this bookmarklet, creatively named &#8220;Baseline Checker&#8221;.</p>
<p><img src="http://img200.imageshack.us/img200/8310/hrbookmarklet.png" alt="screenshot" /></p>
<h4>What it does</h4>
<p>It draws equally spaced horizontal lines on top of a webpage. The position and the distance between the lines is calculated in reference to a particular element on that page.</p>
<p>With it, you can see for yourself if the baseline is consistent or not.</p>
<h4>How to use it</h4>
<ol>
<li>&#8220;Install&#8221; the bookmarklet by dragging ( <strong><a href="javascript:(function(){if(typeof(baseline_checker_bookmarklet)=='function')return(baseline_checker_bookmarklet());js=document.createElement('script');js.type='text/javascript';js.src='http://scribu.net/tools/baseline-checker/load.js?v='+(Math.random());document.getElementsByTagName('head')[0].appendChild(js);})();">Baseline Checker</a></strong> ) to your bookmarks menu.</li>
<li>Go to a webpage and then click the bookmarklet.</li>
<li>Click an element on the page.</li>
</ol>
<p>Icon credit: <a href="http://samrayner.com/archives/altfontprev/">Sam Rayner</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/scribu?a=2VjsGumicXE:riiq4pnhAL8:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/scribu?i=2VjsGumicXE:riiq4pnhAL8:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=2VjsGumicXE:riiq4pnhAL8:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/scribu?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=2VjsGumicXE:riiq4pnhAL8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/scribu?i=2VjsGumicXE:riiq4pnhAL8:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=2VjsGumicXE:riiq4pnhAL8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/scribu?i=2VjsGumicXE:riiq4pnhAL8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/scribu?a=2VjsGumicXE:riiq4pnhAL8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/scribu?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/scribu/~4/2VjsGumicXE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://scribu.net/util/baseline-checker-bookmarklet.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
