<?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>beer planet &#187; Wordpress</title> <atom:link href="http://beerpla.net/category/wordpress/feed/" rel="self" type="application/rss+xml" /><link>http://beerpla.net</link> <description>where things have nothing to do with beer - tutorials, tips, how-tos, thoughts, hacks, and other techy nonsense</description> <lastBuildDate>Fri, 06 Jan 2012 08:50:59 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel='hub' href='http://beerpla.net/?pushpress=hub'/> <item><title>How To: Disable/Block External HTTP Requests In WordPress</title><link>http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/</link> <comments>http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/#comments</comments> <pubDate>Wed, 16 Nov 2011 18:57:43 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[block]]></category> <category><![CDATA[disable]]></category> <category><![CDATA[external]]></category> <category><![CDATA[http]]></category> <category><![CDATA[request]]></category> <category><![CDATA[WP_ACCESSIBLE_HOSTS]]></category> <category><![CDATA[WP_HTTP_BLOCK_EXTERNAL]]></category> <guid
isPermaLink="false">http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/</guid> <description><![CDATA[<p>One thing that&#039;s been continuously annoying me when doing WordPress development on the go is when something somewhere inside WordPress decides to send requests to external urls when I don&#039;t even have Internet connection or it&#039;s slow and flaky (tethering, slow Wi-Fi, etc). This results in random lag when loading pages, especially if I haven&#039;t opened my dev WordPress instance for a long time.</p><p>Turns out there&#039;s an easy and undocumented (other than in code) solution. To block external HTTP requests right in WordPress&#039;s core itself, open up wp-config.php and add <strong><em>WP_HTTP_BLOCK_EXTERNAL</em></strong> like so:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>define('WP_HTTP_BLOCK_EXTERNAL', true);</pre></td></tr></table></div><p>Whenever this variable is present, external requests will be ignored, unless you specify your own comma-separated whitelist of domains using <strong><em>WP_ACCESSIBLE_HOSTS</em></strong> like...<div
class=clear></div> <a
href="http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>One thing that&#039;s been continuously annoying me when doing WordPress development on the go is when something somewhere inside WordPress decides to send requests to external urls when I don&#039;t even have Internet connection or it&#039;s slow and flaky (tethering, slow Wi-Fi, etc). This results in random lag when loading pages, especially if I haven&#039;t opened my dev WordPress instance for a long time.</p><p>Turns out there&#039;s an easy and undocumented (other than in code) solution. To block external HTTP requests right in WordPress&#039;s core itself, open up wp-config.php and add <strong><em>WP_HTTP_BLOCK_EXTERNAL</em></strong> like so:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>define('WP_HTTP_BLOCK_EXTERNAL', true);</pre></td></tr></table></div><p>Whenever this variable is present, external requests will be ignored, unless you specify your own comma-separated whitelist of domains using <strong><em>WP_ACCESSIBLE_HOSTS</em></strong> like so:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>define('WP_ACCESSIBLE_HOSTS', 'site1.com, site2.com');</pre></td></tr></table></div><pre></pre><p>You can examine relevant core code <a
href="http://svn.automattic.com/wordpress/trunk/wp-includes/class-http.php">here</a> and the relevant bug reports <a
href="http://core.trac.wordpress.org/ticket/8927">here</a> and <a
href="http://core.trac.wordpress.org/ticket/14636">here</a>.</p><p>Happy developing!</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To%3A+Disable%2FBlock+External+HTTP+Requests+In+Wordpress&amp;link=http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/&amp;notes=One%20thing%20that%27s%20been%20continuously%20annoying%20me%20when%20doing%20Wordpress%20development%20on%20the%20go%20is%20when%20something%20somewhere%20inside%20Wordpress%20decides%20to%20send%20requests%20to%20external%20urls%20when%20I%20don%27t%20even%20have%20Internet%20connection%20or%20it%27s%20slow%20and%20flaky%20%28tethering%2C%20slow%20Wi-Fi%2C%20etc%29.%20This%20results%20in%20random%20lag%20&amp;short_link=http://bit.ly/sxcL9M&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To%3A+Disable%2FBlock+External+HTTP+Requests+In+Wordpress&amp;link=http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/&amp;notes=One%20thing%20that%27s%20been%20continuously%20annoying%20me%20when%20doing%20Wordpress%20development%20on%20the%20go%20is%20when%20something%20somewhere%20inside%20Wordpress%20decides%20to%20send%20requests%20to%20external%20urls%20when%20I%20don%27t%20even%20have%20Internet%20connection%20or%20it%27s%20slow%20and%20flaky%20%28tethering%2C%20slow%20Wi-Fi%2C%20etc%29.%20This%20results%20in%20random%20lag%20&amp;short_link=http://bit.ly/sxcL9M&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To%3A+Disable%2FBlock+External+HTTP+Requests+In+Wordpress&amp;link=http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/&amp;notes=One%20thing%20that%27s%20been%20continuously%20annoying%20me%20when%20doing%20Wordpress%20development%20on%20the%20go%20is%20when%20something%20somewhere%20inside%20Wordpress%20decides%20to%20send%20requests%20to%20external%20urls%20when%20I%20don%27t%20even%20have%20Internet%20connection%20or%20it%27s%20slow%20and%20flaky%20%28tethering%2C%20slow%20Wi-Fi%2C%20etc%29.%20This%20results%20in%20random%20lag%20&amp;short_link=http://bit.ly/sxcL9M&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To%3A+Disable%2FBlock+External+HTTP+Requests+In+Wordpress&amp;link=http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/&amp;notes=One%20thing%20that%27s%20been%20continuously%20annoying%20me%20when%20doing%20Wordpress%20development%20on%20the%20go%20is%20when%20something%20somewhere%20inside%20Wordpress%20decides%20to%20send%20requests%20to%20external%20urls%20when%20I%20don%27t%20even%20have%20Internet%20connection%20or%20it%27s%20slow%20and%20flaky%20%28tethering%2C%20slow%20Wi-Fi%2C%20etc%29.%20This%20results%20in%20random%20lag%20&amp;short_link=http://bit.ly/sxcL9M&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To%3A+Disable%2FBlock+External+HTTP+Requests+In+Wordpress&amp;link=http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/&amp;notes=One%20thing%20that%27s%20been%20continuously%20annoying%20me%20when%20doing%20Wordpress%20development%20on%20the%20go%20is%20when%20something%20somewhere%20inside%20Wordpress%20decides%20to%20send%20requests%20to%20external%20urls%20when%20I%20don%27t%20even%20have%20Internet%20connection%20or%20it%27s%20slow%20and%20flaky%20%28tethering%2C%20slow%20Wi-Fi%2C%20etc%29.%20This%20results%20in%20random%20lag%20&amp;short_link=http://bit.ly/sxcL9M&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To%3A+Disable%2FBlock+External+HTTP+Requests+In+Wordpress&amp;link=http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/&amp;notes=One%20thing%20that%27s%20been%20continuously%20annoying%20me%20when%20doing%20Wordpress%20development%20on%20the%20go%20is%20when%20something%20somewhere%20inside%20Wordpress%20decides%20to%20send%20requests%20to%20external%20urls%20when%20I%20don%27t%20even%20have%20Internet%20connection%20or%20it%27s%20slow%20and%20flaky%20%28tethering%2C%20slow%20Wi-Fi%2C%20etc%29.%20This%20results%20in%20random%20lag%20&amp;short_link=http://bit.ly/sxcL9M&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To%3A+Disable%2FBlock+External+HTTP+Requests+In+Wordpress&amp;link=http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/&amp;notes=One%20thing%20that%27s%20been%20continuously%20annoying%20me%20when%20doing%20Wordpress%20development%20on%20the%20go%20is%20when%20something%20somewhere%20inside%20Wordpress%20decides%20to%20send%20requests%20to%20external%20urls%20when%20I%20don%27t%20even%20have%20Internet%20connection%20or%20it%27s%20slow%20and%20flaky%20%28tethering%2C%20slow%20Wi-Fi%2C%20etc%29.%20This%20results%20in%20random%20lag%20&amp;short_link=http://bit.ly/sxcL9M&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%3A%20Disable%2FBlock%20External%20HTTP%20Requests%20In%20Wordpress&amp;link=http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/&amp;notes=One%20thing%20that%27s%20been%20continuously%20annoying%20me%20when%20doing%20Wordpress%20development%20on%20the%20go%20is%20when%20something%20somewhere%20inside%20Wordpress%20decides%20to%20send%20requests%20to%20external%20urls%20when%20I%20don%27t%20even%20have%20Internet%20connection%20or%20it%27s%20slow%20and%20flaky%20%28tethering%2C%20slow%20Wi-Fi%2C%20etc%29.%20This%20results%20in%20random%20lag%20&amp;short_link=http://bit.ly/sxcL9M&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/" rel="bookmark" title="January 18, 2010">WordPress Developers &#8211; How Do You Make A Living [Poll + Discussion]?</a></li><li><a
href="http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/" rel="bookmark" title="June 20, 2009">How To Properly Set SVN svn:externals Property In SVN Command Line</a></li><li><a
href="http://beerpla.net/2010/06/10/how-to-display-just-the-http-response-code-in-cli-curl/" rel="bookmark" title="June 10, 2010">How To Display Just The HTTP Response Code In Command Line Curl</a></li><li><a
href="http://beerpla.net/2009/06/11/proof-that-god-does-exist-you-can-finally-block-those-insanely-annoying-facebook-quizzes-for-good/" rel="bookmark" title="June 11, 2009">Proof That God Does Exist &#8211; You Can Finally Block Those Insanely Annoying Facebook Quizzes For Good</a></li><li><a
href="http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/" rel="bookmark" title="March 29, 2008">Beer Planet Upgraded To WordPress 2.5</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2011%2F11%2F16%2Fhow-to-disableblock-external-http-requests-in-wordpress%2F&amp;title=How%20To%3A%20Disable%2FBlock%20External%20HTTP%20Requests%20In%20WordPress" id="wpa2a_2"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>How To Dynamically Increase Memory Limits When Interfacing With WordPress Using XML-RPC (Windows Live Writer, Etc)</title><link>http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/</link> <comments>http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/#comments</comments> <pubDate>Sat, 06 Nov 2010 09:00:44 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Performance]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[error 500]]></category> <category><![CDATA[limit]]></category> <category><![CDATA[memory]]></category> <category><![CDATA[out of memory]]></category> <category><![CDATA[rpc]]></category> <category><![CDATA[server error]]></category> <category><![CDATA[web server]]></category> <category><![CDATA[Windows Live Writer]]></category> <category><![CDATA[WLW]]></category> <category><![CDATA[xml]]></category> <category><![CDATA[xml-rpc]]></category> <category><![CDATA[xmlrpc]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/</guid> <description><![CDATA[<p>Today&#039;s snippet is tremendously helpful if you are using an XML-RPC WordPress interface to read and publish your articles and are running into <em><strong>500 Server Error</strong></em> issues due to running out of memory, manifesting themselves in something like this error message: <em><strong>&#34;Invalid Server Response &#8211; The response to the metaWeblog.newMediaObject method received from the weblog server was invalid&#34;</strong></em>.</p><p>For example, my regular PHP memory allocation is 32MB or so, but if I load up Windows Live Writer, my favorite publishing tool, and ask it to load 1000 of the latest blog posts, I will undoubtedly get a server error back.</p><p>One solution would be to increase the memory allocated to PHP to something higher, like 256MB, which is how I...<div
class=clear></div> <a
href="http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>Today&#039;s snippet is tremendously helpful if you are using an XML-RPC WordPress interface to read and publish your articles and are running into <em><strong>500 Server Error</strong></em> issues due to running out of memory, manifesting themselves in something like this error message: <em><strong>&quot;Invalid Server Response &#8211; The response to the metaWeblog.newMediaObject method received from the weblog server was invalid&quot;</strong></em>.</p><p>For example, my regular PHP memory allocation is 32MB or so, but if I load up Windows Live Writer, my favorite publishing tool, and ask it to load 1000 of the latest blog posts, I will undoubtedly get a server error back.</p><p>One solution would be to increase the memory allocated to PHP to something higher, like 256MB, which is how I used to get around the issue. I say &quot;get around&quot; because it&#039;s not a good solution &#8211; if someone finds a page that uses a lot of memory on your site, they could easily kill not only your web server but the whole machine due to swap death. Keeping a lower memory limit allows you to run your web server, such as Apache, with more children, thus serving more requests without getting overloaded.</p><p>So, I&#039;ve looked into the WordPress core and came up with what I think is a proper fix &#8211; dynamic memory limit tweaking when dealing with XML-RPC only. Here is the code &#8211; add it to your <em><strong>functions.php</strong></em> and you should be golden:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td
class="code"><pre>/**
* Dynamically increase allowed memory limit for XML-RPC only.
*
* @param array $methods
* @return array
*/
function my_xmlrpc_methods($methods) {
  ini_set('memory_limit', '256M');
  return $methods;
}
add_action('xmlrpc_methods', 'my_xmlrpc_methods');</pre></td></tr></table></div><p>The code is pretty self-explanatory: it hooks into a WordPress hook that fires only for XML-RPC requests and adjusts the memory limit on the fly. No more out of memory errors and I&#039;m able to load 1000 posts in Windows Live Writer without problems.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Dynamically+Increase+Memory+Limits+When+Interfacing+With+Wordpress+Using+XML-RPC+%28Windows+Live+Writer%2C+Etc%29&amp;link=http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/&amp;notes=Today%27s%20snippet%20is%20tremendously%20helpful%20if%20you%20are%20using%20an%20XML-RPC%20Wordpress%20interface%20to%20read%20and%20publish%20your%20articles%20and%20are%20running%20into%20500%20Server%20Error%20issues%20due%20to%20running%20out%20of%20memory%2C%20manifesting%20themselves%20in%20something%20like%20this%20error%20message%3A%20%26quot%3BInvalid%20Server%20Response%20-%20The%20respon&amp;short_link=http://bit.ly/cOxNJ3&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Dynamically+Increase+Memory+Limits+When+Interfacing+With+Wordpress+Using+XML-RPC+%28Windows+Live+Writer%2C+Etc%29&amp;link=http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/&amp;notes=Today%27s%20snippet%20is%20tremendously%20helpful%20if%20you%20are%20using%20an%20XML-RPC%20Wordpress%20interface%20to%20read%20and%20publish%20your%20articles%20and%20are%20running%20into%20500%20Server%20Error%20issues%20due%20to%20running%20out%20of%20memory%2C%20manifesting%20themselves%20in%20something%20like%20this%20error%20message%3A%20%26quot%3BInvalid%20Server%20Response%20-%20The%20respon&amp;short_link=http://bit.ly/cOxNJ3&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Dynamically+Increase+Memory+Limits+When+Interfacing+With+Wordpress+Using+XML-RPC+%28Windows+Live+Writer%2C+Etc%29&amp;link=http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/&amp;notes=Today%27s%20snippet%20is%20tremendously%20helpful%20if%20you%20are%20using%20an%20XML-RPC%20Wordpress%20interface%20to%20read%20and%20publish%20your%20articles%20and%20are%20running%20into%20500%20Server%20Error%20issues%20due%20to%20running%20out%20of%20memory%2C%20manifesting%20themselves%20in%20something%20like%20this%20error%20message%3A%20%26quot%3BInvalid%20Server%20Response%20-%20The%20respon&amp;short_link=http://bit.ly/cOxNJ3&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Dynamically+Increase+Memory+Limits+When+Interfacing+With+Wordpress+Using+XML-RPC+%28Windows+Live+Writer%2C+Etc%29&amp;link=http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/&amp;notes=Today%27s%20snippet%20is%20tremendously%20helpful%20if%20you%20are%20using%20an%20XML-RPC%20Wordpress%20interface%20to%20read%20and%20publish%20your%20articles%20and%20are%20running%20into%20500%20Server%20Error%20issues%20due%20to%20running%20out%20of%20memory%2C%20manifesting%20themselves%20in%20something%20like%20this%20error%20message%3A%20%26quot%3BInvalid%20Server%20Response%20-%20The%20respon&amp;short_link=http://bit.ly/cOxNJ3&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Dynamically+Increase+Memory+Limits+When+Interfacing+With+Wordpress+Using+XML-RPC+%28Windows+Live+Writer%2C+Etc%29&amp;link=http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/&amp;notes=Today%27s%20snippet%20is%20tremendously%20helpful%20if%20you%20are%20using%20an%20XML-RPC%20Wordpress%20interface%20to%20read%20and%20publish%20your%20articles%20and%20are%20running%20into%20500%20Server%20Error%20issues%20due%20to%20running%20out%20of%20memory%2C%20manifesting%20themselves%20in%20something%20like%20this%20error%20message%3A%20%26quot%3BInvalid%20Server%20Response%20-%20The%20respon&amp;short_link=http://bit.ly/cOxNJ3&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Dynamically+Increase+Memory+Limits+When+Interfacing+With+Wordpress+Using+XML-RPC+%28Windows+Live+Writer%2C+Etc%29&amp;link=http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/&amp;notes=Today%27s%20snippet%20is%20tremendously%20helpful%20if%20you%20are%20using%20an%20XML-RPC%20Wordpress%20interface%20to%20read%20and%20publish%20your%20articles%20and%20are%20running%20into%20500%20Server%20Error%20issues%20due%20to%20running%20out%20of%20memory%2C%20manifesting%20themselves%20in%20something%20like%20this%20error%20message%3A%20%26quot%3BInvalid%20Server%20Response%20-%20The%20respon&amp;short_link=http://bit.ly/cOxNJ3&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Dynamically+Increase+Memory+Limits+When+Interfacing+With+Wordpress+Using+XML-RPC+%28Windows+Live+Writer%2C+Etc%29&amp;link=http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/&amp;notes=Today%27s%20snippet%20is%20tremendously%20helpful%20if%20you%20are%20using%20an%20XML-RPC%20Wordpress%20interface%20to%20read%20and%20publish%20your%20articles%20and%20are%20running%20into%20500%20Server%20Error%20issues%20due%20to%20running%20out%20of%20memory%2C%20manifesting%20themselves%20in%20something%20like%20this%20error%20message%3A%20%26quot%3BInvalid%20Server%20Response%20-%20The%20respon&amp;short_link=http://bit.ly/cOxNJ3&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20Dynamically%20Increase%20Memory%20Limits%20When%20Interfacing%20With%20Wordpress%20Using%20XML-RPC%20%28Windows%20Live%20Writer%2C%20Etc%29&amp;link=http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/&amp;notes=Today%27s%20snippet%20is%20tremendously%20helpful%20if%20you%20are%20using%20an%20XML-RPC%20Wordpress%20interface%20to%20read%20and%20publish%20your%20articles%20and%20are%20running%20into%20500%20Server%20Error%20issues%20due%20to%20running%20out%20of%20memory%2C%20manifesting%20themselves%20in%20something%20like%20this%20error%20message%3A%20%26quot%3BInvalid%20Server%20Response%20-%20The%20respon&amp;short_link=http://bit.ly/cOxNJ3&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/" rel="bookmark" title="November 16, 2011">How To: Disable/Block External HTTP Requests In WordPress</a></li><li><a
href="http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/" rel="bookmark" title="January 15, 2010">Follow-up To Loading CSS And JS Conditionally</a></li><li><a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/" rel="bookmark" title="January 13, 2010">[WordPress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a></li><li><a
href="http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/" rel="bookmark" title="October 15, 2010">How To Add Shortcode Support To WordPress Comments And Sidebar Widgets</a></li><li><a
href="http://beerpla.net/2009/09/21/solr-how-to-fix-java-io-ioexception-directory-foo-exists-and-is-a-directory-but-cannot-be-listed-list-returned-null/" rel="bookmark" title="September 21, 2009">[Solr] How To Fix java.io.IOException: directory FOO exists and is a directory, but cannot be listed: list() returned null</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F11%2F06%2Fhow-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc%2F&amp;title=How%20To%20Dynamically%20Increase%20Memory%20Limits%20When%20Interfacing%20With%20WordPress%20Using%20XML-RPC%20%28Windows%20Live%20Writer%2C%20Etc%29" id="wpa2a_4"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>How To Add Shortcode Support To WordPress Comments And Sidebar Widgets</title><link>http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/</link> <comments>http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/#comments</comments> <pubDate>Sat, 16 Oct 2010 03:20:26 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[action]]></category> <category><![CDATA[add]]></category> <category><![CDATA[comment]]></category> <category><![CDATA[filter]]></category> <category><![CDATA[shortcode]]></category> <category><![CDATA[sidebar]]></category> <category><![CDATA[support]]></category> <category><![CDATA[trigger]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/</guid> <description><![CDATA[<p>WordPress has a great way of letting you use simple text tags called shortcodes to provide a whole bunch of functionality, including custom PHP code. In this article, I&#039;m assuming that you already know what shortcodes do and how they operate (if you don&#039;t, head over here: <a
href="http://codex.wordpress.org/Shortcode_API">Shortcode_API</a>).</p><p>One glaring omission in the way shortcodes are set up by default is that they only get triggered in the content of your post, leaving the sidebar and comments out. I&#039;m sure this is done for security, so that your readers can&#039;t screw something up by posting shortcodes they&#039;re not supposed to &#8211; after all, shortcodes are PHP snippets on the backend.</p><p>However, let&#039;s assume you really know what you&#039;re doing...<div
class=clear></div> <a
href="http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>WordPress has a great way of letting you use simple text tags called shortcodes to provide a whole bunch of functionality, including custom PHP code. In this article, I&#039;m assuming that you already know what shortcodes do and how they operate (if you don&#039;t, head over here: <a
href="http://codex.wordpress.org/Shortcode_API">Shortcode_API</a>).</p><p>One glaring omission in the way shortcodes are set up by default is that they only get triggered in the content of your post, leaving the sidebar and comments out. I&#039;m sure this is done for security, so that your readers can&#039;t screw something up by posting shortcodes they&#039;re not supposed to &#8211; after all, shortcodes are PHP snippets on the backend.</p><p>However, let&#039;s assume you really know what you&#039;re doing and you want, for example, to allow certain shortcodes in the comments and all shortcodes in the sidebar. It&#039;s your site and you should be able to do whatever you want with it. For instance, I wanted to provide a way to include QR codes using a <a
href="http://www.androidpolice.com/2010/09/15/new-androidpolice-com-feature-instant-qr-magic-hover-on-any-link-in-any-post-to-get-the-corresponding-qr-code-poll/">[qr] shortcode syntax that I&#039;d written</a> both in the sidebar and in the comments, except in the comments that was the only shortcode I wanted to allow my readers to use.</p><p>Since these cases can get complicated, let&#039;s start simple and then progressively get deeper.</p><h2>Allow all shortcodes in the sidebar</h2><p>Assuming you want to enable shortcodes in the <a
href="http://wordpress.org/extend/plugins/php-code-widget/">PHP Code Widget</a> widgets (I believe this is the most common way to add PHP support to the sidebar), use this code:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>add_filter('widget_execphp', 'do_shortcode');</pre></td></tr></table></div><p>If you have some other widgets in mind, you have to find out the right filter and use it just like above.</p><h2>Allow only whitelisted shortcodes in the comments</h2><p>Since I don&#039;t want <em>all</em> shortcodes to fire here, things get slightly trickier.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td
class="code"><pre>function init_common_shortcodes() {
  add_shortcode('qr', 'my_shortcode_qr');
}
&nbsp;
function init_comment_shortcodes() {
  remove_all_shortcodes();
  init_common_shortcodes();
  add_filter('comment_text', 'do_shortcode');
}
&nbsp;
init_common_shortcodes();
add_filter('comments_template', 'init_comment_shortcodes');</pre></td></tr></table></div><p>The code above will remove all shortcodes when it gets to comments and reinitialize only the whitelisted one called &quot;<strong>[</strong>qr<strong>]</strong>&quot;, which is exactly what I wanted.</p><p><div
class="note"><div
class="noteclassic"><strong>Note</strong>: If your code somehow uses shortcodes after the comments (such as a sidebar or a custom post query), you will need the trick in the next section.</div></div></p><h2>Allow all shortcodes in the sidebar AND only whitelisted ones in the comments</h2><p>At this point, things get slightly tricky because if I combine the previous 2 solutions into 1, by the time WordPress gets to the sidebar, it&#039;ll be left without any shortcodes at all &#8211; they&#039;ve been removed by the code dealing with comments. Therefore, I need to save the shortcodes before dealing with comments and then restore them after the comments and before the sidebar.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td
class="code"><pre>function my_remove_all_shortcodes() {
  global $shortcode_tags;
  global $temp_shortcode_tags;
  $temp_shortcode_tags = $shortcode_tags;
  remove_all_shortcodes();
}
&nbsp;
function my_restore_all_shortcodes() {
  global $shortcode_tags;
  global $temp_shortcode_tags;
  if(!empty($temp_shortcode_tags)) {
    $shortcode_tags = $temp_shortcode_tags;
  }
}
&nbsp;
function init_common_shortcodes() {
  add_shortcode('qr', 'my_shortcode_qr');
}
&nbsp;
function init_comment_shortcodes() {
  my_remove_all_shortcodes();
  init_common_shortcodes();
  add_filter('comment_text', 'do_shortcode');
}
&nbsp;
add_filter('comments_template', 'init_comment_shortcodes');
add_filter('dynamic_sidebar', 'my_restore_all_shortcodes');
add_filter('widget_execphp', 'do_shortcode');
init_common_shortcodes();</pre></td></tr></table></div><p>Here is what the code does:</p><ol><li>Initialize custom shortcodes that I want to add all over the place.</li><li>When WP gets to the comment block, it removes all shortcodes (again, for security) and re-initializes only the ones I want, but this time remembers them so that they can be restored later.</li><li>After the comments, when WP gets to the dynamic sidebar, it restores all the shortcodes and applies them to each <a
href="http://wordpress.org/extend/plugins/php-code-widget/">PHP Code Widget</a>.</li></ol><p>And there you have it. Of course, the code may need tweaking for your own scenario but the ideas are all there. If you spot an error or know of an easier/better way, please let me know.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Add+Shortcode+Support+To+Wordpress+Comments+And+Sidebar+Widgets&amp;link=http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/&amp;notes=Wordpress%20has%20a%20great%20way%20of%20letting%20you%20use%20simple%20text%20tags%20called%20shortcodes%20to%20provide%20a%20whole%20bunch%20of%20functionality%2C%20including%20custom%20PHP%20code.%20In%20this%20article%2C%20I%27m%20assuming%20that%20you%20already%20know%20what%20shortcodes%20do%20and%20how%20they%20operate%20%28if%20you%20don%27t%2C%20head%20over%20here%3A%20Shortcode_API%29.%0D%0AOne%20glarin&amp;short_link=http://bit.ly/am7MRr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Add+Shortcode+Support+To+Wordpress+Comments+And+Sidebar+Widgets&amp;link=http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/&amp;notes=Wordpress%20has%20a%20great%20way%20of%20letting%20you%20use%20simple%20text%20tags%20called%20shortcodes%20to%20provide%20a%20whole%20bunch%20of%20functionality%2C%20including%20custom%20PHP%20code.%20In%20this%20article%2C%20I%27m%20assuming%20that%20you%20already%20know%20what%20shortcodes%20do%20and%20how%20they%20operate%20%28if%20you%20don%27t%2C%20head%20over%20here%3A%20Shortcode_API%29.%0D%0AOne%20glarin&amp;short_link=http://bit.ly/am7MRr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Add+Shortcode+Support+To+Wordpress+Comments+And+Sidebar+Widgets&amp;link=http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/&amp;notes=Wordpress%20has%20a%20great%20way%20of%20letting%20you%20use%20simple%20text%20tags%20called%20shortcodes%20to%20provide%20a%20whole%20bunch%20of%20functionality%2C%20including%20custom%20PHP%20code.%20In%20this%20article%2C%20I%27m%20assuming%20that%20you%20already%20know%20what%20shortcodes%20do%20and%20how%20they%20operate%20%28if%20you%20don%27t%2C%20head%20over%20here%3A%20Shortcode_API%29.%0D%0AOne%20glarin&amp;short_link=http://bit.ly/am7MRr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Add+Shortcode+Support+To+Wordpress+Comments+And+Sidebar+Widgets&amp;link=http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/&amp;notes=Wordpress%20has%20a%20great%20way%20of%20letting%20you%20use%20simple%20text%20tags%20called%20shortcodes%20to%20provide%20a%20whole%20bunch%20of%20functionality%2C%20including%20custom%20PHP%20code.%20In%20this%20article%2C%20I%27m%20assuming%20that%20you%20already%20know%20what%20shortcodes%20do%20and%20how%20they%20operate%20%28if%20you%20don%27t%2C%20head%20over%20here%3A%20Shortcode_API%29.%0D%0AOne%20glarin&amp;short_link=http://bit.ly/am7MRr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Add+Shortcode+Support+To+Wordpress+Comments+And+Sidebar+Widgets&amp;link=http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/&amp;notes=Wordpress%20has%20a%20great%20way%20of%20letting%20you%20use%20simple%20text%20tags%20called%20shortcodes%20to%20provide%20a%20whole%20bunch%20of%20functionality%2C%20including%20custom%20PHP%20code.%20In%20this%20article%2C%20I%27m%20assuming%20that%20you%20already%20know%20what%20shortcodes%20do%20and%20how%20they%20operate%20%28if%20you%20don%27t%2C%20head%20over%20here%3A%20Shortcode_API%29.%0D%0AOne%20glarin&amp;short_link=http://bit.ly/am7MRr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Add+Shortcode+Support+To+Wordpress+Comments+And+Sidebar+Widgets&amp;link=http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/&amp;notes=Wordpress%20has%20a%20great%20way%20of%20letting%20you%20use%20simple%20text%20tags%20called%20shortcodes%20to%20provide%20a%20whole%20bunch%20of%20functionality%2C%20including%20custom%20PHP%20code.%20In%20this%20article%2C%20I%27m%20assuming%20that%20you%20already%20know%20what%20shortcodes%20do%20and%20how%20they%20operate%20%28if%20you%20don%27t%2C%20head%20over%20here%3A%20Shortcode_API%29.%0D%0AOne%20glarin&amp;short_link=http://bit.ly/am7MRr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Add+Shortcode+Support+To+Wordpress+Comments+And+Sidebar+Widgets&amp;link=http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/&amp;notes=Wordpress%20has%20a%20great%20way%20of%20letting%20you%20use%20simple%20text%20tags%20called%20shortcodes%20to%20provide%20a%20whole%20bunch%20of%20functionality%2C%20including%20custom%20PHP%20code.%20In%20this%20article%2C%20I%27m%20assuming%20that%20you%20already%20know%20what%20shortcodes%20do%20and%20how%20they%20operate%20%28if%20you%20don%27t%2C%20head%20over%20here%3A%20Shortcode_API%29.%0D%0AOne%20glarin&amp;short_link=http://bit.ly/am7MRr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20Add%20Shortcode%20Support%20To%20Wordpress%20Comments%20And%20Sidebar%20Widgets&amp;link=http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/&amp;notes=Wordpress%20has%20a%20great%20way%20of%20letting%20you%20use%20simple%20text%20tags%20called%20shortcodes%20to%20provide%20a%20whole%20bunch%20of%20functionality%2C%20including%20custom%20PHP%20code.%20In%20this%20article%2C%20I%27m%20assuming%20that%20you%20already%20know%20what%20shortcodes%20do%20and%20how%20they%20operate%20%28if%20you%20don%27t%2C%20head%20over%20here%3A%20Shortcode_API%29.%0D%0AOne%20glarin&amp;short_link=http://bit.ly/am7MRr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/" rel="bookmark" title="January 31, 2010">How To Remove Inline Hardcoded Recent Comments Sidebar Widget Style From Your WordPress Theme</a></li><li><a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/" rel="bookmark" title="January 13, 2010">[WordPress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a></li><li><a
href="http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/" rel="bookmark" title="March 21, 2010">How To Diagnose And Fix Incorrect Post Comment Counts In WordPress</a></li><li><a
href="http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/" rel="bookmark" title="November 16, 2011">How To: Disable/Block External HTTP Requests In WordPress</a></li><li><a
href="http://beerpla.net/2008/04/15/mysql-conference-liveblogging-disaster-is-inevitable-are-you-prepared-tuesday-425pm/" rel="bookmark" title="April 15, 2008">MySQL Conference Liveblogging: Disaster Is Inevitable &#8211; Are You Prepared? (Tuesday 4:25PM)</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F10%2F15%2Fhow-to-add-shortcode-support-to-wordpress-comments-and-sidebars%2F&amp;title=How%20To%20Add%20Shortcode%20Support%20To%20WordPress%20Comments%20And%20Sidebar%20Widgets" id="wpa2a_6"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>How To Diagnose And Fix Incorrect Post Comment Counts In WordPress</title><link>http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/</link> <comments>http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/#comments</comments> <pubDate>Sun, 21 Mar 2010 10:42:10 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[broken]]></category> <category><![CDATA[comment]]></category> <category><![CDATA[count]]></category> <category><![CDATA[database]]></category> <category><![CDATA[fix]]></category> <category><![CDATA[incorrect]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[query]]></category> <category><![CDATA[sql]]></category> <category><![CDATA[wp_comments]]></category> <category><![CDATA[wp_posts]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/</guid> <description><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/517e9e45d3fa_2C92/image.png" width="222" height="189" /></p><h2>Introduction</h2><p>If your WordPress comment counts got messed up, whether because of a plugin (I&#039;m talking about you, DISQUS) or you messed with your database manually and did something wrong (yup, that&#039;s what I just did), fear not &#8211; I have a solution for you.</p><p>But first, a little background.</p><h2>Comment Counts In WordPress</h2><p>Here&#039;s how comment counts work in WP:</p><ul><li>Posts live in a table called <strong><em>wp_posts</em></strong> and each has an ID.</li><li>Comments reside in a table called <strong><em>wp_comments</em></strong>, each referring to an ID in wp_posts.</li><li>However, to make queries faster, the comment count is also cached in the wp_posts table, rather than getting calculated on every page load. <br
/>If this count ever gets out of</li></ul><p>...<div
class=clear></div> <a
href="http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/517e9e45d3fa_2C92/image.png" width="222" height="189" /></p><h2>Introduction</h2><p>If your WordPress comment counts got messed up, whether because of a plugin (I&#039;m talking about you, DISQUS) or you messed with your database manually and did something wrong (yup, that&#039;s what I just did), fear not &#8211; I have a solution for you.</p><p>But first, a little background.</p><h2>Comment Counts In WordPress</h2><p>Here&#039;s how comment counts work in WP:</p><ul><li>Posts live in a table called <strong><em>wp_posts</em></strong> and each has an ID.</li><li>Comments reside in a table called <strong><em>wp_comments</em></strong>, each referring to an ID in wp_posts.</li><li>However, to make queries faster, the comment count is also cached in the wp_posts table, rather than getting calculated on every page load. <br
/>If this count ever gets out of sync with the actual number of comments for some reason, WordPress, while still displaying all comments properly, will simply show the wrong count.</li></ul><h2>How To Find Out Which Posts Are Out Of Sync</h2><p>Fire up a MySQL shell or your favorite MySQL software (mine is <a
href="http://www.navicat.com" rel="nofollow">Navicat</a>) and run this query.</p><p>It assumes your database is called <strong><em>wordpress</em></strong> and the prefix is <strong><em>wp_</em></strong>, so adjust those accordingly.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td
class="code"><pre>SELECT wpp.id, wpp.post_title, wpp.comment_count, wpc.cnt
FROM wordpress.wp_posts wpp
LEFT JOIN
(SELECT comment_post_id AS c_post_id, count(*) AS cnt FROM wordpress.wp_comments
 WHERE comment_approved = 1 GROUP BY comment_post_id) wpc
ON wpp.id=wpc.c_post_id
WHERE wpp.post_type IN ('post', 'page')
      AND (wpp.comment_count!=wpc.cnt OR (wpp.comment_count != 0 AND wpc.cnt IS NULL));</pre></td></tr></table></div></p><p>The result of this query is a list of posts whose comment_counts differ from the actual number of comments associated with each of them.</p><p>The left count is the cached number, while the right one is the right one.</p><h2>How To Fix The Counts Automatically</h2><p><div
class="note"><div
class="notewarning">Please make a backup of your database before performing any altering queries such as the one below (I recommend mysqldump or the <a
href="http://lesterchan.net/wordpress/readme/wp-dbmanager.html" rel="nofollow">WP-DBManager plugin</a>).</div></div></p><p>The following query will recalculate and fix the comment counts for all posts that are out of sync (ones we just queried for above):</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td
class="code"><pre>UPDATE wordpress.wp_posts wpp
LEFT JOIN
(SELECT comment_post_id AS c_post_id, count(*) AS cnt FROM wordpress.wp_comments
 WHERE comment_approved = 1 GROUP BY comment_post_id) wpc
ON wpp.id=wpc.c_post_id
SET wpp.comment_count=wpc.cnt
WHERE wpp.post_type IN ('post', 'page')
      AND (wpp.comment_count!=wpc.cnt OR (wpp.comment_count != 0 AND wpc.cnt IS NULL));</pre></td></tr></table></div><p>I tested this approach on a few test cases but if you experience any problems, please do alert me in the comments and desribe your problem.</p><p>Happy WP hacking!</p><div
class='post_blob_1'>Online <a
href="http://www.test-king.com/exams/642-892.htm">642-892</a> training is the quickest way to pass <a
href="http://www.test-king.com/exams/642-642.htm">642-642</a> as well as <a
href="http://www.test-king.com/exams/640-863.htm">640-863</a> exams.</div><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20Diagnose%20And%20Fix%20Incorrect%20Post%20Comment%20Counts%20In%20Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/" rel="bookmark" title="January 5, 2010">How To Fix Intermittent MySQL Errcode 13 Errors On Windows</a></li><li><a
href="http://beerpla.net/2008/04/16/mysql-conference-liveblogging-mysql-performance-under-a-microscope-the-tobias-and-jay-show-wednesday-200pm/" rel="bookmark" title="April 16, 2008">MySQL Conference Liveblogging: MySQL Performance Under A Microscope: The Tobias And Jay Show (Wednesday 2:00PM)</a></li><li><a
href="http://beerpla.net/2008/04/15/mysql-conference-liveblogging-explain-demystified-tuesday-200p/" rel="bookmark" title="April 15, 2008">MySQL Conference Liveblogging: EXPLAIN Demystified (Tuesday 2:00PM)</a></li><li><a
href="http://beerpla.net/2009/05/11/mysql-deletingupdating-rows-common-to-2-tables-speed-and-slave-lag-considerations/" rel="bookmark" title="May 11, 2009">[MySQL] Deleting/Updating Rows Common To 2 Tables &#8211; Speed And Slave Lag Considerations</a></li><li><a
href="http://beerpla.net/2008/03/25/navicat-for-mysql-bugs-filed/" rel="bookmark" title="March 25, 2008">Navicat For MySQL Bugs Filed</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F03%2F21%2Fhow-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress%2F&amp;title=How%20To%20Diagnose%20And%20Fix%20Incorrect%20Post%20Comment%20Counts%20In%20WordPress" id="wpa2a_8"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/feed/</wfw:commentRss> <slash:comments>22</slash:comments> </item> <item><title>How To Remove Inline Hardcoded Recent Comments Sidebar Widget Style From Your WordPress Theme</title><link>http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/</link> <comments>http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/#comments</comments> <pubDate>Sun, 31 Jan 2010 09:45:15 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Tips]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[add_action]]></category> <category><![CDATA[comments]]></category> <category><![CDATA[functions]]></category> <category><![CDATA[functions.php]]></category> <category><![CDATA[hardcoded]]></category> <category><![CDATA[inline]]></category> <category><![CDATA[recent]]></category> <category><![CDATA[recent_comments_style]]></category> <category><![CDATA[remove]]></category> <category><![CDATA[remove_action]]></category> <category><![CDATA[sidebar]]></category> <category><![CDATA[theme]]></category> <category><![CDATA[widget]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/</guid> <description><![CDATA[<h2>The Problem</h2><p>If you use the Recent Comments sidebar widget in your WordPress installation, it&#039;s possible that you want to customize this widget&#039;s style.</p><p>You will quickly find, however, that as soon as you add the widget to your sidebar, it injects the following inline, hardcoded CSS into the containing page (using !important to make things worse):&#160;</p><div
class="wp_syntax"><div
class="code"><pre>&#60;style type=&#34;text/css&#34;&#62;.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}&#60;/style&#62;</pre></div></div><p>The code above comes from <strong><em>recent_comments_style()</em></strong> (found in wp-includes/default-widgets.php), which is in turn called by <strong><em>WP_Widget_Recent_Comments()</em></strong> in the same file (this is just an old-style PHP4 constructor &#8211; same as PHP5&#039;s __construct()), which is triggered when the Recent Comments widget is used:</p><div
class="wp_syntax"><div
class="code"><pre>add_action( 'wp_head', array(&#38;$this, 'recent_comments_style') );</pre></div></div><p>This leaves a bad taste in my...<div
class=clear></div> <a
href="http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<h2>The Problem</h2><p>If you use the Recent Comments sidebar widget in your WordPress installation, it&#039;s possible that you want to customize this widget&#039;s style.</p><p>You will quickly find, however, that as soon as you add the widget to your sidebar, it injects the following inline, hardcoded CSS into the containing page (using !important to make things worse):&#160;</p><div
class="wp_syntax"><div
class="code"><pre>&lt;style type=&quot;text/css&quot;&gt;.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}&lt;/style&gt;</pre></div></div><p>The code above comes from <strong><em>recent_comments_style()</em></strong> (found in wp-includes/default-widgets.php), which is in turn called by <strong><em>WP_Widget_Recent_Comments()</em></strong> in the same file (this is just an old-style PHP4 constructor &#8211; same as PHP5&#039;s __construct()), which is triggered when the Recent Comments widget is used:</p><div
class="wp_syntax"><div
class="code"><pre>add_action( 'wp_head', array(&amp;$this, 'recent_comments_style') );</pre></div></div><p>This leaves a bad taste in my mouth because:</p><ul><li>the style is automatically forced into any page that embeds the widget</li><li>it uses !important to override any existing styles</li><li>it cannot be configured from the widget</li><li>this is a core WordPress widget and not some widget added by a random plugin. WordPress should not contain such bad practices.</li></ul><p>After seeing this, I raised a new <a
href="http://core.trac.wordpress.org/ticket/11928" rel="nofollow">issue #11928</a> in the WordPress bug tracker but in the meantime, of course, I could go and hack the default-widgets.php core file to solve this problem. That, of course, would be a horrible thing to do &#8211; the next upgrade could wipe my changes or result in a conflict (if upgrading via svn). In general, one should never need to modify core files.</p><h2>The Solution</h2><p>Fortunately, there is a solution that doesn&#039;t involve modifying core files. Remember that we are talking about WordPress here, which gained its popularity due to the ease of customization.</p><p>Normally, we would just need to remove the <strong><em>recent_comments_style</em></strong> hook, which would prevent it from ever firing and injecting the CSS. In fact, <a
href="http://webstractions.com/wordpress/remove-recent-comments-inline-styl/" rel="nofollow">somebody over at webstractions.com</a> already took a crack at this approach with the following code, which may have worked for a while but doesn&#039;t anymore:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td
class="code"><pre>function remove_wp_widget_recent_comments_style() {
   if ( has_filter('wp_head', 'wp_widget_recent_comments_style') ) {
      remove_filter('wp_head', 'wp_widget_recent_comments_style' );
   }
}
add_filter( 'wp_head', 'remove_wp_widget_recent_comments_style', 1 );</pre></td></tr></table></div><p>This code doesn&#039;t work in the current version of WordPress because <strong><em>recent_comments_style()</em></strong> belongs to the <strong><em>WP_Widget_Recent_Comments</em></strong> class, and we need a tiny bit more effort to get through to the object of that class.</p><p>The following snippet, suggested by <a
href="http://twitter.com/nacin" rel="nofollow">Andrew Nacin</a> in a comment to the bug I opened up, does the job and works in WordPress 2.9.1:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
</pre></td><td
class="code"><pre>add_action('widgets_init', 'my_remove_recent_comments_style');
function my_remove_recent_comments_style() {
	global $wp_widget_factory;
	remove_action('wp_head', array($wp_widget_factory-&gt;widgets['WP_Widget_Recent_Comments'], 'recent_comments_style'));
}</pre></td></tr></table></div><p>This code first gets access to the right object and then passes it to the <strong><em>remove_action()</em></strong> function, along with the right function name <strong><em>recent_comments_style</em></strong>. Stick it intoyour functions.php and it should do the trick.</p><p>And there you have it.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Remove+Inline+Hardcoded+Recent+Comments+Sidebar+Widget+Style+From+Your+WordPress+Theme&amp;link=http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/&amp;notes=The%20Problem%20%20If%20you%20use%20the%20Recent%20Comments%20sidebar%20widget%20in%20your%20Wordpress%20installation%2C%20it%27s%20possible%20that%20you%20want%20to%20customize%20this%20widget%27s%20style.%20%20You%20will%20quickly%20find%2C%20however%2C%20that%20as%20soon%20as%20you%20add%20the%20widget%20to%20your%20sidebar%2C%20it%20injects%20the%20following%20inline%2C%20hardcoded%20CSS%20into%20the%20contai&amp;short_link=http://bit.ly/aafYTI&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Remove+Inline+Hardcoded+Recent+Comments+Sidebar+Widget+Style+From+Your+WordPress+Theme&amp;link=http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/&amp;notes=The%20Problem%20%20If%20you%20use%20the%20Recent%20Comments%20sidebar%20widget%20in%20your%20Wordpress%20installation%2C%20it%27s%20possible%20that%20you%20want%20to%20customize%20this%20widget%27s%20style.%20%20You%20will%20quickly%20find%2C%20however%2C%20that%20as%20soon%20as%20you%20add%20the%20widget%20to%20your%20sidebar%2C%20it%20injects%20the%20following%20inline%2C%20hardcoded%20CSS%20into%20the%20contai&amp;short_link=http://bit.ly/aafYTI&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Remove+Inline+Hardcoded+Recent+Comments+Sidebar+Widget+Style+From+Your+WordPress+Theme&amp;link=http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/&amp;notes=The%20Problem%20%20If%20you%20use%20the%20Recent%20Comments%20sidebar%20widget%20in%20your%20Wordpress%20installation%2C%20it%27s%20possible%20that%20you%20want%20to%20customize%20this%20widget%27s%20style.%20%20You%20will%20quickly%20find%2C%20however%2C%20that%20as%20soon%20as%20you%20add%20the%20widget%20to%20your%20sidebar%2C%20it%20injects%20the%20following%20inline%2C%20hardcoded%20CSS%20into%20the%20contai&amp;short_link=http://bit.ly/aafYTI&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Remove+Inline+Hardcoded+Recent+Comments+Sidebar+Widget+Style+From+Your+WordPress+Theme&amp;link=http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/&amp;notes=The%20Problem%20%20If%20you%20use%20the%20Recent%20Comments%20sidebar%20widget%20in%20your%20Wordpress%20installation%2C%20it%27s%20possible%20that%20you%20want%20to%20customize%20this%20widget%27s%20style.%20%20You%20will%20quickly%20find%2C%20however%2C%20that%20as%20soon%20as%20you%20add%20the%20widget%20to%20your%20sidebar%2C%20it%20injects%20the%20following%20inline%2C%20hardcoded%20CSS%20into%20the%20contai&amp;short_link=http://bit.ly/aafYTI&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Remove+Inline+Hardcoded+Recent+Comments+Sidebar+Widget+Style+From+Your+WordPress+Theme&amp;link=http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/&amp;notes=The%20Problem%20%20If%20you%20use%20the%20Recent%20Comments%20sidebar%20widget%20in%20your%20Wordpress%20installation%2C%20it%27s%20possible%20that%20you%20want%20to%20customize%20this%20widget%27s%20style.%20%20You%20will%20quickly%20find%2C%20however%2C%20that%20as%20soon%20as%20you%20add%20the%20widget%20to%20your%20sidebar%2C%20it%20injects%20the%20following%20inline%2C%20hardcoded%20CSS%20into%20the%20contai&amp;short_link=http://bit.ly/aafYTI&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Remove+Inline+Hardcoded+Recent+Comments+Sidebar+Widget+Style+From+Your+WordPress+Theme&amp;link=http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/&amp;notes=The%20Problem%20%20If%20you%20use%20the%20Recent%20Comments%20sidebar%20widget%20in%20your%20Wordpress%20installation%2C%20it%27s%20possible%20that%20you%20want%20to%20customize%20this%20widget%27s%20style.%20%20You%20will%20quickly%20find%2C%20however%2C%20that%20as%20soon%20as%20you%20add%20the%20widget%20to%20your%20sidebar%2C%20it%20injects%20the%20following%20inline%2C%20hardcoded%20CSS%20into%20the%20contai&amp;short_link=http://bit.ly/aafYTI&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Remove+Inline+Hardcoded+Recent+Comments+Sidebar+Widget+Style+From+Your+WordPress+Theme&amp;link=http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/&amp;notes=The%20Problem%20%20If%20you%20use%20the%20Recent%20Comments%20sidebar%20widget%20in%20your%20Wordpress%20installation%2C%20it%27s%20possible%20that%20you%20want%20to%20customize%20this%20widget%27s%20style.%20%20You%20will%20quickly%20find%2C%20however%2C%20that%20as%20soon%20as%20you%20add%20the%20widget%20to%20your%20sidebar%2C%20it%20injects%20the%20following%20inline%2C%20hardcoded%20CSS%20into%20the%20contai&amp;short_link=http://bit.ly/aafYTI&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20Remove%20Inline%20Hardcoded%20Recent%20Comments%20Sidebar%20Widget%20Style%20From%20Your%20WordPress%20Theme&amp;link=http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/&amp;notes=The%20Problem%20%20If%20you%20use%20the%20Recent%20Comments%20sidebar%20widget%20in%20your%20Wordpress%20installation%2C%20it%27s%20possible%20that%20you%20want%20to%20customize%20this%20widget%27s%20style.%20%20You%20will%20quickly%20find%2C%20however%2C%20that%20as%20soon%20as%20you%20add%20the%20widget%20to%20your%20sidebar%2C%20it%20injects%20the%20following%20inline%2C%20hardcoded%20CSS%20into%20the%20contai&amp;short_link=http://bit.ly/aafYTI&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/" rel="bookmark" title="October 15, 2010">How To Add Shortcode Support To WordPress Comments And Sidebar Widgets</a></li><li><a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/" rel="bookmark" title="January 13, 2010">[WordPress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a></li><li><a
href="http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/" rel="bookmark" title="March 29, 2008">Beer Planet Upgraded To WordPress 2.5</a></li><li><a
href="http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/" rel="bookmark" title="November 6, 2010">How To Dynamically Increase Memory Limits When Interfacing With WordPress Using XML-RPC (Windows Live Writer, Etc)</a></li><li><a
href="http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/" rel="bookmark" title="November 16, 2011">How To: Disable/Block External HTTP Requests In WordPress</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F01%2F31%2Fhow-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme%2F&amp;title=How%20To%20Remove%20Inline%20Hardcoded%20Recent%20Comments%20Sidebar%20Widget%20Style%20From%20Your%20WordPress%20Theme" id="wpa2a_10"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>WordPress Developers &#8211; How Do You Make A Living [Poll + Discussion]?</title><link>http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/</link> <comments>http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/#comments</comments> <pubDate>Tue, 19 Jan 2010 01:33:45 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[automattic]]></category> <category><![CDATA[core]]></category> <category><![CDATA[cost]]></category> <category><![CDATA[developer]]></category> <category><![CDATA[living]]></category> <category><![CDATA[money]]></category> <category><![CDATA[open source]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[poll]]></category> <category><![CDATA[salary]]></category> <category><![CDATA[theme]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/</guid> <description><![CDATA[<h2>The Question</h2><p>I&#039;d like to pose this question to all WordPress developers &#8211; plugin, theme, as well as core ones:</p><blockquote><div
class="quote_left"></div><p>How do you make your living?</p></blockquote><p>And, for clarification, by this I mean: &#34;what are your primary sources of income?&#34;</p><h2>Open Source</h2><p>Open source is a beautiful concept but it often comes with a price tag or, rather, the inverse price tag: most of the time you are not being paid for your time (of course, there are exceptions, such as companies hiring dedicated open source developers and keeping them on their direct payroll).</p><p>Everyone has to make a living, however, and everyone has their ways.</p><p>Developers can benefit from such income sources as:</p><ul><li><strong><em>advertising</em></strong> on their</li></ul><p>...<div
class=clear></div> <a
href="http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<h2>The Question</h2><p>I&#039;d like to pose this question to all WordPress developers &#8211; plugin, theme, as well as core ones:</p><blockquote><div
class="quote_left"></div><p>How do you make your living?</p></blockquote><p>And, for clarification, by this I mean: &quot;what are your primary sources of income?&quot;</p><h2>Open Source</h2><p>Open source is a beautiful concept but it often comes with a price tag or, rather, the inverse price tag: most of the time you are not being paid for your time (of course, there are exceptions, such as companies hiring dedicated open source developers and keeping them on their direct payroll).</p><p>Everyone has to make a living, however, and everyone has their ways.</p><p>Developers can benefit from such income sources as:</p><ul><li><strong><em>advertising</em></strong> on their sites, fueled by boosted Alexa and Google PR ratings</li><li><strong><em>freelancing</em></strong> and <strong><em>consulting</em></strong> work directly related to their open source project</li><li><strong><em>presenting</em></strong> at developer conferences</li><li><strong><em>creating products</em></strong> based on the open source projects they&#039;re involved with, as the technologies should be very familiar to them</li></ul><h2>WordPress</h2><p>Since <a
href="http://wordpress.org/support/profile/276841" rel="nofollow">I&#039;ve always been interested in WordPress development</a>, I feel connected to the WordPress community and would like to get some insight into the lives of WordPress developers.</p><p>Therefore, in addition to the main question, I have some follow-up questions:</p><ul><li>does Automattic pay WordPress core developers <strong><em>salary</em></strong>?</li><li>are there many WordPress core developers working for Automattic <strong><em>full time</em></strong>, besides Matt?</li><li>how about you, <strong><em>plugin</em></strong> and <strong><em>theme</em></strong> developers &#8211; are any of you successful enough that you can <strong><em>make a living off your plugins or themes</em></strong>?</li><li>what are your <strong><em>secrets</em></strong>?</li></ul><p>So in your responses, please state whether you&#039;re a <strong><em>core</em></strong> or <strong><em>plugin/theme</em></strong> developer, and answer the questions above that you can.</p><p>Of course, it goes without saying that any extra bits of advice would be welcomed as well.</p> Note: There is a poll embedded within this post, please visit the site to participate in this post's poll.<p><strong>Update</strong>: this post is now sponsored by <a
href="http://www.wirefly.com/learn/">Wirefly Learn</a>, where you can find a ton of cell phone tutorials, comparisons, and videos.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Wordpress+Developers+-+How+Do+You+Make+A+Living+%5BPoll+%2B+Discussion%5D%3F&amp;link=http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/&amp;notes=The%20Question%20%20I%27d%20like%20to%20pose%20this%20question%20to%20all%20Wordpress%20developers%20-%20plugin%2C%20theme%2C%20as%20well%20as%20core%20ones%3A%20%20%20%20%20%20%20%20%20How%20do%20you%20make%20your%20living%3F%20%20%20And%2C%20for%20clarification%2C%20by%20this%20I%20mean%3A%20%26quot%3Bwhat%20are%20your%20primary%20sources%20of%20income%3F%26quot%3B%20%20Open%20Source%20%20Open%20source%20is%20a%20beautiful%20concept%20but%20it%20&amp;short_link=http://bit.ly/6O9U3u&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Wordpress+Developers+-+How+Do+You+Make+A+Living+%5BPoll+%2B+Discussion%5D%3F&amp;link=http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/&amp;notes=The%20Question%20%20I%27d%20like%20to%20pose%20this%20question%20to%20all%20Wordpress%20developers%20-%20plugin%2C%20theme%2C%20as%20well%20as%20core%20ones%3A%20%20%20%20%20%20%20%20%20How%20do%20you%20make%20your%20living%3F%20%20%20And%2C%20for%20clarification%2C%20by%20this%20I%20mean%3A%20%26quot%3Bwhat%20are%20your%20primary%20sources%20of%20income%3F%26quot%3B%20%20Open%20Source%20%20Open%20source%20is%20a%20beautiful%20concept%20but%20it%20&amp;short_link=http://bit.ly/6O9U3u&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Wordpress+Developers+-+How+Do+You+Make+A+Living+%5BPoll+%2B+Discussion%5D%3F&amp;link=http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/&amp;notes=The%20Question%20%20I%27d%20like%20to%20pose%20this%20question%20to%20all%20Wordpress%20developers%20-%20plugin%2C%20theme%2C%20as%20well%20as%20core%20ones%3A%20%20%20%20%20%20%20%20%20How%20do%20you%20make%20your%20living%3F%20%20%20And%2C%20for%20clarification%2C%20by%20this%20I%20mean%3A%20%26quot%3Bwhat%20are%20your%20primary%20sources%20of%20income%3F%26quot%3B%20%20Open%20Source%20%20Open%20source%20is%20a%20beautiful%20concept%20but%20it%20&amp;short_link=http://bit.ly/6O9U3u&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Wordpress+Developers+-+How+Do+You+Make+A+Living+%5BPoll+%2B+Discussion%5D%3F&amp;link=http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/&amp;notes=The%20Question%20%20I%27d%20like%20to%20pose%20this%20question%20to%20all%20Wordpress%20developers%20-%20plugin%2C%20theme%2C%20as%20well%20as%20core%20ones%3A%20%20%20%20%20%20%20%20%20How%20do%20you%20make%20your%20living%3F%20%20%20And%2C%20for%20clarification%2C%20by%20this%20I%20mean%3A%20%26quot%3Bwhat%20are%20your%20primary%20sources%20of%20income%3F%26quot%3B%20%20Open%20Source%20%20Open%20source%20is%20a%20beautiful%20concept%20but%20it%20&amp;short_link=http://bit.ly/6O9U3u&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Wordpress+Developers+-+How+Do+You+Make+A+Living+%5BPoll+%2B+Discussion%5D%3F&amp;link=http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/&amp;notes=The%20Question%20%20I%27d%20like%20to%20pose%20this%20question%20to%20all%20Wordpress%20developers%20-%20plugin%2C%20theme%2C%20as%20well%20as%20core%20ones%3A%20%20%20%20%20%20%20%20%20How%20do%20you%20make%20your%20living%3F%20%20%20And%2C%20for%20clarification%2C%20by%20this%20I%20mean%3A%20%26quot%3Bwhat%20are%20your%20primary%20sources%20of%20income%3F%26quot%3B%20%20Open%20Source%20%20Open%20source%20is%20a%20beautiful%20concept%20but%20it%20&amp;short_link=http://bit.ly/6O9U3u&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Wordpress+Developers+-+How+Do+You+Make+A+Living+%5BPoll+%2B+Discussion%5D%3F&amp;link=http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/&amp;notes=The%20Question%20%20I%27d%20like%20to%20pose%20this%20question%20to%20all%20Wordpress%20developers%20-%20plugin%2C%20theme%2C%20as%20well%20as%20core%20ones%3A%20%20%20%20%20%20%20%20%20How%20do%20you%20make%20your%20living%3F%20%20%20And%2C%20for%20clarification%2C%20by%20this%20I%20mean%3A%20%26quot%3Bwhat%20are%20your%20primary%20sources%20of%20income%3F%26quot%3B%20%20Open%20Source%20%20Open%20source%20is%20a%20beautiful%20concept%20but%20it%20&amp;short_link=http://bit.ly/6O9U3u&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Wordpress+Developers+-+How+Do+You+Make+A+Living+%5BPoll+%2B+Discussion%5D%3F&amp;link=http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/&amp;notes=The%20Question%20%20I%27d%20like%20to%20pose%20this%20question%20to%20all%20Wordpress%20developers%20-%20plugin%2C%20theme%2C%20as%20well%20as%20core%20ones%3A%20%20%20%20%20%20%20%20%20How%20do%20you%20make%20your%20living%3F%20%20%20And%2C%20for%20clarification%2C%20by%20this%20I%20mean%3A%20%26quot%3Bwhat%20are%20your%20primary%20sources%20of%20income%3F%26quot%3B%20%20Open%20Source%20%20Open%20source%20is%20a%20beautiful%20concept%20but%20it%20&amp;short_link=http://bit.ly/6O9U3u&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Wordpress%20Developers%20-%20How%20Do%20You%20Make%20A%20Living%20%5BPoll%20%2B%20Discussion%5D%3F&amp;link=http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/&amp;notes=The%20Question%20%20I%27d%20like%20to%20pose%20this%20question%20to%20all%20Wordpress%20developers%20-%20plugin%2C%20theme%2C%20as%20well%20as%20core%20ones%3A%20%20%20%20%20%20%20%20%20How%20do%20you%20make%20your%20living%3F%20%20%20And%2C%20for%20clarification%2C%20by%20this%20I%20mean%3A%20%26quot%3Bwhat%20are%20your%20primary%20sources%20of%20income%3F%26quot%3B%20%20Open%20Source%20%20Open%20source%20is%20a%20beautiful%20concept%20but%20it%20&amp;short_link=http://bit.ly/6O9U3u&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/" rel="bookmark" title="March 29, 2008">Beer Planet Upgraded To WordPress 2.5</a></li><li><a
href="http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/" rel="bookmark" title="November 16, 2011">How To: Disable/Block External HTTP Requests In WordPress</a></li><li><a
href="http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/" rel="bookmark" title="March 5, 2009">IntenseDebate Introduces Plugins</a></li><li><a
href="http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/" rel="bookmark" title="June 20, 2009">How To Properly Set SVN svn:externals Property In SVN Command Line</a></li><li><a
href="http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/" rel="bookmark" title="January 31, 2010">How To Remove Inline Hardcoded Recent Comments Sidebar Widget Style From Your WordPress Theme</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F01%2F18%2Fwordpress-developers-how-do-you-make-a-living-poll-discussion%2F&amp;title=WordPress%20Developers%20%26%238211%3B%20How%20Do%20You%20Make%20A%20Living%20%5BPoll%20%2B%20Discussion%5D%3F" id="wpa2a_12"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/feed/</wfw:commentRss> <slash:comments>20</slash:comments> </item> <item><title>Follow-up To Loading CSS And JS Conditionally</title><link>http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/</link> <comments>http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/#comments</comments> <pubDate>Fri, 15 Jan 2010 20:07:40 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[action]]></category> <category><![CDATA[admin_print_scripts]]></category> <category><![CDATA[admin_print_styles]]></category> <category><![CDATA[conditional]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[enqueue]]></category> <category><![CDATA[hook]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[js]]></category> <category><![CDATA[load]]></category> <category><![CDATA[ob_flush]]></category> <category><![CDATA[ob_start]]></category> <category><![CDATA[optimization]]></category> <category><![CDATA[output buffer]]></category> <category><![CDATA[Performance]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[script]]></category> <category><![CDATA[style]]></category> <category><![CDATA[time]]></category> <category><![CDATA[wp_enqueue_script]]></category> <category><![CDATA[wp_enqueue_style]]></category> <category><![CDATA[wp_print_scripts]]></category> <category><![CDATA[wp_print_styles]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/</guid> <description><![CDATA[<p>First of all, I&#039;d like to thank everyone who read and gave their 2 cents about the <a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/">[Wordpress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a> post. The article was well received and will hopefully spark some optimizations around loading styles and scripts.</p><p>Here are some discussions and mentions around the web:</p><ul><li><a
href="http://weblogtoolscollection.com/archives/2010/01/15/how-to-include-css-and-javascript-conditionally/" rel="nofollow">an article</a> on Weblog Tools Collection</li><li><a
href="http://www.wptavern.com/forum/resources/1213-including-javascript-css-conditionally.html" rel="nofollow">a forum post</a> on WP Tavern</li><li><a
href="http://topsy.com/tb/ping.fm/DIM0S" rel="nofollow">twitter</a> retweets</li></ul><p>Sure, there are drawbacks to this method and it does require some more processing on the backend and it&#039;s not for everyone, which is why we should always strive for an even better solution.</p><p>I stand by my point of...<div
class=clear></div> <a
href="http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>First of all, I&#039;d like to thank everyone who read and gave their 2 cents about the <a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/">[Wordpress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a> post. The article was well received and will hopefully spark some optimizations around loading styles and scripts.</p><p>Here are some discussions and mentions around the web:</p><ul><li><a
href="http://weblogtoolscollection.com/archives/2010/01/15/how-to-include-css-and-javascript-conditionally/" rel="nofollow">an article</a> on Weblog Tools Collection</li><li><a
href="http://www.wptavern.com/forum/resources/1213-including-javascript-css-conditionally.html" rel="nofollow">a forum post</a> on WP Tavern</li><li><a
href="http://topsy.com/tb/ping.fm/DIM0S" rel="nofollow">twitter</a> retweets</li></ul><p>Sure, there are drawbacks to this method and it does require some more processing on the backend and it&#039;s not for everyone, which is why we should always strive for an even better solution.</p><p>I stand by my point of view that, for instance, my dedicated gallery shouldn&#039;t load for people who will never even go see my photos.</p><p>I think an ideal solution would be for WP core developers, who had a lot of experience designing WordPress&#039; internals and who know what can work and what can&#039;t, perhaps <a
href="http://www.ma.tt" rel="nofollow">Matt</a> included, to get together and think about a better solution really hard.</p><p>Conditional loading similar to the one discussed here is already possible in the admin area, which creates dynamic hooks by appending page ids to <strong><em>&#039;admin_print_styles&#039;</em></strong> and <strong><em>&#039;admin_print_scripts&#039;</em></strong>. It is, however, still not good enough to be used more generically because those hooks rely on the page you are on, rather than the content of that page.</p><p>Another possibility is using a PHP technique called <strong><em>output buffering</em></strong> (<a
href="http://php.net/manual/en/function.ob-start.php" rel="nofollow"><strong><em>ob_start()</em></strong></a>, <a
href="http://www.php.net/manual/en/function.ob-flush.php" rel="nofollow"><strong><em>ob_flush()</em></strong></a>, etc) that grants second chances to data that had already been echoed. It intercepts all echo and print calls and redirects them into a memory buffer, so instead of printing data to the page right away, you can now modify the header even if it had already been processed. It&#039;s like giving it a second chance.</p><p>Would it work for WordPress? I am not sure but I sure could use your feedback, devs.</p><p><div
class="note"><div
class="notetip"><strong>Update: </strong>Scribu, a WordPress master, <a
href="http://scribu.net/wordpress/optimal-script-loading.html" rel="nofollow">came up with the approach</a> that would at least handle loading JS, as it would put it in the footer, which can be done after the posts have been parsed.</p><p>His approach doesn&#039;t handle CSS which is why I decided to seek another solution but it doesn&#039;t require an extra pass through the posts and it benefits from using the shortcode API instead of stripos() or some hacky regex you&#039;d need to come up with.</p><p>It&#039;s a great compromise for developers who do not want to take the approach I outlined in the article linked at the top of this page.</div></div></p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up%20To%20Loading%20CSS%20And%20JS%20Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/" rel="bookmark" title="January 13, 2010">[WordPress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a></li><li><a
href="http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/" rel="bookmark" title="February 17, 2009">Swapping Column Values in MySQL</a></li><li><a
href="http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/" rel="bookmark" title="November 6, 2010">How To Dynamically Increase Memory Limits When Interfacing With WordPress Using XML-RPC (Windows Live Writer, Etc)</a></li><li><a
href="http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/" rel="bookmark" title="January 31, 2010">How To Remove Inline Hardcoded Recent Comments Sidebar Widget Style From Your WordPress Theme</a></li><li><a
href="http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/" rel="bookmark" title="March 21, 2010">How To Diagnose And Fix Incorrect Post Comment Counts In WordPress</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F01%2F15%2Ffollow-up-to-loading-css-and-js-conditionally%2F&amp;title=Follow-up%20To%20Loading%20CSS%20And%20JS%20Conditionally" id="wpa2a_14"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>20 Inspirational And Original Comment Form Designs For Your Blog</title><link>http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/</link> <comments>http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/#comments</comments> <pubDate>Fri, 15 Jan 2010 17:00:00 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Inspiration]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Web Design]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[blog]]></category> <category><![CDATA[button]]></category> <category><![CDATA[comment]]></category> <category><![CDATA[design]]></category> <category><![CDATA[form]]></category> <category><![CDATA[grungy]]></category> <category><![CDATA[js]]></category> <category><![CDATA[original]]></category> <category><![CDATA[style]]></category> <category><![CDATA[stylesheet]]></category> <category><![CDATA[submit]]></category> <category><![CDATA[webdev]]></category> <guid
isPermaLink="false">http://beerpla.net/?p=1375</guid> <description><![CDATA[<h2><img
style="margin: 0px 10px 10px 0px; display: inline" title="thumbnail" alt="thumbnail" align="left" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_34.png" width="150" height="150" /> Introduction</h2><p>If you follow web design at all, you probably see 5 billion top NN posts on a daily basis mentioning site and blog designs, fonts, icons, etc.</p><p>However, nobody seems to be paying attention to these little but important guys: comment forms.</p><p>If you have an appealing comment box, you are more likely to receive comments (this is based on days of scientific research that I imagined I did in my head) and your content is more likely to be re-shared, voted up, and saved.</p><p>I really do feel that way when I visit blogs, especially when an otherwise aesthetically pleasing site has a plain vanilla comment box.</p><h2>Let&#039;s Go</h2><p>So here we go. I have looked through...<div
class=clear></div> <a
href="http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<h2><img
style="margin: 0px 10px 10px 0px; display: inline" title="thumbnail" alt="thumbnail" align="left" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_34.png" width="150" height="150" /> Introduction</h2><p>If you follow web design at all, you probably see 5 billion top NN posts on a daily basis mentioning site and blog designs, fonts, icons, etc.</p><p>However, nobody seems to be paying attention to these little but important guys: comment forms.</p><p>If you have an appealing comment box, you are more likely to receive comments (this is based on days of scientific research that I imagined I did in my head) and your content is more likely to be re-shared, voted up, and saved.</p><p>I really do feel that way when I visit blogs, especially when an otherwise aesthetically pleasing site has a plain vanilla comment box.</p><h2>Let&#039;s Go</h2><p>So here we go. I have looked through hundreds of sites to make this collection, go ahead and let me know if you like it (yeah, I know, my comment box is not as spiffy as theirs).</p><p>I&#039;ve also included my notes with the parts that I liked.</p><h3>1. <a
href="http://www.blog.spoongraphics.co.uk">blog.spoongraphics.co.uk</a>&#160;</h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image.png" class="lightview" rel="gallery['1375']" title="http://www.blog.spoongraphics.co.uk"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.blog.spoongraphics.co.uk" alt="http://www.blog.spoongraphics.co.uk" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb.png" width="650" height="271" /></a>&#160;</p><ul><li>interesting submit button</li><li>fun background</li><li>great font</li><li>grungy</li><li>border glow</li><li>normal:</li></ul><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="normal" alt="normal" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_3.png" width="304" height="56" /></p><ul><li>focused:</li></ul><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="focused" alt="focused" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_4.png" width="302" height="58" /></p><p>&#160;</p><h3>2. <a
title="http://www.springydevelopment.co.uk" href="http://www.springydevelopment.co.uk">springydevelopment.co.uk</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_5.png" class="lightview" rel="gallery['1375']" title="http://www.springydevelopment.co.uk"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.springydevelopment.co.uk" alt="http://www.springydevelopment.co.uk" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_3.png" width="656" height="265" /></a></p><ul><li>2 column</li><li>wide submit button</li></ul><p>&#160;</p><h3>3. <a
title="http://css-tricks.com" href="http://css-tricks.com">css-tricks.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_6.png" class="lightview" rel="gallery['1375']" title="http://css-tricks.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://css-tricks.com" alt="http://css-tricks.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_4.png" width="589" height="313" /></a></p><ul><li>Chris Coyier doesn&#039;t mess around with crappy designs &#8211; his website is superb in general</li><li>normal<a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_7.png" class="lightview" rel="gallery['1375']">:</a></li></ul><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="normal" alt="normal" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_5.png" width="185" height="39" /></p><ul><li>focused:</li></ul><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="focused" alt="focused" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_8.png" width="185" height="41" /></p><ul><li>internal disappearing labels</li><li>dimming labels</li><li>interesting submit button</li><li>custom images</li></ul><p>&#160;</p><h3>4. <a
title="http://net.tutsplus.com" href="http://net.tutsplus.com">net.tutsplus.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_9.png" class="lightview" rel="gallery['1375']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_6.png" width="633" height="399" /></a></p><ul><li>tongue:</li></ul><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="tongue" alt="tongue" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_10.png" width="153" height="147" /></p><ul><li>internal disappearing labels</li><li>appealing default avatar</li></ul><p>&#160;</p><h3>5. <a
title="http://www.smashingmagazine.com" href="http://www.smashingmagazine.com">smashingmagazine.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_11.png" class="lightview" rel="gallery['1375']" title="http://www.smashingmagazine.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.smashingmagazine.com" alt="http://www.smashingmagazine.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_7.png" width="650" height="536" /></a></p><ul><li>simplistic</li><li>appealing submit button</li><li>absence of author website &#8211; less spam</li></ul><p>&#160;</p><h3>6. <a
title="http://www.branded07.com" href="http://www.branded07.com">branded07.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_12.png" class="lightview" rel="gallery['1375']" title="http://www.branded07.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.branded07.com" alt="http://www.branded07.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_8.png" width="639" height="585" /></a></p><ul><li>fading</li><li>interesting background</li></ul><p>&#160;</p><h3>7. <a
title="http://www.depcore.com" href="http://www.depcore.com">depcore.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_13.png" class="lightview" rel="gallery['1375']" title="http://www.depcore.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.depcore.com" alt="http://www.depcore.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_9.png" width="578" height="349" /></a></p><ul><li>simplistic</li><li>unconventional &#8211; looks like a pad of paper or a letter</li><li>contains an anti-spam measure</li></ul><p>&#160;</p><h3>8. <a
title="http://www.marcofolio.net" href="http://www.marcofolio.net">marcofolio.net</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_14.png" class="lightview" rel="gallery['1375']" title="http://www.marcofolio.net"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.marcofolio.net" alt="http://www.marcofolio.net" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_10.png" width="560" height="518" /></a></p><ul><li>notify/don&#039;t notify option (for the first time the design is cohesive &#8211; not some random checkbox under the submit button)</li><li>lots of formatting buttons</li><li>smilies</li></ul><p>&#160;</p><h3>9. <a
title="http://www.jankoatwarpspeed.com" href="http://www.jankoatwarpspeed.com">jankoatwarpspeed.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_15.png" class="lightview" rel="gallery['1375']" title="http://www.jankoatwarpspeed.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.jankoatwarpspeed.com" alt="http://www.jankoatwarpspeed.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_11.png" width="625" height="566" /></a></p><ul><li>handy and appealing formatting buttons</li><li>flag next to the country &#8211; it then shows up next to each commenter, kind of cool:</li></ul><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_16.png" class="lightview" rel="gallery['1375']" title="http://www.jankoatwarpspeed.com flags"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.jankoatwarpspeed.com flags" alt="http://www.jankoatwarpspeed.com flags" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_12.png" width="238" height="180" /></a>&#160;</p><h3>10. <a
title="http://www.dezinerfolio.com" href="http://www.dezinerfolio.com">dezinerfolio.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_17.png" class="lightview" rel="gallery['1375']" title="http://www.dezinerfolio.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.dezinerfolio.com" alt="http://www.dezinerfolio.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_13.png" width="650" height="543" /></a></p><ul><li>highlight the field with focus &#8211; concentrate attention on one spot</li><li>large padding</li><li>by the way, they have an amazing header. I couldn&#039;t resist:</li></ul><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_18.png" class="lightview" rel="gallery['1375']" title="http://www.dezinerfolio.com header"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.dezinerfolio.com header" alt="http://www.dezinerfolio.com header" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_14.png" width="650" height="267" /></a></p><p>&#160;</p><h3>11. <a
title="http://www.sohtanaka.com" href="http://www.sohtanaka.com">sohtanaka.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_19.png" class="lightview" rel="gallery['1375']" title="http://www.sohtanaka.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.sohtanaka.com" alt="http://www.sohtanaka.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_15.png" width="650" height="431" /></a></p><ul><li>I love it</li><li>custom submit button</li><li>hovering quote</li><li>very polished look</li></ul><p>&#160;</p><h3>12. <a
title="http://www.productivedreams.com" href="http://www.productivedreams.com">productivedreams.com</a></h3><h3><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_20.png" class="lightview" rel="gallery['1375']" title="http://www.productivedreams.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.productivedreams.com" alt="http://www.productivedreams.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_16.png" width="596" height="264" /></a></h3><ul><li>the comment box actually sits *above* the comments &#8211; a radical, yet interesting approach</li><li>custom icons</li><li>really nice custom highlight on hover effect:</li></ul><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.productivedreams.com hover" alt="http://www.productivedreams.com hover" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_21.png" width="233" height="117" /></p><ul><li>usability and UX at their best</li></ul><p>&#160;</p><h3>13. <a
title="http://www.kevadamson.com" href="http://www.kevadamson.com">kevadamson.com</a></h3><h3><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_22.png" class="lightview" rel="gallery['1375']" title="http://www.kevadamson.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.kevadamson.com" alt="http://www.kevadamson.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_17.png" width="454" height="639" /></a></h3><ul><li>grungy, sloppy &#8211; looks great!</li></ul><p>&#160;</p><h3>14. <a
title="http://line25.com" href="http://line25.com">line25.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_23.png" class="lightview" rel="gallery['1375']" title="http://line25.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://line25.com" alt="http://line25.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_18.png" width="504" height="253" /></a></p><ul><li>clean</li><li>side by side</li><li>symmetrical, exact</li><li>I love it</li></ul><p>&#160;</p><h3>15. <a
title="http://www.markforrester.co.za" href="http://www.markforrester.co.za">markforrester.co.za</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_24.png" class="lightview" rel="gallery['1375']" title="http://www.markforrester.co.za"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.markforrester.co.za" alt="http://www.markforrester.co.za" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_19.png" width="650" height="456" /></a></p><ul><li>colorful, crayon-like (though it looks better on the site itself &#8211; you need to see it in its natural habitat)</li><li>internal disappearing labels</li></ul><p>&#160;</p><h3>16. <a
href="http://www.jrvelasco.com">jrvelasco.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_25.png" class="lightview" rel="gallery['1375']" title="http://www.jrvelasco.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.jrvelasco.com" alt="http://www.jrvelasco.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_20.png" width="507" height="652" /></a></p><ul><li>simple, and yet sophisticated</li></ul><p>&#160;</p><h3>17. <a
title="http://gizmodo.com" href="http://gizmodo.com">gizmodo.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_26.png" class="lightview" rel="gallery['1375']" title="http://gizmodo.com 1"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://gizmodo.com 1" alt="http://gizmodo.com 1" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_21.png" width="515" height="80" /></a></p><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_27.png" class="lightview" rel="gallery['1375']" title="http://gizmodo.com 2"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://gizmodo.com 2" alt="http://gizmodo.com 2" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_22.png" width="515" height="171" /></a></p><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_28.png" class="lightview" rel="gallery['1375']" title="http://gizmodo.com 3"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://gizmodo.com 3" alt="http://gizmodo.com 3" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_23.png" width="515" height="338" /></a></p><ul><li>very simple from the UX perspective:<ul><li>single line box, without the need to login first</li><li>expands on focus</li><li>no need to login even then, unless you want to &#8211; just enter your email</li></ul></li></ul><p>&#160;</p><h3>18. <a
title="http://www.instantshift.com" href="http://www.instantshift.com">instantshift.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_29.png" class="lightview" rel="gallery['1375']" title="http://www.instantshift.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.instantshift.com" alt="http://www.instantshift.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_24.png" width="650" height="589" /></a></p><ul><li>this is one of my favorites</li><li>I love, love, love the way the comments look, especially the way the author ones stand out:</li></ul><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_30.png" class="lightview" rel="gallery['1375']" title="http://www.instantshift.com comments"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.instantshift.com comments" alt="http://www.instantshift.com comments" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_25.png" width="627" height="436" /></a></p><p>&#160;</p><h3>19. <a
title="http://www.koodoz.com.au" href="http://www.koodoz.com.au">koodoz.com.au</a></h3><h3><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_31.png" class="lightview" rel="gallery['1375']" title="http://www.koodoz.com.au"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.koodoz.com.au" alt="http://www.koodoz.com.au" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_26.png" width="475" height="446" /></a></h3><ul><li>internal disappearing labels</li><li>the design itself, while seemingly not too special, mashes with comment list very well. Check it out &#8211; I think the curvy lines are very creative:</li></ul><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_32.png" class="lightview" rel="gallery['1375']" title="http://www.koodoz.com.au comments"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.koodoz.com.au comments" alt="http://www.koodoz.com.au comments" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_27.png" width="584" height="327" /></a></p><p>&#160;</p><h3>20. <a
href="http://elliotjaystocks.com">elliotjaystocks.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_33.png" class="lightview" rel="gallery['1375']" title="http://elliotjaystocks.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://elliotjaystocks.com" alt="http://elliotjaystocks.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_28.png" width="650" height="509" /></a></p><ul><li>click the image &#8211; it&#039;s bigger than it looks</li><li>if you can&#039;t tell (), the elements are MASSIVE, which makes this comment box pretty unique</li></ul><p>&#160;</p><h2>Conclusion</h2><p>If you liked this post, you might also enjoy</p><ul><li>BlogDesignBlog with <a
href="http://www.blogdesignblog.com/blog-design/37-ways-to-design-the-comments-form" rel="nofollow">37 more comment form designs</a> (though they&#039;re not as exciting).</li><li>1stwebdesigner with <a
href="http://www.1stwebdesigner.com/inspiration/77-inspiring-blog-comment-form-designs-good-examples/" rel="nofollow">77 comment form designs</a>.</li><li>Queness with <a
href="http://www.queness.com/post/1581/20-absolutely-stylish-web-form-design-showcase" rel="nofollow">20 stylish web form designs</a>.</li></ul><p>So, what did you think? The comment box you&#039;re looking for is at the bottom of the page.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=20+Inspirational+And+Original+Comment+Form+Designs+For+Your+Blog&amp;link=http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/&amp;notes=%20Introduction%20%20If%20you%20follow%20web%20design%20at%20all%2C%20you%20probably%20see%205%20billion%20top%20NN%20posts%20on%20a%20daily%20basis%20mentioning%20site%20and%20blog%20designs%2C%20fonts%2C%20icons%2C%20etc.%20%20However%2C%20nobody%20seems%20to%20be%20paying%20attention%20to%20these%20little%20but%20important%20guys%3A%20comment%20forms.%20%20If%20you%20have%20an%20appealing%20comment%20box%2C%20you%20ar&amp;short_link=http://bit.ly/6L55UJ&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=20+Inspirational+And+Original+Comment+Form+Designs+For+Your+Blog&amp;link=http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/&amp;notes=%20Introduction%20%20If%20you%20follow%20web%20design%20at%20all%2C%20you%20probably%20see%205%20billion%20top%20NN%20posts%20on%20a%20daily%20basis%20mentioning%20site%20and%20blog%20designs%2C%20fonts%2C%20icons%2C%20etc.%20%20However%2C%20nobody%20seems%20to%20be%20paying%20attention%20to%20these%20little%20but%20important%20guys%3A%20comment%20forms.%20%20If%20you%20have%20an%20appealing%20comment%20box%2C%20you%20ar&amp;short_link=http://bit.ly/6L55UJ&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=20+Inspirational+And+Original+Comment+Form+Designs+For+Your+Blog&amp;link=http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/&amp;notes=%20Introduction%20%20If%20you%20follow%20web%20design%20at%20all%2C%20you%20probably%20see%205%20billion%20top%20NN%20posts%20on%20a%20daily%20basis%20mentioning%20site%20and%20blog%20designs%2C%20fonts%2C%20icons%2C%20etc.%20%20However%2C%20nobody%20seems%20to%20be%20paying%20attention%20to%20these%20little%20but%20important%20guys%3A%20comment%20forms.%20%20If%20you%20have%20an%20appealing%20comment%20box%2C%20you%20ar&amp;short_link=http://bit.ly/6L55UJ&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=20+Inspirational+And+Original+Comment+Form+Designs+For+Your+Blog&amp;link=http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/&amp;notes=%20Introduction%20%20If%20you%20follow%20web%20design%20at%20all%2C%20you%20probably%20see%205%20billion%20top%20NN%20posts%20on%20a%20daily%20basis%20mentioning%20site%20and%20blog%20designs%2C%20fonts%2C%20icons%2C%20etc.%20%20However%2C%20nobody%20seems%20to%20be%20paying%20attention%20to%20these%20little%20but%20important%20guys%3A%20comment%20forms.%20%20If%20you%20have%20an%20appealing%20comment%20box%2C%20you%20ar&amp;short_link=http://bit.ly/6L55UJ&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=20+Inspirational+And+Original+Comment+Form+Designs+For+Your+Blog&amp;link=http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/&amp;notes=%20Introduction%20%20If%20you%20follow%20web%20design%20at%20all%2C%20you%20probably%20see%205%20billion%20top%20NN%20posts%20on%20a%20daily%20basis%20mentioning%20site%20and%20blog%20designs%2C%20fonts%2C%20icons%2C%20etc.%20%20However%2C%20nobody%20seems%20to%20be%20paying%20attention%20to%20these%20little%20but%20important%20guys%3A%20comment%20forms.%20%20If%20you%20have%20an%20appealing%20comment%20box%2C%20you%20ar&amp;short_link=http://bit.ly/6L55UJ&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=20+Inspirational+And+Original+Comment+Form+Designs+For+Your+Blog&amp;link=http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/&amp;notes=%20Introduction%20%20If%20you%20follow%20web%20design%20at%20all%2C%20you%20probably%20see%205%20billion%20top%20NN%20posts%20on%20a%20daily%20basis%20mentioning%20site%20and%20blog%20designs%2C%20fonts%2C%20icons%2C%20etc.%20%20However%2C%20nobody%20seems%20to%20be%20paying%20attention%20to%20these%20little%20but%20important%20guys%3A%20comment%20forms.%20%20If%20you%20have%20an%20appealing%20comment%20box%2C%20you%20ar&amp;short_link=http://bit.ly/6L55UJ&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=20+Inspirational+And+Original+Comment+Form+Designs+For+Your+Blog&amp;link=http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/&amp;notes=%20Introduction%20%20If%20you%20follow%20web%20design%20at%20all%2C%20you%20probably%20see%205%20billion%20top%20NN%20posts%20on%20a%20daily%20basis%20mentioning%20site%20and%20blog%20designs%2C%20fonts%2C%20icons%2C%20etc.%20%20However%2C%20nobody%20seems%20to%20be%20paying%20attention%20to%20these%20little%20but%20important%20guys%3A%20comment%20forms.%20%20If%20you%20have%20an%20appealing%20comment%20box%2C%20you%20ar&amp;short_link=http://bit.ly/6L55UJ&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=20%20Inspirational%20And%20Original%20Comment%20Form%20Designs%20For%20Your%20Blog&amp;link=http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/&amp;notes=%20Introduction%20%20If%20you%20follow%20web%20design%20at%20all%2C%20you%20probably%20see%205%20billion%20top%20NN%20posts%20on%20a%20daily%20basis%20mentioning%20site%20and%20blog%20designs%2C%20fonts%2C%20icons%2C%20etc.%20%20However%2C%20nobody%20seems%20to%20be%20paying%20attention%20to%20these%20little%20but%20important%20guys%3A%20comment%20forms.%20%20If%20you%20have%20an%20appealing%20comment%20box%2C%20you%20ar&amp;short_link=http://bit.ly/6L55UJ&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2008/09/03/thoughts-on-google-chrome/" rel="bookmark" title="September 3, 2008">Thoughts on Google Chrome</a></li><li><a
href="http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/" rel="bookmark" title="December 20, 2009">Enable A Twitter Retweet (RT) Button That Lets You Add Comments Before Retweeting</a></li><li><a
href="http://beerpla.net/2010/02/03/how-not-to-implement-a-web-application-that-handles-external-authentication-using-betwittered-com-as-an-example/" rel="bookmark" title="February 3, 2010">How *Not* To Implement A Web Application That Handles External Authentication, Using BeTwittered.com As An Example</a></li><li><a
href="http://beerpla.net/2009/02/12/how-to-fight-clickjacking-using-the-recent-twitter-hijacking-as-an-example/" rel="bookmark" title="February 12, 2009">How To Fight Clickjacking (Using The Recent Twitter Hijacking As An Example)</a></li><li><a
href="http://beerpla.net/2011/06/13/goodbye-outlook-i-dont-need-you-anymore-gmail-now-lets-you-paste-images-directly-from-clipboard/" rel="bookmark" title="June 13, 2011">[Updated x3] Goodbye Outlook, I Don&#039;t Need You Anymore &#8211; Gmail Now Lets You Paste Images Directly From Clipboard</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F01%2F15%2F20-inspirational-and-original-comment-form-designs-for-your-blog%2F&amp;title=20%20Inspirational%20And%20Original%20Comment%20Form%20Designs%20For%20Your%20Blog" id="wpa2a_16"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>[WordPress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</title><link>http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/</link> <comments>http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/#comments</comments> <pubDate>Wed, 13 Jan 2010 17:15:00 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Tips]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[action]]></category> <category><![CDATA[admin_print_scripts]]></category> <category><![CDATA[admin_print_styles]]></category> <category><![CDATA[conditional]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[enqueue]]></category> <category><![CDATA[hook]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[js]]></category> <category><![CDATA[load]]></category> <category><![CDATA[optimization]]></category> <category><![CDATA[Performance]]></category> <category><![CDATA[script]]></category> <category><![CDATA[style]]></category> <category><![CDATA[time]]></category> <category><![CDATA[wp_enqueue_script]]></category> <category><![CDATA[wp_enqueue_style]]></category> <category><![CDATA[wp_print_scripts]]></category> <category><![CDATA[wp_print_styles]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/</guid> <description><![CDATA[<h2>Introduction</h2><p><img
style="margin: 0px 10px 10px 0px; display: inline" title="wordpress logo" alt="wordpress logo" align="left" src="http://beerpla.net/wp-content/uploads/WordpressPluginWritersTakeNoteHowToInclu_863C/image_3.png" width="150" height="150" /> In this tutorial, I am going to introduce a WordPress technique that I believe was unpublished until I <a
href="http://wordpress.org/support/topic/350167" rel="nofollow">raised the question</a> a few days ago on the WordPress forums.</p><p>In short, the problem I was trying to solve was <strong><em>plugins unnecessarily loading their JavaScript and CSS on *every* page of the blog, even when doing so would achieve absolutely nothing and the plugin wouldn&#039;t do any work</em></strong>.</p><p><div
class="note"><div
class="notetip"><strong>Update #1:</strong> I have posted a <a
href="http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/">follow-up</a> in response to some comments received around the web.</div></div></p><p><div
class="note"><div
class="notetip"><strong>Update #2:</strong> There is a solution that can be considered a compromise as it works well for loading JavaScript but doesn&#039;t handle CSS.</div></div></p><p>I briefly mentioned this approach here but but Scribu...<div
class=clear></div> <a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<h2>Introduction</h2><p><img
style="margin: 0px 10px 10px 0px; display: inline" title="wordpress logo" alt="wordpress logo" align="left" src="http://beerpla.net/wp-content/uploads/WordpressPluginWritersTakeNoteHowToInclu_863C/image_3.png" width="150" height="150" /> In this tutorial, I am going to introduce a WordPress technique that I believe was unpublished until I <a
href="http://wordpress.org/support/topic/350167" rel="nofollow">raised the question</a> a few days ago on the WordPress forums.</p><p>In short, the problem I was trying to solve was <strong><em>plugins unnecessarily loading their JavaScript and CSS on *every* page of the blog, even when doing so would achieve absolutely nothing and the plugin wouldn&#039;t do any work</em></strong>.</p><p><div
class="note"><div
class="notetip"><strong>Update #1:</strong> I have posted a <a
href="http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/">follow-up</a> in response to some comments received around the web.</div></div></p><p><div
class="note"><div
class="notetip"><strong>Update #2:</strong> There is a solution that can be considered a compromise as it works well for loading JavaScript but doesn&#039;t handle CSS.</p><p>I briefly mentioned this approach here but but Scribu decided to expand on it by providing a nice Jedi-themed tutorial. It is available <a
href="http://scribu.net/wordpress/optimal-script-loading.html" rel="nofollow">here</a>.</div></div></p><p>Let me explain using this example:</p><ul><li>a code formatter plugin only does something useful when it sees a [code] shortcode in any post on the page.</li><li>most of your posts do not contain the [code] shortcode as you don't include code snippets that often or you only started using this particular plugin recently.</li><li>the plugin, however, loads the CSS and JS (which are most likely <a
href="http://qbnz.com/highlighter/" rel="nofollow">GeSHi</a> and take up loads of space) on every page.</li><li>these CSS and JS do absolutely nothing on most page loads.</li><li>bandwidth is wasted, extra DNS and HTTP requests are processed, the browser is slowed down, and for what? For no good reason, other than the plugin author didn't know how to achieve this conditional loading.</li></ul><p>If you think about it, there are many plugins that only do something once in a blue moon. Table of contents, text manipulators, galleries, sliders, etc, etc. If only they loaded their frontend code strictly when necessary, most page loads would suddenly become much lighter.</p><p>So what can we do to solve this? Let's look at a few techniques.</p><h2>Loading CSS And JS In Place?</h2><p>Here's one, albeit pretty bad, solution - only print the CSS and JS includes if and when you determine somewhere in the middle of loading the posts that the scripts and styles are indeed needed, then set a flag to avoid printing them again. In our example, that would be when the plugin detects the [code] shortcode.</p><p>This, however, is a mediocre solution because, while it's not a bad idea to load Javascript in the footer, <a
href="http://developer.yahoo.com/performance/rules.html" rel="nofollow">CSS should be loaded in the header</a>, otherwise the page might look unformatted until the CSS is reached.</p><p>Additionally, it's not the cleanest and most robust solution because you shouldn't be writing &lt;script&gt; and &lt;style&gt; tags manually but rather using <a
href="http://codex.wordpress.org/Function_Reference/wp_enqueue_style" rel="nofollow">wp_enqueue_style()</a> and <a
href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script" rel="nofollow">wp_enqueue_script()</a> functions.</p><h2>What's This About wp_enqueue_FOO?</h2><p>Now, you might say: &quot;What's this about <strong><em>wp_enqueue_style()</em></strong>, <strong><em>wp_enqueue_script()</em></strong>, and then hooking into <strong><em>'wp_print_scripts'</em></strong>, <strong><em>'wp_print_styles'</em></strong>, <strong><em>'admin_print_scripts'</em></strong>, and <strong><em>'admin_print_styles'</em></strong> hooks&quot;? You know about these, right? Right??</p><p>Allow me to explain this, in my opinion, greatest and most underused WordPress paradigm in a short refresher:</p><p><div
class="note"><div
class="noteclassic">WordPress has a great system of queuing up the scripts and styles your script will need to use and printing them all in one go, rather than hooking into wp_head and printing &lt;style&gt; and &lt;script&gt; tags manually.</p><p>This queuing system achieves 2 main goals:</p><ul><li>the <strong><em>same scripts are not loaded multiple times</em></strong>, such as <a
href="http://jquery.com/" rel="nofollow">jQuery</a>, <a
href="http://script.aculo.us/" rel="nofollow">scriptaculous</a>, or any other custom script or style your plugins may share between each other or even other plugins.</li><li>it introduces support for establishing <strong><em>dependencies</em></strong>. You can specify that your script or style depends on another script or style, and WordPress will take care of loading them in the right order. Guaranteed.</li><li>oh what the hell, here's a 3rd one: <strong><em>elegance</em></strong>.</li></ul><p>Here is the way this usually works:</p><ul><li>in the beginning of your plugin you attach to <strong><em>wp_print_scripts</em></strong> and/or <strong><em>wp_print_styles</em></strong> hooks. For example:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code"><pre>add_action( 'wp_print_scripts', 'enqueue_my_scripts' );
add_action( 'wp_print_styles', 'enqueue_my_styles' );</pre></td></tr></table></div><p>What this will do is call the functions in the 2nd parameter when it's time to execute any functions associated with the hooks in the 1st parameter. It is the main principle behind the WordPress plugin architecture.</li><li>looking at the script example, in the <strong><em>enqueue_my_scripts()</em></strong> function, you can do something like:<div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>wp_enqueue_script( 'my_awesome_script', '/script.js', array( 'jquery' ));</pre></td></tr></table></div><p>which would queue up your script to be printed later but only after jQuery.</p><p>If you or some other plugin calls <strong><em>wp_enqueue_script()</em></strong> with the same first parameter (unique handle), it will just be ignored, rather than printed to the page twice.</li><li>styles are exactly the same, except you use <strong><em>wp_enqueue_style()</em></strong></li></ul><p>There is a variation of this functionality for the admin styles and scripts - all you have to do is change the hooks to <strong><em>admin_print_styles</em></strong> and <strong><em>admin_print_scripts</em></strong>. Ozh made a nice post on this topic <a
href="http://planetozh.com/blog/2008/04/how-to-load-javascript-with-your-wordpress-plugin/" rel="nofollow">here</a> - check it out.</p><p></div></div></p><h2>Enqueuing Alone Is Not Enough</h2><p>Enqueuing is great for loading your JS and CSS but using it alone doesn't achieve the conditional behavior that we are looking for here.</p><p>This is a classic case of Chicken or the Egg, because WordPress makes only one pass through all of the content.</p><p>You see, since the header needs to be printed before the content, <strong><em>wp_print_scripts</em></strong> and <strong><em>wp_print_styles</em></strong> hooks are triggered before you even get to the posts. If you enqueue a script or style from within the 'the_content' hook, for example, the queued up scripts and styles will never get printed. It's too late to print them then anyway, as you're already in the middle of printing the posts.</p><h2>The Solution</h2><p>What we need to do is take a step back, before even printing the header, and then peek ahead.</p><p>Sure, this adds an extra pass over some data, but since no filters are applied during this process and if you avoid regular expressions (using stripos(), for example), this extra pass should be quite negligible.</p><p><div
class="note"><div
class="notewarning">A word of warning though: I'd rather see false positives (enqueuing when it's not needed) than false negatives (miss enqueuing when it's needed), so please do your matching wisely and test well.</div></div></p><p>The upside, however, can be potentially very substantial.</p><p>Credit goes to <a
href="http://twitter.com/white_shadow" rel="nofollow">@white_shadow</a> for the idea.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td
class="code"><pre>add_filter('the_posts', 'conditionally_add_scripts_and_styles'); // the_posts gets triggered before wp_head
function conditionally_add_scripts_and_styles($posts){
	if (empty($posts)) return $posts;
&nbsp;
	$shortcode_found = false; // use this flag to see if styles and scripts need to be enqueued
	foreach ($posts as $post) {
		if (stripos($post-&gt;post_content, '[code]') !== false) {
			$shortcode_found = true; // bingo!
			break;
		}
	}
&nbsp;
	if ($shortcode_found) {
		// enqueue here
		wp_enqueue_style('my-style', '/style.css');
		wp_enqueue_script('my-script', '/script.js');
	}
&nbsp;
	return $posts;
}</pre></td></tr></table></div><p>This simple function fires before the header gets printed, as it's attached to the 'the_posts' hook. However, this time it has full access to the posts' content.</p><p>I have tested this method and it works really well - if you have heavy scripts in your plugin, please do us, users, a favor and incorporate this logic into it.</p><h2>Conclusion</h2><p>In this tutorial, you have seen a method of loading scripts and styles for you plugin conditionally. This technique allows for less bloated pages and faster page loads.</p><p>Plugin developers, what is your take on this solution? Do you use another method? Please share in the comments.</p><div
class='post_blob_1'>Our <a
href="http://www.test-king.com/exams/HP0-D07.htm">HP0-D07</a> study guides will help you to pass your <a
href="http://www.test-king.com/exams/642-436.htm">642-436</a> and <a
href="http://www.test-king.com/exams/640-816.htm">640-816</a> exam on first attempt guaranteed.</div><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/" rel="bookmark" title="January 15, 2010">Follow-up To Loading CSS And JS Conditionally</a></li><li><a
href="http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/" rel="bookmark" title="January 31, 2010">How To Remove Inline Hardcoded Recent Comments Sidebar Widget Style From Your WordPress Theme</a></li><li><a
href="http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/" rel="bookmark" title="November 6, 2010">How To Dynamically Increase Memory Limits When Interfacing With WordPress Using XML-RPC (Windows Live Writer, Etc)</a></li><li><a
href="http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/" rel="bookmark" title="February 20, 2010">How To View A Specific SVN Revision In Your Browser</a></li><li><a
href="http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/" rel="bookmark" title="March 21, 2010">How To Diagnose And Fix Incorrect Post Comment Counts In WordPress</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F01%2F13%2Fwordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts%2F&amp;title=%5BWordPress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts" id="wpa2a_18"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/feed/</wfw:commentRss> <slash:comments>68</slash:comments> </item> <item><title>Delicious.com [Quietly] Rolls Out Domain And Url Searching/Filtering. Finally!</title><link>http://beerpla.net/2009/08/18/delicious-com-quietly-rolls-out-domain-and-url-searchingfiltering-finally/</link> <comments>http://beerpla.net/2009/08/18/delicious-com-quietly-rolls-out-domain-and-url-searchingfiltering-finally/#comments</comments> <pubDate>Tue, 18 Aug 2009 17:15:00 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Stuff]]></category> <category><![CDATA[Technology]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[del.icio.us]]></category> <category><![CDATA[delicious]]></category> <category><![CDATA[domain]]></category> <category><![CDATA[feature]]></category> <category><![CDATA[filter]]></category> <category><![CDATA[new]]></category> <category><![CDATA[result]]></category> <category><![CDATA[search]]></category> <category><![CDATA[site]]></category> <category><![CDATA[url]]></category> <guid
isPermaLink="false">http://beerpla.net/2009/08/18/delicious-com-quietly-rolls-out-domain-and-url-searchingfiltering-finally/</guid> <description><![CDATA[<h2>Introduction</h2><p>I love <a
rel="nofollow" href="http://www.delicious.com">Delicious</a>. It allows me to store my bookmarks, tag and search them, and, best of all, have access to them from anywhere on the web.</p><p>Searching bookmarks by keyword is easy &#8211; just enter a bunch of keywords into the <a
rel="nofollow" href="http://delicious.com/search">search page</a> and off you go but what if you want to confine your results to a certain domain? The main reason I wanted to do it personally is so that I could see all pages of my site bookmarked by Delicious users and the corresponding number of bookmarks. However, the only url based search Delicious offered was a <a
rel="nofollow" href="http://delicious.com/url/">full url lookup</a>:</p><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="image" src="http://beerpla.net/wp-content/uploads/Delicious.comQuietlyRollsOutDoma.Finally_15126/image.png" border="0" alt="image" width="592" height="202" /></p><p>This search is very limited &#8211; it accepts...<div
class=clear></div> <a
href="http://beerpla.net/2009/08/18/delicious-com-quietly-rolls-out-domain-and-url-searchingfiltering-finally/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<h2>Introduction</h2><p>I love <a
rel="nofollow" href="http://www.delicious.com">Delicious</a>. It allows me to store my bookmarks, tag and search them, and, best of all, have access to them from anywhere on the web.</p><p>Searching bookmarks by keyword is easy &#8211; just enter a bunch of keywords into the <a
rel="nofollow" href="http://delicious.com/search">search page</a> and off you go but what if you want to confine your results to a certain domain? The main reason I wanted to do it personally is so that I could see all pages of my site bookmarked by Delicious users and the corresponding number of bookmarks. However, the only url based search Delicious offered was a <a
rel="nofollow" href="http://delicious.com/url/">full url lookup</a>:</p><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="image" src="http://beerpla.net/wp-content/uploads/Delicious.comQuietlyRollsOutDoma.Finally_15126/image.png" border="0" alt="image" width="592" height="202" /></p><p>This search is very limited &#8211; it accepts only a full url to the page in question.</p><p>Such limitations were unacceptable and prompted me to <a
rel="nofollow" href="http://support.delicious.com/forum/comments.php?DiscussionID=1918">file a suggestion/idea</a> on the Delicious forum earlier this year to allow searching for <strong><em>*all*</em></strong> bookmarks in a given domain. To my pleasant surprise, Delicious rolled out these new search features within the last month (very quietly for some reason, are they in alpha?). There was no mention of them on their <a
rel="nofollow" href="http://blog.delicious.com/">blog</a> or anywhere else on the web really.</p><h2>So how does the new search/filter work?</h2><p>Check it out:</p><h3><strong><em>site:yoursite.com </em></strong>allows searching by domain</h3><p>For example, <a
href="http://delicious.com/search?p=site%3Abeerpla.net&amp;chk=&amp;fr=del_icio_us&amp;lc=1&amp;atags=&amp;rtags=&amp;context=all||">site:beerpla.net</a> currently returns 104 results and I can see all of my sites&#039; pages and their bookmark numbers on a single page:</p><p><a
href="http://beerpla.net/wp-content/uploads/Delicious.comQuietlyRollsOutDoma.Finally_15126/image_3.png" class="lightview" rel="gallery['1116']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto;" title="image" src="http://beerpla.net/wp-content/uploads/Delicious.comQuietlyRollsOutDoma.Finally_15126/image_thumb.png" alt="image" width="640" height="165" /></a></p><h3>Moreover, you can combine the <em><strong>site:</strong></em> query with tags</h3><p>Like so: <a
href="http://delicious.com/search?p=site%3Abeerpla.net+hidden+php&amp;chk=&amp;fr=del_icio_us&amp;lc=1&amp;atags=&amp;rtags=&amp;context=all||">site:beerpla.net hidden php</a> to filter the results further.</p><p><a
href="http://beerpla.net/wp-content/uploads/Delicious.comQuietlyRollsOutDoma.Finally_15126/image_4.png" class="lightview" rel="gallery['1116']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto;" title="image" src="http://beerpla.net/wp-content/uploads/Delicious.comQuietlyRollsOutDoma.Finally_15126/image_thumb_3.png" alt="image" width="640" height="364" /></a></p><h3>You can also search part of a url using the <em><strong>url:</strong></em> construct</h3><p>For example, <a
href="http://delicious.com/search?p=url%3Abeerpla.net%2F2009%2F&amp;chk=&amp;fr=del_icio_us&amp;lc=1&amp;atags=&amp;rtags=&amp;context=all||">url:beerpla.net/2009/</a> finds bookmarked blog posts from 2009 only:</p><p><a
href="http://beerpla.net/wp-content/uploads/Delicious.comQuietlyRollsOutDoma.Finally_15126/image_5.png" class="lightview" rel="gallery['1116']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto;" title="image" src="http://beerpla.net/wp-content/uploads/Delicious.comQuietlyRollsOutDoma.Finally_15126/image_thumb_4.png" alt="image" width="640" height="384" /></a></p><p>I&#039;m not really sure why one would use <em><strong>site:</strong></em> if they could just use <strong><em>url:</em></strong> &#8211; it seems like the latter can do everything the former can do and more. Perhaps Delicious can clarify that.</p><p>Also, doing something like <strong><em><a
href="http://delicious.com/search?p=url%3Ahidden-features-of+&amp;chk=&amp;fr=del_icio_us&amp;lc=1&amp;atags=&amp;rtags=&amp;context=all||">url:hidden-features-of</a> </em></strong>doesn&#039;t bring back any results, even though I thought <strong><em>url:</em></strong> is supposed to search parts of the url. A bug or a feature?</p><h2>Conclusion</h2><p>Thanks to Delicious for following through with the search improvements and listening to your users. Special thanks to Delicious&#039;s own <a
rel="nofollow" href="http://delicious.com/britta">britta</a> for being on top of things and responding to an 8 month old <a
rel="nofollow" href="http://support.delicious.com/forum/comments.php?DiscussionID=1918">forum post</a>.</p><p>Now perhaps someone will write a plugin to figure out the TOTAL number of bookmarks for a specific domain or modify an <a
rel="nofollow" href="http://www.improvingtheweb.com/wordpress-plugins/blog-stats/">existing one</a> (*cough*, <a
rel="nofollow" href="http://twitter.com/improvingtheweb">ImprovingTheWeb</a>, *cough*)?</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Delicious.com+%5BQuietly%5D+Rolls+Out+Domain+And+Url+Searching%2FFiltering.+Finally%21&amp;link=http://beerpla.net/2009/08/18/delicious-com-quietly-rolls-out-domain-and-url-searchingfiltering-finally/&amp;notes=Introduction%0D%0AI%20love%20Delicious.%20It%20allows%20me%20to%20store%20my%20bookmarks%2C%20tag%20and%20search%20them%2C%20and%2C%20best%20of%20all%2C%20have%20access%20to%20them%20from%20anywhere%20on%20the%20web.%0D%0A%0D%0ASearching%20bookmarks%20by%20keyword%20is%20easy%20-%20just%20enter%20a%20bunch%20of%20keywords%20into%20the%20search%20page%20and%20off%20you%20go%20but%20what%20if%20you%20want%20to%20confine%20your&amp;short_link=http://bit.ly/958cSU&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Delicious.com+%5BQuietly%5D+Rolls+Out+Domain+And+Url+Searching%2FFiltering.+Finally%21&amp;link=http://beerpla.net/2009/08/18/delicious-com-quietly-rolls-out-domain-and-url-searchingfiltering-finally/&amp;notes=Introduction%0D%0AI%20love%20Delicious.%20It%20allows%20me%20to%20store%20my%20bookmarks%2C%20tag%20and%20search%20them%2C%20and%2C%20best%20of%20all%2C%20have%20access%20to%20them%20from%20anywhere%20on%20the%20web.%0D%0A%0D%0ASearching%20bookmarks%20by%20keyword%20is%20easy%20-%20just%20enter%20a%20bunch%20of%20keywords%20into%20the%20search%20page%20and%20off%20you%20go%20but%20what%20if%20you%20want%20to%20confine%20your&amp;short_link=http://bit.ly/958cSU&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Delicious.com+%5BQuietly%5D+Rolls+Out+Domain+And+Url+Searching%2FFiltering.+Finally%21&amp;link=http://beerpla.net/2009/08/18/delicious-com-quietly-rolls-out-domain-and-url-searchingfiltering-finally/&amp;notes=Introduction%0D%0AI%20love%20Delicious.%20It%20allows%20me%20to%20store%20my%20bookmarks%2C%20tag%20and%20search%20them%2C%20and%2C%20best%20of%20all%2C%20have%20access%20to%20them%20from%20anywhere%20on%20the%20web.%0D%0A%0D%0ASearching%20bookmarks%20by%20keyword%20is%20easy%20-%20just%20enter%20a%20bunch%20of%20keywords%20into%20the%20search%20page%20and%20off%20you%20go%20but%20what%20if%20you%20want%20to%20confine%20your&amp;short_link=http://bit.ly/958cSU&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Delicious.com+%5BQuietly%5D+Rolls+Out+Domain+And+Url+Searching%2FFiltering.+Finally%21&amp;link=http://beerpla.net/2009/08/18/delicious-com-quietly-rolls-out-domain-and-url-searchingfiltering-finally/&amp;notes=Introduction%0D%0AI%20love%20Delicious.%20It%20allows%20me%20to%20store%20my%20bookmarks%2C%20tag%20and%20search%20them%2C%20and%2C%20best%20of%20all%2C%20have%20access%20to%20them%20from%20anywhere%20on%20the%20web.%0D%0A%0D%0ASearching%20bookmarks%20by%20keyword%20is%20easy%20-%20just%20enter%20a%20bunch%20of%20keywords%20into%20the%20search%20page%20and%20off%20you%20go%20but%20what%20if%20you%20want%20to%20confine%20your&amp;short_link=http://bit.ly/958cSU&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Delicious.com+%5BQuietly%5D+Rolls+Out+Domain+And+Url+Searching%2FFiltering.+Finally%21&amp;link=http://beerpla.net/2009/08/18/delicious-com-quietly-rolls-out-domain-and-url-searchingfiltering-finally/&amp;notes=Introduction%0D%0AI%20love%20Delicious.%20It%20allows%20me%20to%20store%20my%20bookmarks%2C%20tag%20and%20search%20them%2C%20and%2C%20best%20of%20all%2C%20have%20access%20to%20them%20from%20anywhere%20on%20the%20web.%0D%0A%0D%0ASearching%20bookmarks%20by%20keyword%20is%20easy%20-%20just%20enter%20a%20bunch%20of%20keywords%20into%20the%20search%20page%20and%20off%20you%20go%20but%20what%20if%20you%20want%20to%20confine%20your&amp;short_link=http://bit.ly/958cSU&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Delicious.com+%5BQuietly%5D+Rolls+Out+Domain+And+Url+Searching%2FFiltering.+Finally%21&amp;link=http://beerpla.net/2009/08/18/delicious-com-quietly-rolls-out-domain-and-url-searchingfiltering-finally/&amp;notes=Introduction%0D%0AI%20love%20Delicious.%20It%20allows%20me%20to%20store%20my%20bookmarks%2C%20tag%20and%20search%20them%2C%20and%2C%20best%20of%20all%2C%20have%20access%20to%20them%20from%20anywhere%20on%20the%20web.%0D%0A%0D%0ASearching%20bookmarks%20by%20keyword%20is%20easy%20-%20just%20enter%20a%20bunch%20of%20keywords%20into%20the%20search%20page%20and%20off%20you%20go%20but%20what%20if%20you%20want%20to%20confine%20your&amp;short_link=http://bit.ly/958cSU&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Delicious.com+%5BQuietly%5D+Rolls+Out+Domain+And+Url+Searching%2FFiltering.+Finally%21&amp;link=http://beerpla.net/2009/08/18/delicious-com-quietly-rolls-out-domain-and-url-searchingfiltering-finally/&amp;notes=Introduction%0D%0AI%20love%20Delicious.%20It%20allows%20me%20to%20store%20my%20bookmarks%2C%20tag%20and%20search%20them%2C%20and%2C%20best%20of%20all%2C%20have%20access%20to%20them%20from%20anywhere%20on%20the%20web.%0D%0A%0D%0ASearching%20bookmarks%20by%20keyword%20is%20easy%20-%20just%20enter%20a%20bunch%20of%20keywords%20into%20the%20search%20page%20and%20off%20you%20go%20but%20what%20if%20you%20want%20to%20confine%20your&amp;short_link=http://bit.ly/958cSU&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Delicious.com%20%5BQuietly%5D%20Rolls%20Out%20Domain%20And%20Url%20Searching%2FFiltering.%20Finally%21&amp;link=http://beerpla.net/2009/08/18/delicious-com-quietly-rolls-out-domain-and-url-searchingfiltering-finally/&amp;notes=Introduction%0D%0AI%20love%20Delicious.%20It%20allows%20me%20to%20store%20my%20bookmarks%2C%20tag%20and%20search%20them%2C%20and%2C%20best%20of%20all%2C%20have%20access%20to%20them%20from%20anywhere%20on%20the%20web.%0D%0A%0D%0ASearching%20bookmarks%20by%20keyword%20is%20easy%20-%20just%20enter%20a%20bunch%20of%20keywords%20into%20the%20search%20page%20and%20off%20you%20go%20but%20what%20if%20you%20want%20to%20confine%20your&amp;short_link=http://bit.ly/958cSU&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/" rel="bookmark" title="June 21, 2009">Hidden Features Of Perl, PHP, Javascript, C, C++, C#, Java, Ruby, Python, And Others [Collection Of Incredibly Useful Lists]</a></li><li><a
href="http://beerpla.net/2009/04/11/essential-firefox-extensions-plugins-add-ons-and-tips-a-comprehensive-guide-part-1-tips/" rel="bookmark" title="April 11, 2009">Essential Firefox Extensions (Plugins, Add-Ons) And Tips &ndash; A Comprehensive Guide :: Part 1 :: Tips</a></li><li><a
href="http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/" rel="bookmark" title="March 17, 2009">Twitter.com Autocomplete, Auto URL Expansion, Auto URL Shortener, RT Button, Nested Replies, Inline Media Embed, Search Tabs, And More</a></li><li><a
href="http://beerpla.net/2008/07/26/google-pagerank-update-happening-now/" rel="bookmark" title="July 26, 2008">Google PageRank Update Happening Now</a></li><li><a
href="http://beerpla.net/2008/12/19/monitor-all-your-domains-from-one-location/" rel="bookmark" title="December 19, 2008">Monitor All Your Domains From One Location</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F08%2F18%2Fdelicious-com-quietly-rolls-out-domain-and-url-searchingfiltering-finally%2F&amp;title=Delicious.com%20%5BQuietly%5D%20Rolls%20Out%20Domain%20And%20Url%20Searching%2FFiltering.%20Finally%21" id="wpa2a_20"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/08/18/delicious-com-quietly-rolls-out-domain-and-url-searchingfiltering-finally/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>How To Properly Set SVN svn:externals Property In SVN Command Line</title><link>http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/</link> <comments>http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/#comments</comments> <pubDate>Sun, 21 Jun 2009 02:01:26 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[SVN]]></category> <category><![CDATA[Technology]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[error]]></category> <category><![CDATA[external]]></category> <category><![CDATA[externals]]></category> <category><![CDATA[how]]></category> <category><![CDATA[propget]]></category> <category><![CDATA[propset]]></category> <category><![CDATA[set]]></category> <category><![CDATA[svn:externals]]></category> <guid
isPermaLink="false">http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/</guid> <description><![CDATA[<h2>Introduction</h2><p>Every time I have to deal with <a
href="http://svnbook.red-bean.com/en/1.0/ch07s03.html" rel="nofollow">svn:externals</a> in SVN, I forget the command line syntax. Every single damn time. Normally, I use SVN GUI clients, such as <a
href="http://www.smartsvn.com/" rel="nofollow">SmartSVN</a>, which make it very simple to add an svn:externals property. But for command line, it always takes looking at 25 different sites on google, which are all incredibly unhelpful for this question for some reason. Trying &#34;svn help propset&#34; on the command line was bloated and equally useless.</p><p>So this time I needed to write it down and make sure everyone who needed help with svn:externals would find exactly what they need here. I hope this page will soon come up on top of all the...<div
class=clear></div> <a
href="http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<h2>Introduction</h2><p>Every time I have to deal with <a
href="http://svnbook.red-bean.com/en/1.0/ch07s03.html" rel="nofollow">svn:externals</a> in SVN, I forget the command line syntax. Every single damn time. Normally, I use SVN GUI clients, such as <a
href="http://www.smartsvn.com/" rel="nofollow">SmartSVN</a>, which make it very simple to add an svn:externals property. But for command line, it always takes looking at 25 different sites on google, which are all incredibly unhelpful for this question for some reason. Trying &quot;svn help propset&quot; on the command line was bloated and equally useless.</p><p>So this time I needed to write it down and make sure everyone who needed help with svn:externals would find exactly what they need here. I hope this page will soon come up on top of all the unhelpful results on google for &quot;propset svn:externals&quot; and other related queries.</p><h2>The Problem</h2><p>I want to set a simple svn:externals property in one of my project&#039;s directories, lets say &#039;plugins&#039; (talking about WordPress here). The outcome would be a directory called &#039;akismet&#039; within &#039;plugins&#039; that points to a remote svn url.</p><p>Various combinations of trying to do it produced pathetic results, like</p><div
class="wp_syntax"><div
class="code"><pre>svn propset svn:externals akismet http://plugins.svn.wordpress.org/akismet/trunk
svn: Setting property on non-local target 'http://plugins.svn.wordpress.org/akismet/trunk' needs a base revision</pre></div></div><div
class="wp_syntax"><div
class="code"><pre>svn propset svn:externals . akismet http://plugins.svn.wordpress.org/akismet/trunk
svn: Error parsing svn:externals property on 'akismet': '.'</pre></div></div><div
class="wp_syntax"><div
class="code"><pre>svn propset svn:externals akismet http://plugins.svn.wordpress.org/akismet/trunk akismet
svn: Setting property on non-local target 'http://plugins.svn.wordpress.org/akismet/trunk' needs a base revision</pre></div></div><h2>The Solution</h2><p>Finally, thanks to <a
href="http://www.nabble.com/svn:externals-example-td16552909.html" rel="nofollow">this post</a>, I found the right command:</p><div
class="wp_syntax"><div
class="code"><pre>svn propset svn:externals 'akismet http://plugins.svn.wordpress.org/akismet/trunk' .
property 'svn:externals' set on '.'</pre></div></div><p>Note that dot at the end of the command and the quotes around the directory name and url.</p><p>Now commit via</p><div
class="wp_syntax"><div
class="code"><pre>svn commit</pre></div></div><p>and then</p><div
class="wp_syntax"><div
class="code"><pre>svn up
Fetching external item into 'akismet'
A    akismet/akismet.gif
A    akismet/akismet.php
A    akismet/readme.txt
Updated external to revision 127962.
&nbsp;
Updated to revision 16.</pre></div></div><p>There, was it that hard, forum gurus and blog fiends?</p><p><strong>Edit</strong>: in order to set multiple directory/url pairs in a single svn:externals property, you should put the individual dir/url pairs into a file (let&#039;s call it &#039;svn.externals&#039;), like so</p><div
class="wp_syntax"><div
class="code"><pre>akismet http://svn.wp-plugins.org/akismet/trunk
all-in-one-seo-pack http://svn.wp-plugins.org/all-in-one-seo-pack/trunk</pre></div></div><p>and then apply the property using</p><div
class="wp_syntax"><div
class="code"><pre>svn propset svn:externals -F svn.externals .</pre></div></div><p>You should also just check in &#039;svn.externals&#039; to easily keep track of it.</p><p.One thing I haven't figured out yet is how to perform the same multi-operation without using a file. How does one do it on a single command line?</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Properly+Set+SVN+svn%3Aexternals+Property+In+SVN+Command+Line&amp;link=http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/&amp;notes=Introduction%0D%0AEvery%20time%20I%20have%20to%20deal%20with%20svn%3Aexternals%20in%20SVN%2C%20I%20forget%20the%20command%20line%20syntax.%20Every%20single%20damn%20time.%20Normally%2C%20I%20use%20SVN%20GUI%20clients%2C%20such%20as%20SmartSVN%2C%20which%20make%20it%20very%20simple%20to%20add%20an%20svn%3Aexternals%20property.%20But%20for%20command%20line%2C%20it%20always%20takes%20looking%20at%2025%20different%20si&amp;short_link=http://bit.ly/bpA8jU&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Properly+Set+SVN+svn%3Aexternals+Property+In+SVN+Command+Line&amp;link=http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/&amp;notes=Introduction%0D%0AEvery%20time%20I%20have%20to%20deal%20with%20svn%3Aexternals%20in%20SVN%2C%20I%20forget%20the%20command%20line%20syntax.%20Every%20single%20damn%20time.%20Normally%2C%20I%20use%20SVN%20GUI%20clients%2C%20such%20as%20SmartSVN%2C%20which%20make%20it%20very%20simple%20to%20add%20an%20svn%3Aexternals%20property.%20But%20for%20command%20line%2C%20it%20always%20takes%20looking%20at%2025%20different%20si&amp;short_link=http://bit.ly/bpA8jU&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Properly+Set+SVN+svn%3Aexternals+Property+In+SVN+Command+Line&amp;link=http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/&amp;notes=Introduction%0D%0AEvery%20time%20I%20have%20to%20deal%20with%20svn%3Aexternals%20in%20SVN%2C%20I%20forget%20the%20command%20line%20syntax.%20Every%20single%20damn%20time.%20Normally%2C%20I%20use%20SVN%20GUI%20clients%2C%20such%20as%20SmartSVN%2C%20which%20make%20it%20very%20simple%20to%20add%20an%20svn%3Aexternals%20property.%20But%20for%20command%20line%2C%20it%20always%20takes%20looking%20at%2025%20different%20si&amp;short_link=http://bit.ly/bpA8jU&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Properly+Set+SVN+svn%3Aexternals+Property+In+SVN+Command+Line&amp;link=http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/&amp;notes=Introduction%0D%0AEvery%20time%20I%20have%20to%20deal%20with%20svn%3Aexternals%20in%20SVN%2C%20I%20forget%20the%20command%20line%20syntax.%20Every%20single%20damn%20time.%20Normally%2C%20I%20use%20SVN%20GUI%20clients%2C%20such%20as%20SmartSVN%2C%20which%20make%20it%20very%20simple%20to%20add%20an%20svn%3Aexternals%20property.%20But%20for%20command%20line%2C%20it%20always%20takes%20looking%20at%2025%20different%20si&amp;short_link=http://bit.ly/bpA8jU&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Properly+Set+SVN+svn%3Aexternals+Property+In+SVN+Command+Line&amp;link=http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/&amp;notes=Introduction%0D%0AEvery%20time%20I%20have%20to%20deal%20with%20svn%3Aexternals%20in%20SVN%2C%20I%20forget%20the%20command%20line%20syntax.%20Every%20single%20damn%20time.%20Normally%2C%20I%20use%20SVN%20GUI%20clients%2C%20such%20as%20SmartSVN%2C%20which%20make%20it%20very%20simple%20to%20add%20an%20svn%3Aexternals%20property.%20But%20for%20command%20line%2C%20it%20always%20takes%20looking%20at%2025%20different%20si&amp;short_link=http://bit.ly/bpA8jU&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Properly+Set+SVN+svn%3Aexternals+Property+In+SVN+Command+Line&amp;link=http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/&amp;notes=Introduction%0D%0AEvery%20time%20I%20have%20to%20deal%20with%20svn%3Aexternals%20in%20SVN%2C%20I%20forget%20the%20command%20line%20syntax.%20Every%20single%20damn%20time.%20Normally%2C%20I%20use%20SVN%20GUI%20clients%2C%20such%20as%20SmartSVN%2C%20which%20make%20it%20very%20simple%20to%20add%20an%20svn%3Aexternals%20property.%20But%20for%20command%20line%2C%20it%20always%20takes%20looking%20at%2025%20different%20si&amp;short_link=http://bit.ly/bpA8jU&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Properly+Set+SVN+svn%3Aexternals+Property+In+SVN+Command+Line&amp;link=http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/&amp;notes=Introduction%0D%0AEvery%20time%20I%20have%20to%20deal%20with%20svn%3Aexternals%20in%20SVN%2C%20I%20forget%20the%20command%20line%20syntax.%20Every%20single%20damn%20time.%20Normally%2C%20I%20use%20SVN%20GUI%20clients%2C%20such%20as%20SmartSVN%2C%20which%20make%20it%20very%20simple%20to%20add%20an%20svn%3Aexternals%20property.%20But%20for%20command%20line%2C%20it%20always%20takes%20looking%20at%2025%20different%20si&amp;short_link=http://bit.ly/bpA8jU&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20Properly%20Set%20SVN%20svn%3Aexternals%20Property%20In%20SVN%20Command%20Line&amp;link=http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/&amp;notes=Introduction%0D%0AEvery%20time%20I%20have%20to%20deal%20with%20svn%3Aexternals%20in%20SVN%2C%20I%20forget%20the%20command%20line%20syntax.%20Every%20single%20damn%20time.%20Normally%2C%20I%20use%20SVN%20GUI%20clients%2C%20such%20as%20SmartSVN%2C%20which%20make%20it%20very%20simple%20to%20add%20an%20svn%3Aexternals%20property.%20But%20for%20command%20line%2C%20it%20always%20takes%20looking%20at%2025%20different%20si&amp;short_link=http://bit.ly/bpA8jU&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/" rel="bookmark" title="February 20, 2010">How To View A Specific SVN Revision In Your Browser</a></li><li><a
href="http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/" rel="bookmark" title="June 16, 2008">How To SVN Update All Your WordPress Plugins In One Go</a></li><li><a
href="http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/" rel="bookmark" title="November 16, 2011">How To: Disable/Block External HTTP Requests In WordPress</a></li><li><a
href="http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/" rel="bookmark" title="March 29, 2008">Beer Planet Upgraded To WordPress 2.5</a></li><li><a
href="http://beerpla.net/2010/03/06/how-to-show-hiddeninvisible-files-in-total-commander-both-locally-and-on-an-ftp-server/" rel="bookmark" title="March 6, 2010">How To Show Hidden/Invisible Files In Total Commander, Both Locally And On An FTP Server</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F06%2F20%2Fhow-to-properly-set-svn-svnexternals-property-in-svn-command-line%2F&amp;title=How%20To%20Properly%20Set%20SVN%20svn%3Aexternals%20Property%20In%20SVN%20Command%20Line" id="wpa2a_22"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/feed/</wfw:commentRss> <slash:comments>30</slash:comments> </item> <item><title>How To Make Your Site Lightning Fast* By Compressing (deflate/gzip) Your HTML, Javascript, CSS, XML, etc In Apache</title><link>http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/</link> <comments>http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/#comments</comments> <pubDate>Tue, 09 Jun 2009 17:02:00 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Technology]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[compress]]></category> <category><![CDATA[compression]]></category> <category><![CDATA[deflate]]></category> <category><![CDATA[fast]]></category> <category><![CDATA[faster]]></category> <category><![CDATA[gzip]]></category> <category><![CDATA[html]]></category> <category><![CDATA[js]]></category> <category><![CDATA[minify]]></category> <category><![CDATA[mod_deflate]]></category> <category><![CDATA[smaller]]></category> <category><![CDATA[text]]></category> <category><![CDATA[xml]]></category> <guid
isPermaLink="false">http://beerpla.net/?p=982</guid> <description><![CDATA[<p><span
style="font-size: xx-small">* Lightning Fast is a blatant exaggeration. Got you to look though, didn&#039;t it?</span></p><h2>Introduction</h2><p>Whether you are a web developer or a self-hosting business owner, the only excuse for not activating compression capabilities of your web server can be that you didn&#039;t know about it. And now that you are reading this, there is no excuse left at all.</p><p>Here is how big a single page of this blog was before compression was enabled on CSS and Javascript files (computed by <a
href="http://developer.yahoo.com/yslow/" rel="nofollow">YSlow</a>):</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_3.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: inline; margin-left: 0px; margin-right: 0px" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_3.png" width="132" height="24" /></a></p><p>And here it is after compression:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_4.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: inline; margin-left: 0px; margin-right: 0px" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_4.png" width="136" height="28" /></a></p><p>As you see, the difference is quite substantial &#8211; almost 30% savings.</p><p>Compressing your HTML, XML, Javascript, CSS, etc pages will mean less data transferred between the...<div
class=clear></div> <a
href="http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p><span
style="font-size: xx-small">* Lightning Fast is a blatant exaggeration. Got you to look though, didn&#039;t it?</span></p><h2>Introduction</h2><p>Whether you are a web developer or a self-hosting business owner, the only excuse for not activating compression capabilities of your web server can be that you didn&#039;t know about it. And now that you are reading this, there is no excuse left at all.</p><p>Here is how big a single page of this blog was before compression was enabled on CSS and Javascript files (computed by <a
href="http://developer.yahoo.com/yslow/" rel="nofollow">YSlow</a>):</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_3.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: inline; margin-left: 0px; margin-right: 0px" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_3.png" width="132" height="24" /></a></p><p>And here it is after compression:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_4.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: inline; margin-left: 0px; margin-right: 0px" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_4.png" width="136" height="28" /></a></p><p>As you see, the difference is quite substantial &#8211; almost 30% savings.</p><p>Compressing your HTML, XML, Javascript, CSS, etc pages will mean less data transferred between the server and the client which:</p><ul><li>reduces the bandwidth usage.</li><li>provides faster page rendering which in turn leads to less user frustration, higher conversion rates, lower bounce rate, etc etc etc.</li></ul><p>Compression is especially important for users with slow connections as every kilobyte of your code is that much more painful to them.</p><p>Compression can be very effective &#8211; you can easily shrink your text, code (HTML, XML, Javascript, CSS, etc) to 10% of the original size (of course, your mileage may vary). 100KB page that needs only 10KB to transfer? Sign me up!</p><p>So, before I talk about the solution, let me describe what exactly happens when compression is turned on and how it affects older browsers that don&#039;t support it.</p><p><div
class="note"><div
class="notetip"></p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_17.png" class="lightview" rel="gallery['982']" title="image"><img
style="margin: 0px auto 10px; display: block; float: none" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_17.png" width="292" height="177" /></a> <strong>Are you using jQuery?</strong></p><p>Did you know that a minified jQuery file is <strong>55KB</strong>? In order to achieve the advertised <strong>19KB</strong>, you would still need to compress the .js file using the methods listed here.</div></div></p><h2>Compression Mechanism Explained</h2><p>In order for compression to work in the first place, the web server (Apache in my example) needs to support it. This is achieved by enabling one of Apache modules called mod_deflate. The server will then be able to compress the data to the DEFLATE standard using either the zlib (also known as deflate) or gzip implementations. Yeah, DEFLATE is both the standard the one of its implementations, for those confused. I know I was. This is best described in <a
href="http://en.wikipedia.org/wiki/Gzip#Other_uses" rel="nofollow">this Wikipedia article</a>.</p><p>The following mechanism is used:</p><ul><li>the server with a compression extension enabled is able to serve either compressed (smaller) or uncompressed (larger) pages, depending on what the client supports.</li><li>the client (that is, your browser) sends a special header called &quot;Accept-Encoding&quot; listing the DEFLATE implementations it&#039;s capable of decompressing. For example &quot;gzip,deflate&quot;.</li><li>the server picks the best compression supported by the client (if any), compresses the files, and sends them over to the client.</li><li>the client receives the compressed files and decompresses them.</li></ul><p><div
class="note"><div
class="notetip"><strong>Are you using a load blancer?</strong></p><p>If you are using a load balancer, it may already be configured to compress pages that pass through it. In that case, there is no need to separately configure compression on your web servers. In fact, it should be off to save CPU.</div></div></p><h2>Are Your Pages Already Compressed? Test Them!</h2><p>If you are not sure whether you are already serving compressed pages or not, test them! My favorite way is by using <a
href="http://www.charlesproxy.com/" rel="nofollow">Charles HTTP Debugger</a>. Another option is by downloading <a
href="http://getfirebug.com/" rel="nofollow">Firebug</a> for Firefox and installing Yahoo&#039;s <a
href="http://developer.yahoo.com/yslow/" rel="nofollow">YSlow</a> or Google&#039;s <a
href="http://code.google.com/speed/page-speed/" rel="nofollow">Page Speed</a>. Just look at the response headers to see if compression is on (look for the Content-Encoding header). Here are some before and after examples:</p><h3>Theme CSS</h3><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_5.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_5.png" width="427" height="36" /></a></p><p>Before:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_6.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_6.png" width="266" height="136" /></a></p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_7.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_7.png" width="267" height="161" /></a></p><h3>jQuery</h3><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_8.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_8.png" width="469" height="39" /></a></p><p>Before:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_9.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_9.png" width="263" height="132" /></a></p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_10.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_10.png" width="273" height="168" /></a></p><h2>Solution</h2><p>Create a .htaccess file in the top directory of your site with the following contents:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td
class="code"><pre># DEFLATE by type - html, text, css, xml
AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml
&nbsp;
# DEFLATE by type - javascript
AddOutputFilterByType DEFLATE application/x-javascript application/javascript text/javascript text/x-js text/x-javascript
&nbsp;
# DEFLATE by extension
AddOutputFilter DEFLATE js css htm html xml</pre></td></tr></table></div><p>Alternatively, you could put these lines into your Apache config within the Directory directive.</p><p>The <a
href="http://httpd.apache.org/docs/2.2/mod/core.html#addoutputfilterbytype" rel="nofollow">AddOutputFilterByType</a> directive adds DEFLATE filters to certain MIME types. I tried to assemble some of the common ones but feel free to add more, as each server may be configured differently and give out MIME types different from mine.</p><p><div
class="note"><div
class="notetip">You can find your own server&#039;s MIME type definitions in the file that the TypesConfig directive is pointing to (mine is /etc/mime.types).</div></div></p><p>The <a
href="http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addoutputfilter" rel="nofollow">AddOutputFilter</a> directive binds the DEFLATE filter to specific file extensions, just in case they are not served with a proper MIME type. Feel free to add to this list as well.</p><h2>Caveats</h2><p>1. In order to use this whole compression/deflate/gzip business, your Apache server must first have mod_deflate enabled. Without it, you will get the HTTP 500 error (Internal Server error). You can check which mods you already have enabled by checking with the output of phpinfo() function.</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_13.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_13.png" width="606" height="97" /></a></p><p>In order to enable mod_deflate, uncomment the line with &quot;deflate_module&quot; in your Apache config file. The location of this config file is highly dependant on your system. Some examples include</p><ul><li>/etc/apache2/httpd.conf</li><li>/etc/httpd/conf/httpd.conf</li><li>c:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf</li><li>some other place where your system stores Apache config files (read the special note below for OpenSUSE).</li></ul><p>Here&#039;s what you should have:</p><div
class="wp_syntax"><div
class="code"><pre>LoadModule deflate_module modules/mod_deflate.so</pre></div></div><p>On OpenSUSE, you actually enable modules a bit differently. Go to /etc/sysconfig/apache2 and look for APACHE_MODULES=. Then add &quot;deflate&quot; to the list, if it&#039;s not already there.</p><p>Now, restart Apache and check the output of phpinfo() again.</p><p>2. Adding AddOutputFilter and AddOutputFilterByType to .htaccess requires such overrides to be authorized by the main Apache configuration for that directory, otherwise it will return error 500 as well. The option you are looking for is called &quot;AllowOverride&quot; and mine was set to &quot;AllowOverride AuthConfig&quot; which wasn&#039;t enough. Changing it to</p><div
class="wp_syntax"><div
class="code"><pre>AllowOverride AuthConfig FileInfo</pre></div></div><p>or just</p><div
class="wp_syntax"><div
class="code"><pre>AllowOverride All</pre></div></div><p>fixes the problem. You can find more info about AllowOverride <a
href="http://httpd.apache.org/docs/1.3/mod/core.html#allowoverride" rel="nofollow">here</a>.</p><p>3. In WordPress, if you are using Google Gears (<a
href="http://en.blog.wordpress.com/2008/07/02/gears/" rel="nofollow">Turbo mode</a>) for caching some core WordPress files, they will not show up compressed. That is because they&#039;re not served by the remote server but rather reside locally (think of it as permanent cache). I was very confused at first when I didn&#039;t see jQuery.js in the HTTP log and YSlow reported it uncompressed.</p><h2>Are you a WordPress user?</h2><p>If you are a WordPress user, don&#039;t assume WordPress is going to automatically compress your pages. In fact, as you install more and more plugins, the payload becomes larger and larger with those additional CSS and Javascript files.</p><p>You owe it to yourself and to your users to immediately enable compression on your blog.</p><p>Here is what happened after I enabled compression on this blog.</p><p>Before:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_11.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_11.png" width="676" height="418" /></a></p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_12.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_12.png" width="440" height="115" /></a></p><h2>Bonus &#8211; WP Minify</h2><p>For even better results, I suggest you have a look at my good friend and talented WordPress master Thaya&#039;s plugin called <a
href="http://omninoggin.com/wordpress-plugins/wp-minify-wordpress-plugin/">WP Minify</a>. It preprocesses and aggregates all or most of your CSS and Javascript into just 2 files, thus saving on the number of HTTP requests. It also minifies content to achieve smaller size.</p><p>My blog before WP Minify:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_14.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_14.png" width="413" height="62" /></a></p><p>After WP Minify:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_15.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_15.png" width="408" height="59" /></a></p><p>&#160;</p><p>That&#039;s all folks. Let me know if something was unclear and I&#039;ll be glad to clarify it.</p><p>A few references that pointed me in the right direction and allowed me to provide a more complete solution:</p><ul><li><a
title="http://brightscape.net/compress-jquery-even-further/" href="http://brightscape.net/compress-jquery-even-further/">http://brightscape.net/compress-jquery-even-further/</a></li><li><a
title="http://brightscape.net/compress-your-web-pages-with-mod_deflate/" href="http://brightscape.net/compress-your-web-pages-with-mod_deflate/">http://brightscape.net/compress-your-web-pages-with-mod_deflate/</a></li></ul><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Make+Your+Site+Lightning+Fast%2A+By+Compressing+%28deflate%2Fgzip%29+Your+HTML%2C+Javascript%2C+CSS%2C+XML%2C+etc+In+Apache&amp;link=http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/&amp;notes=%2A%20Lightning%20Fast%20is%20a%20blatant%20exaggeration.%20Got%20you%20to%20look%20though%2C%20didn%27t%20it%3F%20%20Introduction%20%20Whether%20you%20are%20a%20web%20developer%20or%20a%20self-hosting%20business%20owner%2C%20the%20only%20excuse%20for%20not%20activating%20compression%20capabilities%20of%20your%20web%20server%20can%20be%20that%20you%20didn%27t%20know%20about%20it.%20And%20now%20that%20you%20are%20re&amp;short_link=http://bit.ly/c6Upm4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Make+Your+Site+Lightning+Fast%2A+By+Compressing+%28deflate%2Fgzip%29+Your+HTML%2C+Javascript%2C+CSS%2C+XML%2C+etc+In+Apache&amp;link=http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/&amp;notes=%2A%20Lightning%20Fast%20is%20a%20blatant%20exaggeration.%20Got%20you%20to%20look%20though%2C%20didn%27t%20it%3F%20%20Introduction%20%20Whether%20you%20are%20a%20web%20developer%20or%20a%20self-hosting%20business%20owner%2C%20the%20only%20excuse%20for%20not%20activating%20compression%20capabilities%20of%20your%20web%20server%20can%20be%20that%20you%20didn%27t%20know%20about%20it.%20And%20now%20that%20you%20are%20re&amp;short_link=http://bit.ly/c6Upm4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Make+Your+Site+Lightning+Fast%2A+By+Compressing+%28deflate%2Fgzip%29+Your+HTML%2C+Javascript%2C+CSS%2C+XML%2C+etc+In+Apache&amp;link=http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/&amp;notes=%2A%20Lightning%20Fast%20is%20a%20blatant%20exaggeration.%20Got%20you%20to%20look%20though%2C%20didn%27t%20it%3F%20%20Introduction%20%20Whether%20you%20are%20a%20web%20developer%20or%20a%20self-hosting%20business%20owner%2C%20the%20only%20excuse%20for%20not%20activating%20compression%20capabilities%20of%20your%20web%20server%20can%20be%20that%20you%20didn%27t%20know%20about%20it.%20And%20now%20that%20you%20are%20re&amp;short_link=http://bit.ly/c6Upm4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Make+Your+Site+Lightning+Fast%2A+By+Compressing+%28deflate%2Fgzip%29+Your+HTML%2C+Javascript%2C+CSS%2C+XML%2C+etc+In+Apache&amp;link=http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/&amp;notes=%2A%20Lightning%20Fast%20is%20a%20blatant%20exaggeration.%20Got%20you%20to%20look%20though%2C%20didn%27t%20it%3F%20%20Introduction%20%20Whether%20you%20are%20a%20web%20developer%20or%20a%20self-hosting%20business%20owner%2C%20the%20only%20excuse%20for%20not%20activating%20compression%20capabilities%20of%20your%20web%20server%20can%20be%20that%20you%20didn%27t%20know%20about%20it.%20And%20now%20that%20you%20are%20re&amp;short_link=http://bit.ly/c6Upm4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Make+Your+Site+Lightning+Fast%2A+By+Compressing+%28deflate%2Fgzip%29+Your+HTML%2C+Javascript%2C+CSS%2C+XML%2C+etc+In+Apache&amp;link=http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/&amp;notes=%2A%20Lightning%20Fast%20is%20a%20blatant%20exaggeration.%20Got%20you%20to%20look%20though%2C%20didn%27t%20it%3F%20%20Introduction%20%20Whether%20you%20are%20a%20web%20developer%20or%20a%20self-hosting%20business%20owner%2C%20the%20only%20excuse%20for%20not%20activating%20compression%20capabilities%20of%20your%20web%20server%20can%20be%20that%20you%20didn%27t%20know%20about%20it.%20And%20now%20that%20you%20are%20re&amp;short_link=http://bit.ly/c6Upm4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Make+Your+Site+Lightning+Fast%2A+By+Compressing+%28deflate%2Fgzip%29+Your+HTML%2C+Javascript%2C+CSS%2C+XML%2C+etc+In+Apache&amp;link=http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/&amp;notes=%2A%20Lightning%20Fast%20is%20a%20blatant%20exaggeration.%20Got%20you%20to%20look%20though%2C%20didn%27t%20it%3F%20%20Introduction%20%20Whether%20you%20are%20a%20web%20developer%20or%20a%20self-hosting%20business%20owner%2C%20the%20only%20excuse%20for%20not%20activating%20compression%20capabilities%20of%20your%20web%20server%20can%20be%20that%20you%20didn%27t%20know%20about%20it.%20And%20now%20that%20you%20are%20re&amp;short_link=http://bit.ly/c6Upm4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Make+Your+Site+Lightning+Fast%2A+By+Compressing+%28deflate%2Fgzip%29+Your+HTML%2C+Javascript%2C+CSS%2C+XML%2C+etc+In+Apache&amp;link=http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/&amp;notes=%2A%20Lightning%20Fast%20is%20a%20blatant%20exaggeration.%20Got%20you%20to%20look%20though%2C%20didn%27t%20it%3F%20%20Introduction%20%20Whether%20you%20are%20a%20web%20developer%20or%20a%20self-hosting%20business%20owner%2C%20the%20only%20excuse%20for%20not%20activating%20compression%20capabilities%20of%20your%20web%20server%20can%20be%20that%20you%20didn%27t%20know%20about%20it.%20And%20now%20that%20you%20are%20re&amp;short_link=http://bit.ly/c6Upm4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20Make%20Your%20Site%20Lightning%20Fast%2A%20By%20Compressing%20%28deflate%2Fgzip%29%20Your%20HTML%2C%20Javascript%2C%20CSS%2C%20XML%2C%20etc%20In%20Apache&amp;link=http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/&amp;notes=%2A%20Lightning%20Fast%20is%20a%20blatant%20exaggeration.%20Got%20you%20to%20look%20though%2C%20didn%27t%20it%3F%20%20Introduction%20%20Whether%20you%20are%20a%20web%20developer%20or%20a%20self-hosting%20business%20owner%2C%20the%20only%20excuse%20for%20not%20activating%20compression%20capabilities%20of%20your%20web%20server%20can%20be%20that%20you%20didn%27t%20know%20about%20it.%20And%20now%20that%20you%20are%20re&amp;short_link=http://bit.ly/c6Upm4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/" rel="bookmark" title="March 29, 2008">Beer Planet Upgraded To WordPress 2.5</a></li><li><a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/" rel="bookmark" title="January 13, 2010">[WordPress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a></li><li><a
href="http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/" rel="bookmark" title="June 21, 2009">Hidden Features Of Perl, PHP, Javascript, C, C++, C#, Java, Ruby, Python, And Others [Collection Of Incredibly Useful Lists]</a></li><li><a
href="http://beerpla.net/2006/06/12/rendr-a-live-awesome-csshtml-rendering-tool/" rel="bookmark" title="June 12, 2006">Rendr &#8211; a Live Awesome CSS/HTML Rendering Tool</a></li><li><a
href="http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/" rel="bookmark" title="February 20, 2010">How To View A Specific SVN Revision In Your Browser</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F06%2F09%2Fhow-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache%2F&amp;title=How%20To%20Make%20Your%20Site%20Lightning%20Fast%2A%20By%20Compressing%20%28deflate%2Fgzip%29%20Your%20HTML%2C%20Javascript%2C%20CSS%2C%20XML%2C%20etc%20In%20Apache" id="wpa2a_24"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/feed/</wfw:commentRss> <slash:comments>20</slash:comments> </item> <item><title>IntenseDebate Introduces Plugins</title><link>http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/</link> <comments>http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/#comments</comments> <pubDate>Thu, 05 Mar 2009 19:22:33 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[announcement]]></category> <category><![CDATA[automattic]]></category> <category><![CDATA[intense debate]]></category> <category><![CDATA[intensedebate]]></category> <category><![CDATA[plugin]]></category> <guid
isPermaLink="false">http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/</guid> <description><![CDATA[<p><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: inline; margin: 0px 10px 10px 0px" height="66" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb.png" width="93" align="left" /></a> <a
href="http://www.intensedebate.com/" rel="nofollow">IntenseDebate</a>, a popular WordPress comment enhancer <a
href="http://www.google.com/url?sa=t&#38;source=web&#38;ct=res&#38;cd=1&#38;url=http%3A%2F%2Fblog.intensedebate.com%2F2008%2F09%2F23%2Fautomattic-acquires-intensedebate%2F&#38;ei=WiGwSYIGgdqwA_yp5I4B&#38;usg=AFQjCNFvjJMWRkAgB9BvDfD9shtjtmMFBA&#38;sig2=jQFHbJJU0I6YEeY9MK9tZQ" rel="nofollow">recently acquired by Automattic</a> (the creator of WP), just <a
href="http://blog.intensedebate.com/2009/03/05/introducing-intensedebate-plugins-add-the-features-you-want/" rel="nofollow">announced</a> plugin support. It’s a nice touch to the already useful commenting system that allows threading, easier comment moderation, reputation, voting, etc.</p><p>Let’s have a look at some of the announced plugins. Here’s what the comment block looks like with plugins enabled:</p><p><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_3.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="164" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb_3.png" width="428" /></a></p><h3>PollDaddy</h3><p>This plugins allows you to add a poll to your comment. By the way, <a
href="http://www.polldaddy.com/" rel="nofollow">PollDaddy</a> is also an Automattic brand.</p><h2><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_4.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="437" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb_4.png" width="321" /></a><strong></strong></h2><h3>Seesmic</h3><p>Seesmic enables video comments that you can record right off your webcam.</p><p><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_5.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="144" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb_5.png" width="174" /></a>&#160;</p><h3><strong>YouTube</strong></h3><p>I think this one is self-explanatory – you can easily insert youtube videos into your...<div
class=clear></div> <a
href="http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: inline; margin: 0px 10px 10px 0px" height="66" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb.png" width="93" align="left" /></a> <a
href="http://www.intensedebate.com/" rel="nofollow">IntenseDebate</a>, a popular WordPress comment enhancer <a
href="http://www.google.com/url?sa=t&amp;source=web&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fblog.intensedebate.com%2F2008%2F09%2F23%2Fautomattic-acquires-intensedebate%2F&amp;ei=WiGwSYIGgdqwA_yp5I4B&amp;usg=AFQjCNFvjJMWRkAgB9BvDfD9shtjtmMFBA&amp;sig2=jQFHbJJU0I6YEeY9MK9tZQ" rel="nofollow">recently acquired by Automattic</a> (the creator of WP), just <a
href="http://blog.intensedebate.com/2009/03/05/introducing-intensedebate-plugins-add-the-features-you-want/" rel="nofollow">announced</a> plugin support. It’s a nice touch to the already useful commenting system that allows threading, easier comment moderation, reputation, voting, etc.</p><p>Let’s have a look at some of the announced plugins. Here’s what the comment block looks like with plugins enabled:</p><p><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_3.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="164" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb_3.png" width="428" /></a></p><h3>PollDaddy</h3><p>This plugins allows you to add a poll to your comment. By the way, <a
href="http://www.polldaddy.com/" rel="nofollow">PollDaddy</a> is also an Automattic brand.</p><h2><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_4.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="437" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb_4.png" width="321" /></a><strong></strong></h2><h3>Seesmic</h3><p>Seesmic enables video comments that you can record right off your webcam.</p><p><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_5.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="144" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb_5.png" width="174" /></a>&#160;</p><h3><strong>YouTube</strong></h3><p>I think this one is self-explanatory – you can easily insert youtube videos into your comments.</p><p><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_6.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="186" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb_6.png" width="214" /></a></p><h3>Smileys</h3><p>Adds smiley support.</p><p><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_3.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="164" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb_3.png" width="428" /></a></p></p><p>You can activate the plugins by going to the IntenseDebate dashboard and clicking <a
href="http://intensedebate.com/plugins" rel="nofollow">the new Plugins tab</a>.</p><p>In conclusion, here’s a nice WP hosted video that explains the new features:</p><p
align="center"><embed
src="http://v.wordpress.com/Pk6aHQhX" type="application/x-shockwave-flash" width="640" height="360" allowscriptaccess="always" allowfullscreen="true"></embed></p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=IntenseDebate+Introduces+Plugins&amp;link=http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/&amp;notes=%20IntenseDebate%2C%20a%20popular%20Wordpress%20comment%20enhancer%20recently%20acquired%20by%20Automattic%20%28the%20creator%20of%20WP%29%2C%20just%20announced%20plugin%20support.%20It%E2%80%99s%20a%20nice%20touch%20to%20the%20already%20useful%20commenting%20system%20that%20allows%20threading%2C%20easier%20comment%20moderation%2C%20reputation%2C%20voting%2C%20etc.%20%20Let%E2%80%99s%20have%20a%20look%20at%20some&amp;short_link=http://bit.ly/9bcbVW&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=IntenseDebate+Introduces+Plugins&amp;link=http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/&amp;notes=%20IntenseDebate%2C%20a%20popular%20Wordpress%20comment%20enhancer%20recently%20acquired%20by%20Automattic%20%28the%20creator%20of%20WP%29%2C%20just%20announced%20plugin%20support.%20It%E2%80%99s%20a%20nice%20touch%20to%20the%20already%20useful%20commenting%20system%20that%20allows%20threading%2C%20easier%20comment%20moderation%2C%20reputation%2C%20voting%2C%20etc.%20%20Let%E2%80%99s%20have%20a%20look%20at%20some&amp;short_link=http://bit.ly/9bcbVW&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=IntenseDebate+Introduces+Plugins&amp;link=http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/&amp;notes=%20IntenseDebate%2C%20a%20popular%20Wordpress%20comment%20enhancer%20recently%20acquired%20by%20Automattic%20%28the%20creator%20of%20WP%29%2C%20just%20announced%20plugin%20support.%20It%E2%80%99s%20a%20nice%20touch%20to%20the%20already%20useful%20commenting%20system%20that%20allows%20threading%2C%20easier%20comment%20moderation%2C%20reputation%2C%20voting%2C%20etc.%20%20Let%E2%80%99s%20have%20a%20look%20at%20some&amp;short_link=http://bit.ly/9bcbVW&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=IntenseDebate+Introduces+Plugins&amp;link=http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/&amp;notes=%20IntenseDebate%2C%20a%20popular%20Wordpress%20comment%20enhancer%20recently%20acquired%20by%20Automattic%20%28the%20creator%20of%20WP%29%2C%20just%20announced%20plugin%20support.%20It%E2%80%99s%20a%20nice%20touch%20to%20the%20already%20useful%20commenting%20system%20that%20allows%20threading%2C%20easier%20comment%20moderation%2C%20reputation%2C%20voting%2C%20etc.%20%20Let%E2%80%99s%20have%20a%20look%20at%20some&amp;short_link=http://bit.ly/9bcbVW&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=IntenseDebate+Introduces+Plugins&amp;link=http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/&amp;notes=%20IntenseDebate%2C%20a%20popular%20Wordpress%20comment%20enhancer%20recently%20acquired%20by%20Automattic%20%28the%20creator%20of%20WP%29%2C%20just%20announced%20plugin%20support.%20It%E2%80%99s%20a%20nice%20touch%20to%20the%20already%20useful%20commenting%20system%20that%20allows%20threading%2C%20easier%20comment%20moderation%2C%20reputation%2C%20voting%2C%20etc.%20%20Let%E2%80%99s%20have%20a%20look%20at%20some&amp;short_link=http://bit.ly/9bcbVW&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=IntenseDebate+Introduces+Plugins&amp;link=http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/&amp;notes=%20IntenseDebate%2C%20a%20popular%20Wordpress%20comment%20enhancer%20recently%20acquired%20by%20Automattic%20%28the%20creator%20of%20WP%29%2C%20just%20announced%20plugin%20support.%20It%E2%80%99s%20a%20nice%20touch%20to%20the%20already%20useful%20commenting%20system%20that%20allows%20threading%2C%20easier%20comment%20moderation%2C%20reputation%2C%20voting%2C%20etc.%20%20Let%E2%80%99s%20have%20a%20look%20at%20some&amp;short_link=http://bit.ly/9bcbVW&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=IntenseDebate+Introduces+Plugins&amp;link=http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/&amp;notes=%20IntenseDebate%2C%20a%20popular%20Wordpress%20comment%20enhancer%20recently%20acquired%20by%20Automattic%20%28the%20creator%20of%20WP%29%2C%20just%20announced%20plugin%20support.%20It%E2%80%99s%20a%20nice%20touch%20to%20the%20already%20useful%20commenting%20system%20that%20allows%20threading%2C%20easier%20comment%20moderation%2C%20reputation%2C%20voting%2C%20etc.%20%20Let%E2%80%99s%20have%20a%20look%20at%20some&amp;short_link=http://bit.ly/9bcbVW&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=IntenseDebate%20Introduces%20Plugins&amp;link=http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/&amp;notes=%20IntenseDebate%2C%20a%20popular%20Wordpress%20comment%20enhancer%20recently%20acquired%20by%20Automattic%20%28the%20creator%20of%20WP%29%2C%20just%20announced%20plugin%20support.%20It%E2%80%99s%20a%20nice%20touch%20to%20the%20already%20useful%20commenting%20system%20that%20allows%20threading%2C%20easier%20comment%20moderation%2C%20reputation%2C%20voting%2C%20etc.%20%20Let%E2%80%99s%20have%20a%20look%20at%20some&amp;short_link=http://bit.ly/9bcbVW&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2006/10/03/youtube-custom-rss-search-results/" rel="bookmark" title="October 3, 2006">Youtube Custom RSS Search Results</a></li><li><a
href="http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/" rel="bookmark" title="January 18, 2010">WordPress Developers &#8211; How Do You Make A Living [Poll + Discussion]?</a></li><li><a
href="http://beerpla.net/2008/08/14/how-to-find-out-the-number-of-videos-on-youtube/" rel="bookmark" title="August 14, 2008">How To Find Out The Number Of Videos On Youtube</a></li><li><a
href="http://beerpla.net/2007/03/24/beer-planet-hosting-moved-away-from-dreamhost-thank-god-finally/" rel="bookmark" title="March 24, 2007">Beer Planet Hosting Moved Away From Dreamhost (Thank God, Finally!)</a></li><li><a
href="http://beerpla.net/2009/03/18/mysql-indexing-considerations-of-implementing-a-priority-field-in-your-application/" rel="bookmark" title="March 18, 2009">MySQL Indexing Considerations Of Implementing A Priority Field In Your Application</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F03%2F05%2Fintensedebate-introduces-plugins%2F&amp;title=IntenseDebate%20Introduces%20Plugins" id="wpa2a_26"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>How To SVN Update All Your WordPress Plugins In One Go</title><link>http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/</link> <comments>http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/#comments</comments> <pubDate>Mon, 16 Jun 2008 08:34:37 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Beer Planet]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[all]]></category> <category><![CDATA[mass]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[SVN]]></category> <category><![CDATA[update]]></category> <guid
isPermaLink="false">http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/</guid> <description><![CDATA[<p>If you&#039;re like me, most of your WordPress plugins are checked out into your plugins directory from <a
href="http://svn.wp-plugins.org">the official WordPress SVN repository</a> or some other one. I haven&#039;t updated any of mine for about a month and wanted to sync up everything quickly (including SVN externals). Here&#039;s a short command I ran to achieve that:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code"><pre>cd YOUR_BLOG_ROOT/wp-content/plugins;
find . -maxdepth 1 -type d -exec svn up {} \;</pre></td></tr></table></div><p>What this command does is finds the top level directories in your WordPress plugins directory, then applies the &#34;svn update&#34; command to each, one by one.</p><p>The result is something like</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16</pre></td></tr></table></div><p>...<div
class=clear></div> <a
href="http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>If you&#039;re like me, most of your WordPress plugins are checked out into your plugins directory from <a
href="http://svn.wp-plugins.org">the official WordPress SVN repository</a> or some other one. I haven&#039;t updated any of mine for about a month and wanted to sync up everything quickly (including SVN externals). Here&#039;s a short command I ran to achieve that:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code"><pre>cd YOUR_BLOG_ROOT/wp-content/plugins;
find . -maxdepth 1 -type d -exec svn up {} \;</pre></td></tr></table></div><p>What this command does is finds the top level directories in your WordPress plugins directory, then applies the &quot;svn update&quot; command to each, one by one.</p><p>The result is something like</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre></td><td
class="code"><pre>Fetching external item into 'akismet'
A    akismet/readme.txt
Updated external to revision 50666.
&nbsp;
Updated to revision 8094.
At revision 8094.
U    share-this/sharethis.php
Updated to revision 50666.
D    wp-postratings/postratings-admin-js.php
D    wp-postratings/postratings-usage.php
D    wp-postratings/postratings-js.php
A    wp-postratings/postratings-js-packed.js
U    wp-postratings/wp-postratings.php
A    wp-postratings/postratings-admin-js.js
U    wp-postratings/postratings-css.css
U    wp-postratings/postratings-options.php
A    wp-postratings/postratings-templates.php
U    wp-postratings/postratings-stats.php
U    wp-postratings/readme.html
A    wp-postratings/postratings-js.js
U    wp-postratings/wp-postratings.pot
U    wp-postratings/wp-postratings-widget.php
U    wp-postratings/postratings-uninstall.php
U    wp-postratings/postratings-admin-ajax.php
U    wp-postratings/wp-postratings.mo
U    wp-postratings/readme.txt
U    wp-postratings/postratings-manager.php
A    wp-postratings/postratings-admin-js-packed.js
Updated to revision 50666.
At revision 8094.
...</pre></td></tr></table></div><p>With such mass updating, of course, an incompatibility in one of the updates can break the whole blog. In my case, it happened to be the latest version of wp-sticky. I identified it by disabling wp-super-cache first, then disabling each updated plugin one by one. Once identified, I did the following:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code"><pre>cd wp-sticky
svn log | head</pre></td></tr></table></div><p>That showed me the latest commits by the author as well as the SVN revision numbers. I then used this information to revert one revision back by doing:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>svn up -r 50489</pre></td></tr></table></div><p>The following command showed a diff of what exactly changed in that revision and broke everything:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>svn diff -r50489:50490</pre></td></tr></table></div><p>Once everything was stable, I emailed the plugin author to tell him about the bug (heya, Lester). Be careful not to run &#039;svn up&#039; on this directory again until the bug is fixed as it&#039;ll persistently update to the latest version.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+SVN+Update+All+Your+Wordpress+Plugins+In+One+Go&amp;link=http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/&amp;notes=If%20you%27re%20like%20me%2C%20most%20of%20your%20Wordpress%20plugins%20are%20checked%20out%20into%20your%20plugins%20directory%20from%20the%20official%20Wordpress%20SVN%20repository%20or%20some%20other%20one.%20I%20haven%27t%20updated%20any%20of%20mine%20for%20about%20a%20month%20and%20wanted%20to%20sync%20up%20everything%20quickly%20%28including%20SVN%20externals%29.%20Here%27s%20a%20short%20command%20I%20ran&amp;short_link=http://bit.ly/bj9fqO&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+SVN+Update+All+Your+Wordpress+Plugins+In+One+Go&amp;link=http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/&amp;notes=If%20you%27re%20like%20me%2C%20most%20of%20your%20Wordpress%20plugins%20are%20checked%20out%20into%20your%20plugins%20directory%20from%20the%20official%20Wordpress%20SVN%20repository%20or%20some%20other%20one.%20I%20haven%27t%20updated%20any%20of%20mine%20for%20about%20a%20month%20and%20wanted%20to%20sync%20up%20everything%20quickly%20%28including%20SVN%20externals%29.%20Here%27s%20a%20short%20command%20I%20ran&amp;short_link=http://bit.ly/bj9fqO&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+SVN+Update+All+Your+Wordpress+Plugins+In+One+Go&amp;link=http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/&amp;notes=If%20you%27re%20like%20me%2C%20most%20of%20your%20Wordpress%20plugins%20are%20checked%20out%20into%20your%20plugins%20directory%20from%20the%20official%20Wordpress%20SVN%20repository%20or%20some%20other%20one.%20I%20haven%27t%20updated%20any%20of%20mine%20for%20about%20a%20month%20and%20wanted%20to%20sync%20up%20everything%20quickly%20%28including%20SVN%20externals%29.%20Here%27s%20a%20short%20command%20I%20ran&amp;short_link=http://bit.ly/bj9fqO&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+SVN+Update+All+Your+Wordpress+Plugins+In+One+Go&amp;link=http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/&amp;notes=If%20you%27re%20like%20me%2C%20most%20of%20your%20Wordpress%20plugins%20are%20checked%20out%20into%20your%20plugins%20directory%20from%20the%20official%20Wordpress%20SVN%20repository%20or%20some%20other%20one.%20I%20haven%27t%20updated%20any%20of%20mine%20for%20about%20a%20month%20and%20wanted%20to%20sync%20up%20everything%20quickly%20%28including%20SVN%20externals%29.%20Here%27s%20a%20short%20command%20I%20ran&amp;short_link=http://bit.ly/bj9fqO&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+SVN+Update+All+Your+Wordpress+Plugins+In+One+Go&amp;link=http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/&amp;notes=If%20you%27re%20like%20me%2C%20most%20of%20your%20Wordpress%20plugins%20are%20checked%20out%20into%20your%20plugins%20directory%20from%20the%20official%20Wordpress%20SVN%20repository%20or%20some%20other%20one.%20I%20haven%27t%20updated%20any%20of%20mine%20for%20about%20a%20month%20and%20wanted%20to%20sync%20up%20everything%20quickly%20%28including%20SVN%20externals%29.%20Here%27s%20a%20short%20command%20I%20ran&amp;short_link=http://bit.ly/bj9fqO&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+SVN+Update+All+Your+Wordpress+Plugins+In+One+Go&amp;link=http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/&amp;notes=If%20you%27re%20like%20me%2C%20most%20of%20your%20Wordpress%20plugins%20are%20checked%20out%20into%20your%20plugins%20directory%20from%20the%20official%20Wordpress%20SVN%20repository%20or%20some%20other%20one.%20I%20haven%27t%20updated%20any%20of%20mine%20for%20about%20a%20month%20and%20wanted%20to%20sync%20up%20everything%20quickly%20%28including%20SVN%20externals%29.%20Here%27s%20a%20short%20command%20I%20ran&amp;short_link=http://bit.ly/bj9fqO&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+SVN+Update+All+Your+Wordpress+Plugins+In+One+Go&amp;link=http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/&amp;notes=If%20you%27re%20like%20me%2C%20most%20of%20your%20Wordpress%20plugins%20are%20checked%20out%20into%20your%20plugins%20directory%20from%20the%20official%20Wordpress%20SVN%20repository%20or%20some%20other%20one.%20I%20haven%27t%20updated%20any%20of%20mine%20for%20about%20a%20month%20and%20wanted%20to%20sync%20up%20everything%20quickly%20%28including%20SVN%20externals%29.%20Here%27s%20a%20short%20command%20I%20ran&amp;short_link=http://bit.ly/bj9fqO&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20SVN%20Update%20All%20Your%20Wordpress%20Plugins%20In%20One%20Go&amp;link=http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/&amp;notes=If%20you%27re%20like%20me%2C%20most%20of%20your%20Wordpress%20plugins%20are%20checked%20out%20into%20your%20plugins%20directory%20from%20the%20official%20Wordpress%20SVN%20repository%20or%20some%20other%20one.%20I%20haven%27t%20updated%20any%20of%20mine%20for%20about%20a%20month%20and%20wanted%20to%20sync%20up%20everything%20quickly%20%28including%20SVN%20externals%29.%20Here%27s%20a%20short%20command%20I%20ran&amp;short_link=http://bit.ly/bj9fqO&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/" rel="bookmark" title="June 20, 2009">How To Properly Set SVN svn:externals Property In SVN Command Line</a></li><li><a
href="http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/" rel="bookmark" title="February 20, 2010">How To View A Specific SVN Revision In Your Browser</a></li><li><a
href="http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/" rel="bookmark" title="July 23, 2008">How To Check If The Local SVN Revision Is Up-To-Date</a></li><li><a
href="http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/" rel="bookmark" title="November 16, 2011">How To: Disable/Block External HTTP Requests In WordPress</a></li><li><a
href="http://beerpla.net/2010/03/06/how-to-show-hiddeninvisible-files-in-total-commander-both-locally-and-on-an-ftp-server/" rel="bookmark" title="March 6, 2010">How To Show Hidden/Invisible Files In Total Commander, Both Locally And On An FTP Server</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2008%2F06%2F16%2Fhow-to-svn-update-all-your-wordpress-plugins-in-one-go%2F&amp;title=How%20To%20SVN%20Update%20All%20Your%20WordPress%20Plugins%20In%20One%20Go" id="wpa2a_28"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Beer Planet Upgraded To WordPress 2.5</title><link>http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/</link> <comments>http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/#comments</comments> <pubDate>Sun, 30 Mar 2008 01:30:03 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Beer Planet]]></category> <category><![CDATA[Wordpress]]></category> <guid
isPermaLink="false">http://beerpla.net/?p=310</guid> <description><![CDATA[<div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>svn sw http://svn.automattic.com/wordpress/tags/2.5</pre></td></tr></table></div><p> and Beer Planet is on 2.5. There were no problems with the upgrade itself or any of the plugins. Great work on the new clean interface and multi-file upload, WordPress!</p><p>Info here: <a
href="http://codex.wordpress.org/Version_2.5">http://codex.wordpress.org/Version_2.5</a> (short) and <a
href="http://wordpress.org/development/2008/03/wordpress-25-brecker/">http://wordpress.org/development/2008/03/wordpress-25-brecker/</a> (more detailed)</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Beer+Planet+Upgraded+To+Wordpress+2.5&#38;link=http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/&#38;notes=svn%20sw%20http%3A%2F%2Fsvn.automattic.com%2Fwordpress%2Ftags%2F2.5%20and%20Beer%20Planet%20is%20on%202.5.%20There%20were%20no%20problems%20with%20the%20upgrade%20itself%20or%20any%20of%20the%20plugins.%20Great%20work%20on%20the%20new%20clean%20interface%20and%20multi-file%20upload%2C%20Wordpress%21%0D%0AInfo%20here%3A%20http%3A%2F%2Fcodex.wordpress.org%2FVersion_2.5%20%28short%29%20and%20http%3A%2F%2Fwordpress&#38;short_link=http://bit.ly/99DZjE&#38;v=1&#38;apitype=1&#38;apikey=8afa39428933be41f8afdb8ea21a495c&#38;source=Shareaholic&#38;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&#38;service=7&#38;tags=&#38;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Beer+Planet+Upgraded+To+Wordpress+2.5&#38;link=http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/&#38;notes=svn%20sw%20http%3A%2F%2Fsvn.automattic.com%2Fwordpress%2Ftags%2F2.5%20and%20Beer%20Planet%20is%20on%202.5.%20There%20were%20no%20problems%20with%20the%20upgrade%20itself%20or%20any%20of%20the%20plugins.%20Great%20work%20on%20the%20new%20clean%20interface%20and%20multi-file%20upload%2C%20Wordpress%21%0D%0AInfo%20here%3A%20http%3A%2F%2Fcodex.wordpress.org%2FVersion_2.5%20%28short%29%20and%20http%3A%2F%2Fwordpress&#38;short_link=http://bit.ly/99DZjE&#38;v=1&#38;apitype=1&#38;apikey=8afa39428933be41f8afdb8ea21a495c&#38;source=Shareaholic&#38;template=&#38;service=5&#38;tags=&#38;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Beer+Planet+Upgraded+To+Wordpress+2.5&#38;link=http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/&#38;notes=svn%20sw%20http%3A%2F%2Fsvn.automattic.com%2Fwordpress%2Ftags%2F2.5%20and%20Beer%20Planet%20is%20on%202.5.%20There%20were%20no%20problems%20with%20the%20upgrade%20itself%20or%20any%20of%20the%20plugins.%20Great%20work%20on%20the%20new%20clean%20interface%20and%20multi-file%20upload%2C%20Wordpress%21%0D%0AInfo%20here%3A%20http%3A%2F%2Fcodex.wordpress.org%2FVersion_2.5%20%28short%29%20and%20http%3A%2F%2Fwordpress&#38;short_link=http://bit.ly/99DZjE&#38;v=1&#38;apitype=1&#38;apikey=8afa39428933be41f8afdb8ea21a495c&#38;source=Shareaholic&#38;template=&#38;service=257&#38;tags=&#38;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Beer+Planet+Upgraded+To+Wordpress+2.5&#38;link=http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/&#38;notes=svn%20sw%20http%3A%2F%2Fsvn.automattic.com%2Fwordpress%2Ftags%2F2.5%20and%20Beer%20Planet%20is%20on%202.5.%20There%20were%20no%20problems%20with%20the%20upgrade%20itself%20or%20any%20of%20the%20plugins.%20Great%20work%20on%20the%20new%20clean%20interface%20and%20multi-file%20upload%2C%20Wordpress%21%0D%0AInfo%20here%3A%20http%3A%2F%2Fcodex.wordpress.org%2FVersion_2.5%20%28short%29%20and%20http%3A%2F%2Fwordpress&#38;short_link=http://bit.ly/99DZjE&#38;v=1&#38;apitype=1&#38;apikey=8afa39428933be41f8afdb8ea21a495c&#38;source=Shareaholic&#38;template=&#38;service=40&#38;tags=&#38;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Beer+Planet+Upgraded+To+Wordpress+2.5&#38;link=http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/&#38;notes=svn%20sw%20http%3A%2F%2Fsvn.automattic.com%2Fwordpress%2Ftags%2F2.5%20and%20Beer%20Planet%20is%20on%202.5.%20There%20were%20no%20problems%20with%20the%20upgrade%20itself%20or%20any%20of%20the%20plugins.%20Great%20work%20on%20the%20new%20clean%20interface%20and%20multi-file%20upload%2C%20Wordpress%21%0D%0AInfo%20here%3A%20http%3A%2F%2Fcodex.wordpress.org%2FVersion_2.5%20%28short%29%20and%20http%3A%2F%2Fwordpress&#38;short_link=http://bit.ly/99DZjE&#38;v=1&#38;apitype=1&#38;apikey=8afa39428933be41f8afdb8ea21a495c&#38;source=Shareaholic&#38;template=&#38;service=202&#38;tags=&#38;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li</ul></div><p>...<div
class=clear></div> <a
href="http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>svn sw http://svn.automattic.com/wordpress/tags/2.5</pre></td></tr></table></div><p> and Beer Planet is on 2.5. There were no problems with the upgrade itself or any of the plugins. Great work on the new clean interface and multi-file upload, WordPress!</p><p>Info here: <a
href="http://codex.wordpress.org/Version_2.5">http://codex.wordpress.org/Version_2.5</a> (short) and <a
href="http://wordpress.org/development/2008/03/wordpress-25-brecker/">http://wordpress.org/development/2008/03/wordpress-25-brecker/</a> (more detailed)</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Beer+Planet+Upgraded+To+Wordpress+2.5&amp;link=http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/&amp;notes=svn%20sw%20http%3A%2F%2Fsvn.automattic.com%2Fwordpress%2Ftags%2F2.5%20and%20Beer%20Planet%20is%20on%202.5.%20There%20were%20no%20problems%20with%20the%20upgrade%20itself%20or%20any%20of%20the%20plugins.%20Great%20work%20on%20the%20new%20clean%20interface%20and%20multi-file%20upload%2C%20Wordpress%21%0D%0AInfo%20here%3A%20http%3A%2F%2Fcodex.wordpress.org%2FVersion_2.5%20%28short%29%20and%20http%3A%2F%2Fwordpress&amp;short_link=http://bit.ly/99DZjE&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Beer+Planet+Upgraded+To+Wordpress+2.5&amp;link=http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/&amp;notes=svn%20sw%20http%3A%2F%2Fsvn.automattic.com%2Fwordpress%2Ftags%2F2.5%20and%20Beer%20Planet%20is%20on%202.5.%20There%20were%20no%20problems%20with%20the%20upgrade%20itself%20or%20any%20of%20the%20plugins.%20Great%20work%20on%20the%20new%20clean%20interface%20and%20multi-file%20upload%2C%20Wordpress%21%0D%0AInfo%20here%3A%20http%3A%2F%2Fcodex.wordpress.org%2FVersion_2.5%20%28short%29%20and%20http%3A%2F%2Fwordpress&amp;short_link=http://bit.ly/99DZjE&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Beer+Planet+Upgraded+To+Wordpress+2.5&amp;link=http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/&amp;notes=svn%20sw%20http%3A%2F%2Fsvn.automattic.com%2Fwordpress%2Ftags%2F2.5%20and%20Beer%20Planet%20is%20on%202.5.%20There%20were%20no%20problems%20with%20the%20upgrade%20itself%20or%20any%20of%20the%20plugins.%20Great%20work%20on%20the%20new%20clean%20interface%20and%20multi-file%20upload%2C%20Wordpress%21%0D%0AInfo%20here%3A%20http%3A%2F%2Fcodex.wordpress.org%2FVersion_2.5%20%28short%29%20and%20http%3A%2F%2Fwordpress&amp;short_link=http://bit.ly/99DZjE&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Beer+Planet+Upgraded+To+Wordpress+2.5&amp;link=http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/&amp;notes=svn%20sw%20http%3A%2F%2Fsvn.automattic.com%2Fwordpress%2Ftags%2F2.5%20and%20Beer%20Planet%20is%20on%202.5.%20There%20were%20no%20problems%20with%20the%20upgrade%20itself%20or%20any%20of%20the%20plugins.%20Great%20work%20on%20the%20new%20clean%20interface%20and%20multi-file%20upload%2C%20Wordpress%21%0D%0AInfo%20here%3A%20http%3A%2F%2Fcodex.wordpress.org%2FVersion_2.5%20%28short%29%20and%20http%3A%2F%2Fwordpress&amp;short_link=http://bit.ly/99DZjE&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Beer+Planet+Upgraded+To+Wordpress+2.5&amp;link=http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/&amp;notes=svn%20sw%20http%3A%2F%2Fsvn.automattic.com%2Fwordpress%2Ftags%2F2.5%20and%20Beer%20Planet%20is%20on%202.5.%20There%20were%20no%20problems%20with%20the%20upgrade%20itself%20or%20any%20of%20the%20plugins.%20Great%20work%20on%20the%20new%20clean%20interface%20and%20multi-file%20upload%2C%20Wordpress%21%0D%0AInfo%20here%3A%20http%3A%2F%2Fcodex.wordpress.org%2FVersion_2.5%20%28short%29%20and%20http%3A%2F%2Fwordpress&amp;short_link=http://bit.ly/99DZjE&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Beer+Planet+Upgraded+To+Wordpress+2.5&amp;link=http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/&amp;notes=svn%20sw%20http%3A%2F%2Fsvn.automattic.com%2Fwordpress%2Ftags%2F2.5%20and%20Beer%20Planet%20is%20on%202.5.%20There%20were%20no%20problems%20with%20the%20upgrade%20itself%20or%20any%20of%20the%20plugins.%20Great%20work%20on%20the%20new%20clean%20interface%20and%20multi-file%20upload%2C%20Wordpress%21%0D%0AInfo%20here%3A%20http%3A%2F%2Fcodex.wordpress.org%2FVersion_2.5%20%28short%29%20and%20http%3A%2F%2Fwordpress&amp;short_link=http://bit.ly/99DZjE&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Beer+Planet+Upgraded+To+Wordpress+2.5&amp;link=http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/&amp;notes=svn%20sw%20http%3A%2F%2Fsvn.automattic.com%2Fwordpress%2Ftags%2F2.5%20and%20Beer%20Planet%20is%20on%202.5.%20There%20were%20no%20problems%20with%20the%20upgrade%20itself%20or%20any%20of%20the%20plugins.%20Great%20work%20on%20the%20new%20clean%20interface%20and%20multi-file%20upload%2C%20Wordpress%21%0D%0AInfo%20here%3A%20http%3A%2F%2Fcodex.wordpress.org%2FVersion_2.5%20%28short%29%20and%20http%3A%2F%2Fwordpress&amp;short_link=http://bit.ly/99DZjE&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Beer%20Planet%20Upgraded%20To%20Wordpress%202.5&amp;link=http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/&amp;notes=svn%20sw%20http%3A%2F%2Fsvn.automattic.com%2Fwordpress%2Ftags%2F2.5%20and%20Beer%20Planet%20is%20on%202.5.%20There%20were%20no%20problems%20with%20the%20upgrade%20itself%20or%20any%20of%20the%20plugins.%20Great%20work%20on%20the%20new%20clean%20interface%20and%20multi-file%20upload%2C%20Wordpress%21%0D%0AInfo%20here%3A%20http%3A%2F%2Fcodex.wordpress.org%2FVersion_2.5%20%28short%29%20and%20http%3A%2F%2Fwordpress&amp;short_link=http://bit.ly/99DZjE&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/" rel="bookmark" title="January 18, 2010">WordPress Developers &#8211; How Do You Make A Living [Poll + Discussion]?</a></li><li><a
href="http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/" rel="bookmark" title="February 20, 2010">How To View A Specific SVN Revision In Your Browser</a></li><li><a
href="http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/" rel="bookmark" title="November 4, 2009">[Android] Auto Formatting Android XML Files With Eclipse</a></li><li><a
href="http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/" rel="bookmark" title="July 23, 2008">How To Check If The Local SVN Revision Is Up-To-Date</a></li><li><a
href="http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/" rel="bookmark" title="January 31, 2010">How To Remove Inline Hardcoded Recent Comments Sidebar Widget Style From Your WordPress Theme</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2008%2F03%2F29%2Fbeer-planet-upgraded-to-wordpress-25%2F&amp;title=Beer%20Planet%20Upgraded%20To%20WordPress%202.5" id="wpa2a_30"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
