<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>WordPress Splash » Blog</title>
	
	<link>http://wpsplash.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 14 Jun 2010 15:44:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/wpsplash" /><feedburner:info uri="wpsplash" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>How to Really Use Facebook ‘Like’ Feature for WordPress</title>
		<link>http://feedproxy.google.com/~r/wpsplash/~3/77cNiDQ90Xg/</link>
		<comments>http://wpsplash.com/how-to-facebook-like-button-wordpress/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 15:44:00 +0000</pubDate>
		<dc:creator>Asad Khan</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[marketing]]></category>
		<category><![CDATA[social media]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://wpsplash.com/?p=444</guid>
		<description><![CDATA[Facebook's Like button is the latest hype in marketing. There's a cloud of confusion though; why and how to use it on a WordPress blog. This post explains everything.]]></description>
			<content:encoded><![CDATA[<p>Facebook&#8217;s Like button has been in the news since its release in March. It has had its share of criticism from privacy issues to value creation questioning. Nonetheless, the web has adopted <a href="http://opengraphprotocol.org/">Open Graph Protocol</a> and the Like button at rapid pace.</p>
<h3>Does it really benefit your blog?</h3>
<p>Like every new hype, most people are implementing the Like button without really considering the usefulness of doing so. A question to ask often is if the Like button is really a good fit for your blog. </p>
<p>There is much talk on the subject, however, most will convince you that it&#8217;s as easy as users sharing the links and their friends getting exposure to the links right away. It&#8217;s not always the case, unfortunately. </p>
<p>First, let&#8217;s sprint through the basics. </p>
<p><b>What happens when someone &#8220;Like&#8221; an article</b><br />
It appears in the following places but there are limitations and conditions: </p>
<ol>
<li><em>User&#8217;s Wall &#8211; &#8220;Recent Activity&#8221;</em> &#8212;  Very few people see this. </li>
<li><em>Friends&#8217; News Feed</em> &#8212; However, it depends on <a href="http://techcrunch.com/2010/04/22/facebook-edgerank/">Facebook&#8217;s EdgeRank algorithm</a> &#8212; Not everything will make it to all of your friend&#8217;s News Feed.</li>
<li><em>User&#8217;s &#8220;Likes and Interests&#8221;</em> &#8212; For any Open Graph object that&#8217;s <em>not</em> an article or news tidbit. (More on Objects below)</li>
<li><em>User can receive updates in their &#8220;News Feed&#8221;</em> &#8212; Sent by the hidden page admin. It works only if an admin is specified while implementing the Like button code. It also requires a more complex setup to be able to update the fans all your Liked pages. </li>
</ol>
<p><strong>So, it&#8217;s useful?</strong><br />
While some blogs do find it useful, many small traffic blogs just don&#8217;t! I suggest that you read on, get a better understanding and form your own opinion.</p>
<h3>How to benefit from it?</h3>
<p><strong>Rely on Likes appearing in &#8220;News Feeds&#8221;</strong><br />
Theoretically, whenever a user Like something on your blog, it gets posted on his/her friends News Feed too. But recall that not all updates or Likes by a user will reach all of his/her friends. It entirely depends on the <a href="http://techcrunch.com/2010/04/22/facebook-edgerank/">Facebook&#8217;s EdgeRank Algorithm</a>. </p>
<p>For some blogs where the content really suits the social users, this alone might be very useful. However, more can be done.</p>
<p><strong>Send interesting updates</strong><br />
When implemented correctly, you can send updates to all the users who ever liked a post on your blog. Whenever users Like a post on your blog, they automatically become a <em>Fan</em> of a hidden facebook page which is considered as an Open Graph <em>object</em>. While they can receive the updates in their &#8220;News Feed&#8221; posted by an admin of this page/object, the object name will link to your blog post instead of a facebook page.</p>
<p>The issue here is, a blog can easily have hundreds of posts. Each post is considered an <em>object</em> and each <em>object</em> has it&#8217;s own individual page to send updates from. Manually visiting each page and posting the update for hundreds of pages just isn&#8217;t realistic. To update all fans of all objects/pages, you&#8217;ll have to do it programmatically. This requires you to register and use a <a href="http://developers.facebook.com/docs/guides/web">Facebook Platform application</a>. Unfortunately, I have not found a WordPress plugin that can handle the programmatic updates for you. You will have to get it custom built. </p>
<p>Most people don&#8217;t realize they&#8217;re subscribing to receive updates when they Like something on your blog. So use this wisely; make your updates least spammy as possible or they may as well <em>Dislike</em> your blog. </p>
<p>Again, remember that there&#8217;s no guarantee that these updates will appear on all your fans&#8217; News Feeds. <a href="http://techcrunch.com/2010/04/22/facebook-edgerank/">Facebook&#8217;s EdgeRank Algorithm</a> calls the final shots. </p>
<p><strong>Use it with Recommendations plugin</strong><br />
If you have a blog with many facebook users and a decent overall traffic, you can implement Like button with other facebook social plugins such as the <a href="http://developers.facebook.com/docs/reference/plugins/recommendations">Recommendations</a> box.</p>
<p>The social recommendations box is usually added to the sidebar to show popular relevant content to your users. Your users will see posts that their friends like (liked or shared), whenever they are logged into facebook. When they&#8217;re not logged in, they&#8217;ll see posts that are, overall, most liked or shared from your blog. </p>
<p><strong>Everything is an object</strong><br />
If you are using WordPress in such a way that every single post/page is a unique object (unique product pages, movie or celebrity pages, for example), then you can mark it as such. Having pages as objects make them appear categorized in user&#8217;s &#8220;Likes and Interests&#8221; under relevant category. </p>
<p>To implement you can define the <em>og:type</em> tag using one of the <a href="http://developers.facebook.com/docs/opengraph#types">supported types</a>. Perhaps you can use tags, categories or taxonomies here. Since this is a rare case, I do not have concrete implementation examples here. </p>
<h3>How to add Like button on WordPress</h3>
<p>It depends upon your requirement. </p>
<h4>Updates and hidden facebook pages required?</h4>
<p>Whether or not you setup a custom system to handle programmatic updating of your News Feed, you still need the basic meta tags in place. This will ensure that you can Like your own pages, and then be able to Administer and post updates via them. I recommend <a href="http://wordpress.org/extend/plugins/like/">Like plugin</a> in the WordPress plugin repository.</p>
<h4>No News Feed updates necessary?</h4>
<p>Perhaps you use a <em>Fan Page</em> instead. Or perhaps you are not interested in feed updates at all. In this case, the implementation is pretty simple.</p>
<p>Here, you have two choices as well.</p>
<blockquote><p><strong>The xfbml advantage</strong><br />
It&#8217;s more complex, but when the user presses the Like button, a small comment box is display. If a user enters a comment, this not only increases the chance of displaying in user&#8217;s friends News Feed, but also is displayed more like a normal update posted by the user. This makes it significantly more useful especially if you&#8217;re relying on News Feed exposure alone. </p>
<p>PangPond has a nice <a href="http://www.pangpondblog.com/howto-add-facebook-like-button-to-your-site">article explaining the difference</a>.</p>
<p>To setup on WordPress, you will have to <a href="http://developers.facebook.com/setup/">register a facebook application</a> and then use the <a href="http://wordpress.org/extend/plugins/like/">Like plugin</a>.</p>
<p><strong>Quick, and less complex</strong><br />
Or you can quickly get it done. </p>
<ol>
<li>Open <em>single.php</em> and place the following code where you want the Like button to show.
<pre class="brush: php;">
&lt;iframe src=&quot;http://www.facebook.com/plugins/like.php?href=&lt;?php echo urlencode(get_permalink($post-&gt;ID)); ?&gt;&amp;amp;layout=standard&amp;amp;show_faces=false&amp;amp;width=450&amp;amp;action=like&amp;amp;colorscheme=light&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; allowTransparency=&quot;true&quot; style=&quot;border:none; overflow:hidden; width:450px; height:60px;&quot;&gt;
&lt;/iframe&gt;
</pre>
<p>Note that you can generate the same code at <a href="http://developers.facebook.com/docs/reference/plugins/like/code">Facebook</a> but replace href query parameter with a value of <em>&lt;?php echo urlencode(get_permalink($post->ID)); ?&gt;</em></p>
<li>Save, close and test.</li>
</ol>
</blockquote>
<h3>Common Questions</h3>
<p><strong>How to send updates?</strong><br />
Like any page on your site. Next, refresh the page to see an <em>Admin Page</em> link. Clicking on the link will take you to the hidden page where you can see all the relevant page. Please note that it will only work if you had specified the correct user id in the fb:admins meta tag, i.e. configured it properly in the plugin. </p>
<p>All the pages that you Like, and those that you can <em>Administer</em> can be managed by clicking the <em>Account</em> menu at top left of your facebook account and then clicking <em>Manage Pages</em>. Note that <em>Manage Page</em> only appears when you are admin of at least one page.</p>
<p><strong>How to install the facebook Recommendations social plugin?</strong><br />
Go to the <a href="http://developers.facebook.com/docs/reference/plugins/recommendations">official code generator</a>. Copy the code into one of the widgets in your WordPress or modify the theme&#8217;s <em>sidebar.php</em> manually.</p>
<h3>Keep In Touch!</h3>
<p>Like it or hate it, Facebook is clearly one of the marketing tools of today. Use it, experiment, learn, adapt and please remember to share your experience. </p>
<p>Don&#8217;t forget to subscribe to our <a href="http://feeds.feedburner.com/wpsplash">RSS Feed</a> and <a href="http://twitter.com/WPSplash">follow us on Twitter</a> to stay updated.</p>
<img src="http://feeds.feedburner.com/~r/wpsplash/~4/77cNiDQ90Xg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpsplash.com/how-to-facebook-like-button-wordpress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://wpsplash.com/how-to-facebook-like-button-wordpress/</feedburner:origLink></item>
		<item>
		<title>WordPress Licensing Guide for Theme and Plugin Developers</title>
		<link>http://feedproxy.google.com/~r/wpsplash/~3/S-dCo7K_WDc/</link>
		<comments>http://wpsplash.com/licensing-explained-for-wordpress-theme-and-plugin-developers/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 10:02:55 +0000</pubDate>
		<dc:creator>Asad Khan</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[WordPress Tutorials]]></category>
		<category><![CDATA[Business]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[gpl]]></category>
		<category><![CDATA[license]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://wpsplash.com/?p=392</guid>
		<description><![CDATA[Wordpress is licensed under GPL -- a free software license that has freedom of usage, modification, distribution. What does this mean for you as a developer?]]></description>
			<content:encoded><![CDATA[<p>WordPress is licensed under <a href="http://codex.wordpress.org/GPL">GPL</a> &#8212; a free software license that has freedom of usage, modification, and distribution. Many developers are confused about the implications of this license but it&#8217;s not as complex as it seems. </p>
<p>The popularity of WordPress has to be attributed to the business model based around open-source and community contribution. A lot of open-source contributors prefer to contribute to projects that are licensed under GPL. It&#8217;s usually due to <a href="http://www.gnu.org/philosophy/philosophy.html">GPL&#8217;s Philosophy</a> and idea of <a href="http://www.gnu.org/philosophy/open-source-misses-the-point.html">freedom in software</a> being aligned with their beliefs. </p>
<p>First of all, some of the GPL in layman&#8217;s terms:</p>
<ul>
<li>Anyone may modify, use, or redistribute (provided GPL notices including license, warranty disclaimer etc. are retained) your software for free or for a price.</li>
<li>Notices, including credits, in source code should be retained when re-distributing. Further credits are preferred to be added using the &#8220;modified by&#8221; or a similar notice. You are automatically the copyright holder of the code you wrote. But no credits can be forced in HTML since everyone has the right to modify the code and remove them.</li>
<li>You are not required to release your code modifications to anyone. But once you distribute your modifications to anyone (a friend or anyone else), he/she has the right to distribute/release the code to public.</li>
<li>If you release the code, all improved versions of the code have to be released under GPL.</li>
<li>Any library/code that relies on GPL code has to be released under GPL or a GPL compatible license.</li>
</ul>
<p>Still have questions? Head over to the <a href="http://www.gnu.org/licenses/gpl-faq.html">official F.A.Q.</a></p>
<h2>Your work for WordPress is GPL too</h2>
<p>If there&#8217;s anything in your code that relies on WordPress&#8217;s code (template tags, functions etc.), your work automatically becomes GPL by law (derivative code), whether you state it or not. <a href="http://wordpress.org/development/2009/07/themes-are-gpl-too/">There are exceptions</a> in both themes and plugins, however. If a few elements do not depend on the WordPress at all, they may be licensed differently &#8211; such as css files and images. </p>
<h2>For Theme Developers</h2>
<p>Themes do not have to be entirely GPL, as confirmed by <a href="http://wordpress.org/development/2009/07/themes-are-gpl-too/">Matt</a>. But if you want your themes to be listed in WordPress&#8217;s directory, you&#8217;ll have to make them completely GPL or GPL compatible. </p>
<p>The PHP template files make extensive use of WordPress with HTML to form the layouts. Additionally, they utilize WordPress&#8217;s theme engine. CSS and image files are an exception since they do not rely on anything in WordPress at all. </p>
<p>Given that being listed in wordpress.org isn&#8217;t a requirement, you can license your theme&#8217;s PHP files using GPL but use a proprietary/custom license for the images and CSS. </p>
<h2>For Plugin Developers</h2>
<p>Practically, all your plugins have to be GPL as they&#8217;re derived work. People have debated tirelessly over the issue but as <a href="http://www.gnu.org/licenses/gpl-faq.html#GPLAndPlugins">explained in the faq</a>, all your plug-ins have to be licensed using GPL or a compatible license.</p>
<p>The only exception is when you create a completely isolated software that&#8217;s <em>bridged</em> to WordPress but uses no API functions (except for a few &#8216;action&#8217; hooks to initialize the software) or data structures. One example of such would be an isolated photo gallery which is associated with a certain action hook to be displayed at one specific page. </p>
<h2>Retaining control and limiting competition</h2>
<p>One of the philosophies of GNU GPL is that of freedom. Anyone should have the right to do whatever they want with your software which includes re-distributing your software for a fee. While as absurd as it may sound to the business-minded people stuck with a tunnel vision or a different school of thought, it is the driving force behind the success of WordPress and many other open-source softwares out there. </p>
<p>Having WordPress open-source has resulted in immense contributions and development. That&#8217;s exactly what made it so usable for hundreds of thousands of people who use WordPress on daily basis, without paying a penny! It&#8217;s also helped setup many small businesses that rely on WordPress. Matt has written an <a href="http://ma.tt/2007/07/price-of-freedom/">awesome article</a>, price of freedom, explaining the same in detail.</p>
<p><strong>Think outside the box</strong><br />
Cliche, you may say (I&#8217;m guilty!). But if you want to earn money from WordPress, learning from <a href="http://automattic.com/">Automattic</a>&#8217;s success is a good idea. I prefer to think of business opportunities in an innovative style. Offering support, customizations, a <a href="http://en.wikipedia.org/wiki/Software_as_a_service">SaaS</a> with <a href="http://en.wikipedia.org/wiki/Freemium">freemium model</a> etc. </p>
<p><strong>Your competition is not strong enough</strong><br />
Even if somebody decides to take a free-ride on your code, they&#8217;ll not know the system and code as good as you do and as such their support will be lackluster. And though it may be legal, it&#8217;s considered unethical by most, so a large brand is almost never likely to go that route; in other words, your competition &#8211; if any &#8211; will be small. </p>
<p>Moreover, without a better execution (improvements) on your competition&#8217;s part, you&#8217;ll have nothing to worry about. Alister has a good <a href="http://www.alistercameron.com/2008/12/14/matt-mullenweg-wordpress-gpl/">article on creating value</a> and why GPL is not <em>the problem</em>. </p>
<p><strong>Brand Matters and First Mover Advantage</strong><br />
Everyone knows about branding. And <a href="http://sethgodin.typepad.com/seths_blog/2009/12/define-brand.html">brand matters</a>. Business theories, when considering <em>free/cheap me-toos</em>, suggest that they&#8217;re often considered inferior alternatives in the mind of consumers. Additionally, <a href="http://en.wikipedia.org/wiki/First-mover_advantage">first-mover advantage</a> will be in your favor too. </p>
<p>Combine both brand, quality and first mover&#8217;s advantage (support, improvements etc.) and you will have almost all of the market.</p>
<p><strong>Isolate it, or license certain elements differently</strong><br />
Isolation is one idea that&#8217;s not very practical as discussed in plugins section. But licensing differently is one option for theme developers as discussed earlier. </p>
<h2>Good Luck and Keep In Touch!</h2>
<p>Licensing issues with WordPress are exaggerated. A business around WordPress still has immense potential given you do it right. So don&#8217;t let the naysayers put you off. Your thoughts? Ideas? I would love to hear them. Please leave a comment.</p>
<p>Don&#8217;t forget to subscribe to our <a href="http://feeds.feedburner.com/wpsplash">RSS Feed</a> and <a href="http://twitter.com/WPSplash">follow us on Twitter</a> to stay updated.</p>
<img src="http://feeds.feedburner.com/~r/wpsplash/~4/S-dCo7K_WDc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpsplash.com/licensing-explained-for-wordpress-theme-and-plugin-developers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://wpsplash.com/licensing-explained-for-wordpress-theme-and-plugin-developers/</feedburner:origLink></item>
		<item>
		<title>How To: Show Author Bio in a Tooltip</title>
		<link>http://feedproxy.google.com/~r/wpsplash/~3/vWXhrrQ9Q-w/</link>
		<comments>http://wpsplash.com/how-to-show-author-bio-in-a-tooltip/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 19:39:48 +0000</pubDate>
		<dc:creator>Haris</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[WordPress Tutorials]]></category>
		<category><![CDATA[tooltip]]></category>

		<guid isPermaLink="false">http://wpsplash.com/?p=369</guid>
		<description><![CDATA[Allow your readers to quickly view author bio in a tooltip.]]></description>
			<content:encoded><![CDATA[<p>Offer your readers quick access to author bio. Follow the tutorial to add a tooltip which will popup on mouseover of author name or link. We will be using <a href="http://www.digitalinferno.net/blog/jquery-plugin-tinytips-1-1/">TinyTips 1.1</a> for the tooltips.</p>
<p>1. Add the following code between posts loop. You can edit the <code>Posted by &lt;?php the_author_posts_link(); ?&gt;</code> part from the code to match with your layout.</p>
<pre class="brush: php;">
&lt;span class='authorBio' title='&lt;?php the_author_meta('description', $post-&gt;post_author); ?&gt;'&gt;Posted by &lt;?php the_author_posts_link(); ?&gt;&lt;/span&gt;
</pre>
<p>2. Download &#038; Extract <a href="http://www.digitalinferno.net/plugins/tinyTips/tiny.tips.1.1.min.zip">Tiny Tips 1.1</a> &#8211; <a href="http://wpsplash.com/wp-content/uploads/2010/04/tiny.tips_.1.1.min_.zip">Mirror</a></p>
<p>3. Copy &#038; Paste jquery.tinyTips.js to your theme folder.</p>
<p>4. Add the following code to the end of style.css located in your theme folder:</p>
<pre class="brush: css;">
.lightTip .content { width: 310px; padding: 10px; border: 6px solid #e2e2e2; -moz-border-radius: 5px; -webkit-border-radius: 5px; background: #ffffff; color: #020202; }
.lightTip .bottom { height: 14px; background: url('notch-white.png') top center no-repeat; }
</pre>
<p>5. Copy notch-white.png from demo\images folder from TinyTips package and paste it to your theme folder.</p>
<p>6. Edit header.php and add the following code <strong>BEFORE</strong> wp_head(); function:</p>
<pre class="brush: php;">
&lt;?php wp_enqueue_script('jquery'); ?&gt;
&lt;?php wp_enqueue_script('TinyTips', get_bloginfo('template_directory').'/jquery.tinyTips.js', 'jquery', '1.1'); ?&gt;
</pre>
<p>7. Add the following code <strong>directly before</strong> </head> tag:</p>
<pre class="brush: jscript;">
&lt;script type='text/javascript'&gt;
jQuery(document).ready(function() {
	jQuery('.authorBio').tinyTips('light', 'title');
});
&lt;/script&gt;
</pre>
<h3>Keep In Touch</h3>
<p>Leave your suggestions and comments below, and don&#8217;t forget to subscribe to our <a href="http://feeds.feedburner.com/wpsplash">RSS Feed</a> and <a href="http://twitter.com/WPSplash">follow us on Twitter</a> to stay updated.</p>
<img src="http://feeds.feedburner.com/~r/wpsplash/~4/vWXhrrQ9Q-w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpsplash.com/how-to-show-author-bio-in-a-tooltip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://wpsplash.com/how-to-show-author-bio-in-a-tooltip/</feedburner:origLink></item>
		<item>
		<title>How to Create a Kickass WordPress Authors Page</title>
		<link>http://feedproxy.google.com/~r/wpsplash/~3/jELQ74Xli_k/</link>
		<comments>http://wpsplash.com/how-to-create-a-wordpress-authors-page/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 09:43:09 +0000</pubDate>
		<dc:creator>Haris</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[WordPress Tutorials]]></category>
		<category><![CDATA[authors page]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[profiles]]></category>
		<category><![CDATA[social media]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://wpsplash.com/?p=314</guid>
		<description><![CDATA[Running a multiple author WordPress blog? Lets get your authors page setup real quick. I have written a flexible <a href="http://codex.wordpress.org/Stepping_Into_Templates">WordPress page template</a> that will support most themes.]]></description>
			<content:encoded><![CDATA[<p>If you run a blog with multiple authors, it&#8217;s a good idea to have a list of all authors on a page with a few lines about them and a link to their twitter profile. I found many large blogs not following that. Few of those who follow includes <a href="http://techcrunch.com/about-techcrunch/">Techcrunch</a>.</p>
<p>Running a multiple author WordPress blog? Lets get your authors page setup real quick. I have written a flexible <a href="http://codex.wordpress.org/Stepping_Into_Templates">WordPress page template</a> that will support most themes. To be sure, I tested it on WordPress default theme. If you follow WordPress default theme pattern, you will have no trouble setting this up.</p>
<p>The page template lists all authors ordered by author ID. The format of a listing is author name followed by author description and <a href="http://www.gravatar.com">gravatar</a> which is followed by a link to recent post and finally links to social media profiles. The page template supports twitter, facebook, linkedin, digg and flickr.</p>
<div id="attachment_331" class="wp-caption aligncenter" style="width: 502px"><img src="http://wpsplash.com/wp-content/uploads/2010/03/author-listing.png" alt="" title="Author Listing Example" width="492" height="318" class="size-full wp-image-331" /><p class="wp-caption-text">Example Listing with Sample Text and only Flickr Link</p></div>
<h3>Installation Instructions</h3>
<ol>
<li>Download and extract <a href="http://wpsplash.com/wp-content/uploads/2010/03/authors.zip">authors.zip</a></li>
<li>Copy and paste authors.php file to your theme directory</li>
<li>Copy and paste the following code on the top of your functions.php file in your theme directory (this will add social media profile fields on edit profile page)
<pre class="brush: php;">
&lt;?php
add_action('show_user_profile', 'wpsplash_extraProfileFields');
add_action('edit_user_profile', 'wpsplash_extraProfileFields');
add_action('personal_options_update', 'wpsplash_saveExtraProfileFields');
add_action('edit_user_profile_update', 'wpsplash_saveExtraProfileFields');

function wpsplash_saveExtraProfileFields($userID) {

	if (!current_user_can('edit_user', $userID)) {
		return false;
	}

	update_usermeta($userID, 'twitter', $_POST['twitter']);
	update_usermeta($userID, 'facebook', $_POST['facebook']);
	update_usermeta($userID, 'linkedin', $_POST['linkedin']);
	update_usermeta($userID, 'digg', $_POST['digg']);
	update_usermeta($userID, 'flickr', $_POST['flickr']);
}

function wpsplash_extraProfileFields($user)
{
?&gt;
	&lt;h3&gt;Connect Information&lt;/h3&gt;

	&lt;table class='form-table'&gt;
		&lt;tr&gt;
			&lt;th&gt;&lt;label for='twitter'&gt;Twitter&lt;/label&gt;&lt;/th&gt;
			&lt;td&gt;
				&lt;input type='text' name='twitter' id='twitter' value='&lt;?php echo esc_attr(get_the_author_meta('twitter', $user-&gt;ID)); ?&gt;' class='regular-text' /&gt;
				&lt;br /&gt;
				&lt;span class='description'&gt;Please enter your Twitter username. http://www.twitter.com/&lt;strong&gt;username&lt;/strong&gt;&lt;/span&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;th&gt;&lt;label for='facebook'&gt;Facebook&lt;/label&gt;&lt;/th&gt;
			&lt;td&gt;
				&lt;input type='text' name='facebook' id='facebook' value='&lt;?php echo esc_attr(get_the_author_meta('facebook', $user-&gt;ID)); ?&gt;' class='regular-text' /&gt;
				&lt;br /&gt;
				&lt;span class='description'&gt;Please enter your Facebook username/alias. http://www.facebook.com/&lt;strong&gt;username&lt;/strong&gt;&lt;/span&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;th&gt;&lt;label for='linkedin'&gt;LinkedIn&lt;/label&gt;&lt;/th&gt;
			&lt;td&gt;
				&lt;input type='text' name='linkedin' id='linkedin' value='&lt;?php echo esc_attr(get_the_author_meta('linkedin', $user-&gt;ID)); ?&gt;' class='regular-text' /&gt;
				&lt;br /&gt;
				&lt;span class='description'&gt;Please enter your LinkedIn username. http://www.linkedin.com/in/&lt;strong&gt;username&lt;/strong&gt;&lt;/span&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;th&gt;&lt;label for='digg'&gt;Digg&lt;/label&gt;&lt;/th&gt;
			&lt;td&gt;
				&lt;input type='text' name='digg' id='digg' value='&lt;?php echo esc_attr(get_the_author_meta('digg', $user-&gt;ID)); ?&gt;' class='regular-text' /&gt;
				&lt;br /&gt;
				&lt;span class='description'&gt;Please enter your Digg username. http://digg.com/users/&lt;strong&gt;username&lt;/strong&gt;&lt;/span&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;th&gt;&lt;label for='flickr'&gt;Flickr&lt;/label&gt;&lt;/th&gt;
			&lt;td&gt;
				&lt;input type='text' name='flickr' id='flickr' value='&lt;?php echo esc_attr(get_the_author_meta('flickr', $user-&gt;ID)); ?&gt;' class='regular-text' /&gt;
				&lt;br /&gt;
				&lt;span class='description'&gt;Please enter your flickr username. http://www.flickr.com/photos/&lt;strong&gt;username&lt;/strong&gt;/&lt;/span&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
&lt;?php } ?&gt;
</pre>
</li>
<li>Create a new page and select &#8220;Authors List&#8221; from the page template dropdown menu</li>
</ol>
<h3>Usage Instructions</h3>
<ul>
<li>User must create at least one post to list on the page</li>
<li>Display Name is used on author listings</li>
<li>No user description means no avatar</li>
<li>Links to your social media profiles can be entered on the edit profile page. See:
<p><a href="http://wpsplash.com/wp-content/uploads/2010/03/tmp.png"><img src="http://wpsplash.com/wp-content/uploads/2010/03/tmp-300x136.png" alt="" title="Edit Profile - Connect Information" width="300" height="136" class="aligncenter size-medium wp-image-335" /></a></p>
</li>
</ul>
<h3>How to customize</h3>
<ul>
<li>To display smaller or larger avatars, edit author.php and find:
<pre class="brush: php;">&lt;?php echo get_avatar(get_the_author_meta('user_email', $author-&gt;post_author), 80); ?&gt;</pre>
<p>Replace 80 which is width and height (80&#215;80) of avatar with your desired size.
</li>
<li>To add a different background color for a particular author, in your stylesheet use <em>#author-username</em> css selector to target a particular author.
<p>Lets say you want to change background color of  &#8220;admin&#8221; listing to black and text color to white, you can use <em>#author-admin { background-color: black; color: white; }</em> css in your stylesheet.</p>
</li>
</ul>
<p>Customization possibilities are endless. If you want help customizing your authors page, let me know in comments, I will respond with a solution.</p>
<h3>Keep In Touch</h3>
<p>Leave your suggestions and comments below, and don&#8217;t forget to subscribe to our <a href="http://feeds.feedburner.com/wpsplash">RSS Feed</a> and <a href="http://twitter.com/WPSplash">follow us on Twitter</a> to stay updated.</p>
<img src="http://feeds.feedburner.com/~r/wpsplash/~4/jELQ74Xli_k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpsplash.com/how-to-create-a-wordpress-authors-page/feed/</wfw:commentRss>
		<slash:comments>69</slash:comments>
		<feedburner:origLink>http://wpsplash.com/how-to-create-a-wordpress-authors-page/</feedburner:origLink></item>
		<item>
		<title>How to Add Pending Comments Link in Post Footer</title>
		<link>http://feedproxy.google.com/~r/wpsplash/~3/EZoCgKy7lvM/</link>
		<comments>http://wpsplash.com/how-to-add-pending-comments-link-in-post-footer/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 15:06:51 +0000</pubDate>
		<dc:creator>Haris</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[pending comments]]></category>
		<category><![CDATA[post footer]]></category>
		<category><![CDATA[theme functions hack]]></category>

		<guid isPermaLink="false">http://wpsplash.com/?p=274</guid>
		<description><![CDATA[Quick WordPress tip to add pending comments link with comment count in post footer.]]></description>
			<content:encoded><![CDATA[<p>If you manage an active blog where lots of comments are posted each day, you will find it easier to jump to pending comments page for a post from your homepage.</p>
<p>Add the following code in your theme functions file (functions.php) which will add a link to pending comments page with number of pending comments directly below the post content.</p>
<pre class="brush: php;">
add_filter('the_content', array($this, 'pendingCommentsQuickLink'));

function pendingCommentsQuickLink($content)
{
	if(current_user_can('moderate_comments')) {
		global $wpdb;

		/*
		 * Fetch Pending Comments from Database
		 */
		$pendingComments = $wpdb-&gt;get_var('SELECT COUNT(*) AS pendingComments FROM '.$wpdb-&gt;comments.' WHERE comment_post_ID = '.get_the_id().' AND comment_approved = 0 AND comment_approved != &quot;spam&quot;');

		$content .= '&lt;p&gt;';

		/*
		 * Parse Pending Comments
		 */
		if($pendingComments):
		$content .= ' &lt;a class=&quot;pendingCommentsLink&quot; href=&quot;'.get_bloginfo('wpurl').'/wp-admin/edit-comments.php?comment_status=moderated&amp;p='.get_the_id().'&quot;&gt;Pending Comments ('.$pendingComments.')&lt;/a&gt;';
		endif;

		$content .= '&lt;/p&gt;';
	}
	return $content;
}
</pre>
<h3>How does it look like?</h3>
<p><img src="http://wpsplash.com/wp-content/uploads/2010/03/sf4gkv.png" alt="How to Add Pending Comments Link in Post Footer" title="How to Add Pending Comments Link in Post Footer" width="477" height="176" class="aligncenter size-full wp-image-283" /></p>
<img src="http://feeds.feedburner.com/~r/wpsplash/~4/EZoCgKy7lvM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpsplash.com/how-to-add-pending-comments-link-in-post-footer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://wpsplash.com/how-to-add-pending-comments-link-in-post-footer/</feedburner:origLink></item>
		<item>
		<title>WordPress Timeago Plugin: Twitter Like Fuzzy Dates in WordPress</title>
		<link>http://feedproxy.google.com/~r/wpsplash/~3/qxAVSfLivJ4/</link>
		<comments>http://wpsplash.com/wordpress-timeago-fuzzy-dates-plugin/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 10:22:33 +0000</pubDate>
		<dc:creator>Asad Khan</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[fuzzy date]]></category>
		<category><![CDATA[fuzzy timestamps]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[timeago]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://wpsplash.com/?p=210</guid>
		<description><![CDATA[Twitter, Facebook, Gmail, and all the big guns are using the fuzzy date/time of type "3 minutes ago", "10 days ago" etc. Timeago plugin allows you to use the same format on your WordPress blogs.]]></description>
			<content:encoded><![CDATA[<p>With web 2.0, it has become common to have fuzzy date/time (e.g. &#8220;3 minutes ago&#8221;, &#8220;10 days ago&#8221;). Twitter, Facebook, Gmail, you name it &#8212; all the big guns are following the trend.</p>
<p>Bloggers using WordPress should also be following this trend, just like all other social media. WordPress, by default, doesn&#8217;t have fuzzy dates support. So, I have created a plugin that uses the popular <a href="http://timeago.yarp.com/">timeago</a> jQuery plugin to create automatically updating fuzzy date/time.</p>
<h3>Why?</h3>
<ul>
<li>The fuzzy date/time updates live while you are on the page, without requiring page reload.</li>
<li>It makes your site appear more lively and user friendly.</li>
<li>timeago uses <a href="http://microformats.org/wiki/datetime-design-pattern">microformats</a>.</li>
<li>Fuzzy date is applied to the comments automatically, even if the default wordpress comments loop is being used. No painful rewriting required.</li>
<li>Shows time relative to user&#8217;s timezone. Normally, the date/time displayed by wordpress is based on the timezone set in wordpress configurations.</li>
</ul>
<h3>Installation:</h3>
<ol>
<li><a href="http://wordpress.org/extend/plugins/timeago/">Download</a> and extract the zip archive.</li>
<li>Upload the plugin.</li>
<li>Activate the plugin from Admin CP.</li>
<li>Ensure it works (more below).</li>
</ol>
<h3>Make it work!</h3>
<p>By default, the plugin automatically converts your date and times into fuzzy equivalent. However, it&#8217;s not perfect and may not work or appear out of context on many themes.</p>
<p>In that case, you will have to edit your theme templates (index.php, single.php, etc.) and replace the default <em>the_time()</em> / <em>the_date()</em> template tags with <em>the_time_ago()</em> (provided by the plugin).</p>
<p><strong>Usage:</strong> (while in <a href="http://codex.wordpress.org/The_Loop">the loop</a> or comments loop)</p>
<pre class="brush: php;">&lt;?php the_time_ago(); ?&gt;</pre>
<p>When you need to define a <a href="http://codex.wordpress.org/Formatting_Date_and_Time">custom format</a> (displayed on mouse-over), use as following:</p>
<pre class="brush: php;">&lt;?php the_time_ago('d M, Y'); ?&gt;</pre>
<h3>Translation</h3>
<p>Edit the file <em>jquery.timeago.js</em> and locate the section where it says &#8220;Translate here&#8221;. You can either modify it manually or use one of the many translations available at <a href="http://gist.github.com/6251">timeago&#8217;s repository</a>.</p>
<h3>Keep In Touch</h3>
<p>Leave your suggestions and comments below, and don&#8217;t forget to subscribe to our <a href="http://feeds.feedburner.com/wpsplash">RSS Feed</a> and <a href="http://twitter.com/WPSplash">follow us on Twitter</a> to stay updated.</p>
<img src="http://feeds.feedburner.com/~r/wpsplash/~4/qxAVSfLivJ4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpsplash.com/wordpress-timeago-fuzzy-dates-plugin/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		<feedburner:origLink>http://wpsplash.com/wordpress-timeago-fuzzy-dates-plugin/</feedburner:origLink></item>
		<item>
		<title>How to Create Super Fast Retweet, Delicious and Facebook Share Widgets</title>
		<link>http://feedproxy.google.com/~r/wpsplash/~3/1TUxv3zJ5wE/</link>
		<comments>http://wpsplash.com/retweet-facebook-delicious-widget-count/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 12:12:23 +0000</pubDate>
		<dc:creator>Haris</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[count]]></category>
		<category><![CDATA[delicious]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[plain text]]></category>
		<category><![CDATA[retweet]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://wpsplash.com/?p=146</guid>
		<description><![CDATA[Today, I'll show you how to create custom <strong>retweet</strong>, <strong>delicious save</strong> and <strong>facebook share</strong> widgets (with share / save count in plain text) using PHP, so your pages load with lightening fast speed.]]></description>
			<content:encoded><![CDATA[<p><img src="http://wpsplash.com/wp-content/uploads/2010/03/retweet-facebook-delicious-custom-widgets.jpg" alt="How to Create Ultra Light Retweet, Delicious and Facebook Share Widgets" title="How to Create Ultra Light Retweet, Delicious and Facebook Share Widgets" class="alignnone size-full wp-image-189" /></p>
<p><div class='retweet'><a href='http://topsy.com/wpsplash.com/retweet-facebook-delicious-widget-count/?utm_source=otter' class='count'><span class='number'>131</span></a><a href='http://button.topsy.com/retweet?nick=wpsplash&title=&url=http%3A%2F%2Fwpsplash.com%2Fretweet-facebook-delicious-widget-count%2F' class='button'>retweet</a></div></p>
<p>Javascript based widgets can slow down your pages to a crawl. Not only they affect the overall page loading time, but sometimes also delay the loading of the real content, which is a major turnoff for your site&#8217;s visitors.</p>
<p>There are very good reasons why Javascript widgets are a cause of page slow-down.</p>
<ol>
<li>Unoptimized code. Heavy usage of document.write function. Loading too many external scripts (javascript/css/images).</li>
<li>Slow server of widget host. The widget keeps loading and in the process blocks the more important content.</li>
</ol>
<p>Today, I&#8217;ll show you how to create custom <strong>retweet</strong>, <strong>delicious save</strong> and <strong>facebook share</strong> widgets (with share / save count in plain text) using PHP, so your pages load with lightening fast speed.</p>
<p>Apart from the speed benefit, the HTML markup generated by my code is simple and can be styled with CSS the way you want it!.</p>
<h3>Retweet widget (with <a href="http://topsy.com/">topsy API</a>)</h3>
<p>This widget will use topsy <a href="http://otter.topsy.com/">otter API</a> to generate a retweet widget. Example on the top right of this post (custom style).</p>
<p><strong>WordPress Code:</strong></p>
<pre class="brush: php;">
&lt;?php
$shareUrl = urlencode(get_permalink($post-&gt;ID));
$shareTitle = urlencode($post-&gt;post_title);
$retweetNick = 'wpsplash';
$retweetInfo = json_decode(file_get_contents('http://otter.topsy.com/stats.json?url='.$shareUrl));
?&gt;
&lt;div class='retweet'&gt;
	&lt;a href='&lt;?php echo $retweetInfo-&gt;response-&gt;topsy_trackback_url; ?&gt;' class='count'&gt;
		&lt;span class='number'&gt;&lt;?php echo $retweetInfo-&gt;response-&gt;all; ?&gt;&lt;/span&gt;
		&lt;span class='unit'&gt;tweets&lt;/span&gt;
	&lt;/a&gt;
	&lt;a href='http://button.topsy.com/retweet?nick=&lt;?php echo $retweetNick; ?&gt;&amp;title=&lt;?php echo $shareTitle; ?&gt;&amp;url=&lt;?php echo $shareUrl; ?&gt;' class='button'&gt;Retweet&lt;/a&gt;
&lt;/div&gt;
</pre>
<ol>
<li>shareURL: url of the page</li>
<li>shareTitle: title of the page which will be used as retweet text</li>
<li>retweetNick: twitter username that will appear in retweet message of the text</li>
</ol>
<p>PHP5 requirement since it uses <a href="http://php.net/manual/en/function.json-decode.php">json_decode</a> function.</p>
<h3>Delicious Save Widget</h3>
<p>This will generate a delicious widget as seen on the bottom of this post. You can however style it as per your choice with CSS.</p>
<p><strong>WordPress Code:</strong></p>
<pre class="brush: php;">
&lt;?php
$shareUrl = urlencode(get_permalink($post-&gt;ID));
$shareTitle = urlencode($post-&gt;post_title);
$deliciousStats = json_decode(file_get_contents('http://feeds.delicious.com/v2/json/urlinfo/data?url='.$shareUrl));
?&gt;

&lt;a onclick='window.open(&quot;http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=&lt;?php echo $shareUrl; ?&gt;&amp;title=&lt;?php echo $shareTitle; ?&gt;&quot;, &quot;facebook&quot;, &quot;toolbar=no, width=550, height=550&quot;); return false;' href='http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=&lt;?php echo $shareUrl; ?&gt;&amp;title=&lt;?php echo $shareTitle; ?&gt;' class='delicious'&gt;
&lt;?php
if($deliciousStats[0]-&gt;total_posts == 0) {
	echo 'Save';
} elseif($deliciousStats[0]-&gt;total_posts == 1) {
	echo 'One save';
} else {
	echo $deliciousStats[0]-&gt;total_posts.' saves';
}
?&gt;
&lt;/a&gt;
</pre>
<ol>
<li>shareURL: url of the page</li>
<li>shareTitle: title of the page</li>
</ol>
<p>PHP5 requirement since it uses <a href="http://php.net/manual/en/function.json-decode.php">json_decode</a> function.</p>
<h3>Facebook Share Widget</h3>
<p>This will generate facebook share widget as seen on the bottom right of this post.  Like delicious widget, you can style it with CSS.</p>
<p><strong>WordPress Code:</strong></p>
<pre class="brush: php;">
&lt;?php
$shareUrl = urlencode(get_permalink($post-&gt;ID));
$shareTitle = urlencode($post-&gt;post_title);
$fbLinkStats = simplexml_load_file('http://api.facebook.com/restserver.php?method=links.getStats&amp;urls='.$shareUrl);
?&gt;

&lt;a onclick='window.open(&quot;http://www.facebook.com/sharer.php?u=&lt;?php echo $shareUrl; ?&gt;&amp;amp;t=&lt;?php echo $shareTitle; ?&gt;&quot;, &quot;facebook&quot;, &quot;toolbar=no, width=550, height=550&quot;); return false;' href='http://www.facebook.com/sharer.php?u=&lt;?php echo $shareUrl; ?&gt;&amp;amp;t=&lt;?php echo $shareTitle; ?&gt;'  class='facebookShare'&gt;

&lt;?php
if($fbLinkStats-&gt;link_stat-&gt;total_count == 0) {
	echo 'Share';
} elseif($fbLinkStats-&gt;link_stat-&gt;total_count == 1) {
	echo 'One share';
} else {
	echo $fbLinkStats-&gt;link_stat-&gt;total_count.' shares';
}
?&gt;
&lt;/a&gt;
</pre>
<ol>
<li>shareURL: url of the page</li>
<li>shareTitle: title of the page</li>
</ol>
<p>PHP5 requirement since it uses <a href="http://php.net/manual/en/book.simplexml.php">simplexml</a> library.</p>
<p>This is it! You got customizable Retweet, Delicious, and Facebook share widgets with share count and all, that do not slow down your page.</p>
<h3>What icon pack are you using on WPSplash?</h3>
<p>We are using <a href="http://www.komodomedia.com/blog/2009/06/social-network-icon-pack/">Social Media Network Icons Pack</a> by <a href="http://www.komodomedia.com/">Komodo Media</a>. They are beautiful!</p>
<h3>How do I optimize X widget?</h3>
<p>Use the API offered by the widget&#8217;s site with your favourite server-side language, PHP in case you&#8217;re using WordPress. Also, post your requests in comments. We&#8217;ll make updates to this post and send status updates via twitter. <a href="http://twitter.com/WPSplash">Follow WPSplash on Twitter</a>, and <a href="http://feeds.feedburner.com/wpsplash" />subscribe to RSS feed</a>.</p>
<img src="http://feeds.feedburner.com/~r/wpsplash/~4/1TUxv3zJ5wE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpsplash.com/retweet-facebook-delicious-widget-count/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		<feedburner:origLink>http://wpsplash.com/retweet-facebook-delicious-widget-count/</feedburner:origLink></item>
		<item>
		<title>MySQL Profiler Plugin for WordPress</title>
		<link>http://feedproxy.google.com/~r/wpsplash/~3/FwH4uvt505U/</link>
		<comments>http://wpsplash.com/mysql-profiler-plugin-for-wordpress/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 19:43:30 +0000</pubDate>
		<dc:creator>Asad Khan</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[profiler]]></category>
		<category><![CDATA[speed]]></category>

		<guid isPermaLink="false">http://wpsplash.com/?p=100</guid>
		<description><![CDATA[WordPress is extremely flexible. However, flexibility generally brings about the issue of performance. WP MySQL Profiler is a simple plugin that assists in improving performance of themes and plugins. ]]></description>
			<content:encoded><![CDATA[<p>WordPress is extremely flexible. This flexibility has not only made it a major hit, but it has also allowed non-developers to customize it with ease. Which brings about the issue of performance. While most of the Wordpress functions are optimized for acceptable performance, incorrect usage can cause undesirable speed loss.</p>
<h3>Code Profiling</h3>
<p>Quoting from <a href="http://(http://en.wikipedia.org/wiki/Profiling_%28computer_programming%29">Wikipedia</a>:</p>
<blockquote><p>A (code) profiler is a performance analysis tool that, most commonly, measures only the frequency and duration of function calls, but there are other specific types of profilers (e.g. memory profilers) in addition to more comprehensive profilers, capable of gathering extensive performance data.</p></blockquote>
<p>You may fail to notice any performance issues unless you use code profiling to assist you. For general PHP Profiling, programmers often use <a href="http://xdebug.org/">xdebug</a> with all sort of PHP applications <a href="http://codex.wordpress.org/Testing_WordPress_Performance#Configuring_Xdebug_for_Profiling">including wordpress</a>. But, if you&#8217;re a wordpress theme developer, usually all you need is a MySQL profiler.</p>
<h3>WP MySQL Profiler</h3>
<p>I have created this simple plugin to assist both theme and plugin developers in MySQL Profiling. Once installed, MySQL statistics will be available at page footer.</p>
<p><strong>Installation</strong></p>
<ol>
<li><a href="http://downloads.wordpress.org/plugin/wp-mysql-profiler.zip">Download WP MySQL Profiler</a> and extract the archive.</li>
<li>Rename your wp-db.php file in wp-includes directory to wp-db-backup.php.</li>
<li>Upload wp-db.php included in the archive to your wp-includes directory.</li>
<li>Upload wpSqlProfiler.php to wp-content/plugins/ directory.</li>
<li>Edit your wp-config.php. Find define (&#8216;WPLANG&#8217;, &#8221;); and add below:
<pre class="brush: php;">define('SAVEQUERIES', true);</pre>
</li>
<li>Enable &#8220;WP MySQL Profiler&#8221; plugin from the admin CP.</li>
</ol>
<p><strong>Usage</strong></p>
<p>When logged in as an admin, you will see MySQL query details at page footer. Keep an eye on both total queries and time. Each time you add code to your templates, use the profiling information to check if an optimized function, or code snippet has been used.</p>
<p>If you notice high total queries or time, examine the queries and check the backtrace (more below) to find where the query originated from. Then remove or replace the unoptimized function/code.</p>
<p><strong>The Backtrace</strong></p>
<div style="text-align: center;">
<img src="http://wpsplash.com/wp-content/uploads/2010/03/screenshot_031.png" alt="" title="WP MySQL Profiler Backtrace" width="383" height="170" class="alignnone size-full wp-image-118" />
</div>
<p>Third column in the profiler gives you the most useful information. In the example above, it shows the functions that were involved in generating the MySQL query. It started at <em>themes/default/single.php</em> on line 7 with the function <em>get_header()</em> which called function <em>wp_head()</em>, <em>kubrick_header_display()</em> and finally <em>get_option()</em> in the file <em>functions.php</em> on line 83.</p>
<p>Note that there&#8217;s a link &#8220;Show Full Trace&#8221;. For simplicity, the profiler doesn&#8217;t show all the function calls by default. Instead, it tries to determine function calls from plugins and themes. Since you are going to use it when coding plugins and themes, it makes sense to assume that you&#8217;re concerned with function calls originating therein.</p>
<p><strong>Final Steps</strong></p>
<p>If you&#8217;re going to use the same wordpress copy on a live site, make sure to:</p>
<ul>
<li>delete the wp-db.php and rename wp-db-backup.php to wp-db.php. (optional)</li>
<li> remove define(&#8216;SAVEQUERIES&#8217;, true); from wp-config.php.</li>
</ul>
<p>Similarly, disable the WP MySQL Profiler plugin.</p>
<h3>Ideas And Suggestions?</h3>
<p>Lack of tools or lack of information; neither of them are valid excuses anymore. Go ahead and make sure every theme and plugin of yours performs efficiently. Do you use any similar tools to assist you in profiling? Got any suggestions? I would love to hear about them. Leave a comment!</p>
<img src="http://feeds.feedburner.com/~r/wpsplash/~4/FwH4uvt505U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpsplash.com/mysql-profiler-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		<feedburner:origLink>http://wpsplash.com/mysql-profiler-plugin-for-wordpress/</feedburner:origLink></item>
		<item>
		<title>How to Integrate Google Buzz to your WordPress Theme</title>
		<link>http://feedproxy.google.com/~r/wpsplash/~3/-m8t1EGX8zU/</link>
		<comments>http://wpsplash.com/how-to-integrate-google-buzz-to-your-wordpress-theme/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 16:30:52 +0000</pubDate>
		<dc:creator>Haris</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[google buzz]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://wpsplash.com/?p=70</guid>
		<description><![CDATA[<a href="http://www.google.com/buzz" target="_blank">Google Buzz</a> is a new social media service introduced by Google to share real-time updates. It is integrated directly with your gmail account. Just like Twitter, it can be integrated in your blog to let your readers share your blog posts with their followers.]]></description>
			<content:encoded><![CDATA[<p><img src="http://wpsplash.com/wp-content/uploads/2010/03/wordpress-logo-notext-bg1.png" alt="" title="How to Integrate Google Buzz to your WordPress Theme" class="imgleft size-full wp-image-83" /><a href="http://www.google.com/buzz" target="_blank">Google Buzz</a> is a new social media service introduced by Google to share real-time updates. It is integrated directly with your gmail account. Just like Twitter, it can be integrated in your blog to let your readers share your blog posts with their followers.</p>
<p>You can add the following code between your <a href="http://codex.wordpress.org/The_Loop">WordPress Posts Loop</a> which will generate a &#8220;Share to Google Buzz&#8221; link.</p>
<pre class="brush: php;">&lt;a href='http://www.google.com/reader/link?url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;&amp;snippet=&lt;?php the_title(); ?&gt;&amp;srcURL=&lt;?php bloginfo('wpurl'); ?&gt;&amp;srcTitle=&lt;?php bloginfo('name'); ?&gt;'&gt;Share to Google Buzz&lt;/a&gt;
</pre>
<p>The link contains 4 parameters:</p>
<p><strong>url:</strong> link to blog post<br />
<strong>title:</strong> blog post title<br />
<strong>srcURL:</strong> source url like your blog url<br />
<strong>srcTitle:</strong> your blog name or title</p>
<p>This is the simplest and plugin free way to add Google Buzz to your blog posts. If you want, you can add a <a href="http://www.espreson.com/2010/02/24/update-5-flavors-of-google-buzz-icon-released/">Google Buzz icon</a> instead of text link in the above code.</p>
<img src="http://feeds.feedburner.com/~r/wpsplash/~4/-m8t1EGX8zU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpsplash.com/how-to-integrate-google-buzz-to-your-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://wpsplash.com/how-to-integrate-google-buzz-to-your-wordpress-theme/</feedburner:origLink></item>
		<item>
		<title>WP Splash Goes Live</title>
		<link>http://feedproxy.google.com/~r/wpsplash/~3/o0cHDL9Vzjs/</link>
		<comments>http://wpsplash.com/wp-splash-goes-live/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 16:08:53 +0000</pubDate>
		<dc:creator>Mohsin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://wpsplash.com/?p=75</guid>
		<description><![CDATA[Just a week ago me and my WordPress geek friends casually discussed the idea of creating a WordPress blog. And now a week later, WP Splash is live! And we're more serious about it than ever.]]></description>
			<content:encoded><![CDATA[<p>Just a week ago me and my WordPress geek friends casually discussed the idea of creating a WordPress blog where we shared all the nifty techniques we use in developing WordPress sites every day.</p>
<p>And now a week later, WP Splash is live! And we&#8217;re more serious about it than ever.</p>
<p>At WP Splash we&#8217;ll only give you quality WordPress tips, tricks, and hacks. No junk, I promise.</p>
<p>Apart from a blog, WP Splash also includes a<a href="http://wpsplash.com/gallery/" title="WordPress design gallery"> gallery of WordPress based designs</a> for your inspiration. Got a great looking WordPress site? Head over to <a href="http://wpsplash.com/gallery/" title="WordPress design gallery">WordPress design gallery</a> and submit it.</p>
<h3>Who are we anyway?</h3>
<p>We&#8217;re a bunch of underground WordPress developers. We&#8217;ve helped build many great WordPress sites and products over the years.</p>
<p>Until now, we were not very loud about our passion about all things WordPress. But things gotta change.</p>
<p>So me (<a href="http://twitter.com/mohsinn">Mohsin</a>) <a href="http://twitter.com/mharis">Haris</a>, and Asad (He doesn&#8217;t use Twitter, can you believe it?) are going to be your hosts here for a very long time. Subscribe to <a href="http://feeds.feedburner.com/wpsplash">WP Splash RSS feed</a> and <a href="http://twitter.com/WPSplash">follow WP Splash on Twitter</a> now because cool stuff is going to start rolling in very soon.</p>
<img src="http://feeds.feedburner.com/~r/wpsplash/~4/o0cHDL9Vzjs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpsplash.com/wp-splash-goes-live/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://wpsplash.com/wp-splash-goes-live/</feedburner:origLink></item>
	</channel>
</rss>

