<?xml version="1.0" encoding="UTF-8"?>
<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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" version="2.0">

<channel>
	<title>i.Farang</title>
	<atom:link href="http://www.flowdrops.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flowdrops.com</link>
	<description>Just Another Life In Thailand</description>
	<pubDate>Mon, 17 Nov 2008 07:45:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7-beta3-9791</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license><image><link>http://creativecommons.org/licenses/by-nc-nd/3.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><item>
		<title>WP-Theme: Flowdrops Grey</title>
		<link>http://www.flowdrops.com/2008/10/18/wp-theme-flowdrops-grey/</link>
		<comments>http://www.flowdrops.com/2008/10/18/wp-theme-flowdrops-grey/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 14:03:00 +0000</pubDate>
		<dc:creator>Toxane</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[jQuery]]></category>

		<category><![CDATA[Theme]]></category>

		<guid isPermaLink="false">http://www.flowdrops.com/?p=189</guid>
		<description><![CDATA[WordPress Theme with integrated services like Twitter, Flickr and featured posts. Requires some knowledge of editing JS/PHP/theme files.]]></description>
			<content:encoded><![CDATA[<p>New WordPress theme available. Please visit the <a title="WordPress Theme: Flowdrops Grey " href="http://www.flowdrops.com/projects/wordpress/wordpress-theme-flowdrops-grey/" target="_self">theme page</a> for more information &amp; download.</p>
<p>This post should be redirected to the theme page at <a href="http://www.flowdrops.com/projects/wordpress/wordpress-theme-flowdrops-grey/">http://www.flowdrops.com/projects/wordpress/wordpress-theme-flowdrops-grey/</a> anyway&#8230;</p>

<p><a href="http://feeds.feedburner.com/~a/i-Farang?a=8i7uWT"><img src="http://feeds.feedburner.com/~a/i-Farang?i=8i7uWT" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.flowdrops.com/2008/10/18/wp-theme-flowdrops-grey/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Automattic Acquired IntenseDebate’s Enhanced Comment System</title>
		<link>http://www.flowdrops.com/2008/09/24/automattic-acquired-intensedebate%e2%80%99s-enhanced-comment-system/</link>
		<comments>http://www.flowdrops.com/2008/09/24/automattic-acquired-intensedebate%e2%80%99s-enhanced-comment-system/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 00:24:53 +0000</pubDate>
		<dc:creator>Toxane</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[Automattic]]></category>

		<category><![CDATA[IntenseDebate]]></category>

		<guid isPermaLink="false">http://www.flowdrops.com/?p=186</guid>
		<description><![CDATA[According to this news, as well as this one and this blog post at IntenseDebate, Automattic has aquired the enhanced comment system of IntenseDebate. The coming WordPress 2.7 will include some of IntenseDebate’s features by default, including threaded commenting.
IntenseDebate originally launched to the public last October, sporting features including OpenID support, user profiles, and the [...]]]></description>
			<content:encoded><![CDATA[<p>According to <a href="http://www.techcrunch.com/2008/09/23/automattic-has-acquired-intensedebates-enhanced-comment-system/" target="_blank">this news</a>, as well as <a href="http://weblogtoolscollection.com/archives/2008/09/23/automattic-has-acquired-intensedebate/" target="_blank">this one</a> and this blog post at <a href="http://www.intensedebate.com/blog/2008/09/23/automattic-acquires-intensedebate/" target="_blank">IntenseDebate</a>, Automattic has aquired the enhanced comment system of IntenseDebate. The coming WordPress 2.7 will include some of IntenseDebate’s features by default, including threaded commenting.</p>
<p>IntenseDebate originally launched to the public last October, sporting features including OpenID support, user profiles, and the ability to track a user’s comments across multiple blogs.</p>
<p>This will probably be the end of my plugin, <a href="/projects/wordpress/wordpress-plugin-if-ajax-comments/" target="_blank">iF AJAX Comment for WordPress</a>. I already had a feeling that this could happen, <a href="/projects/wordpress/wordpress-plugin-if-ajax-comments/#comment-461" target="_blank">I commented about it</a>. When WordPress 2.7 is out, we&#8217;ll see what&#8217;s still missing.</p>
<p>More about the aquisition:</p>
<ul>
<li><a href="http://ma.tt/2008/09/intense-debate-goes-automattic/" target="_blank">http://ma.tt/2008/09/intense-debate-goes-automattic/</a></li>
<li><a href="http://toni.org/2008/09/23/automattic-acquires-intensedebate/" target="_blank">http://toni.org/2008/09/23/automattic-acquires-intensedebate/</a></li>
</ul>

<p><a href="http://feeds.feedburner.com/~a/i-Farang?a=QmySwx"><img src="http://feeds.feedburner.com/~a/i-Farang?i=QmySwx" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.flowdrops.com/2008/09/24/automattic-acquired-intensedebate%e2%80%99s-enhanced-comment-system/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Guest Posts And the_author() In Your WordPress Blog</title>
		<link>http://www.flowdrops.com/2008/08/18/guest-posts-and-the_author-in-your-wordpress-blog/</link>
		<comments>http://www.flowdrops.com/2008/08/18/guest-posts-and-the_author-in-your-wordpress-blog/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 13:24:12 +0000</pubDate>
		<dc:creator>Toxane</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[Theme]]></category>

		<guid isPermaLink="false">http://www.flowdrops.com/2008/08/18/guest-posts-and-the_author-in-your-wordpress-blog/</guid>
		<description><![CDATA[As you may have seen I have a guest post on this blog written by Matt from phuketvogue.com. Since I am the only registered writer/author on this site, all posts are marked as &#8216;written by Toxane&#8217; or something similar. I thought it would be just fair for the guest writer, to mark these posts with [...]]]></description>
			<content:encoded><![CDATA[<p>As you may have seen I have a guest post on this blog written by <a href="http://whatismatt.com/" target="_blank">Matt</a> from <a href="http://phuketvogue.com/" target="_blank">phuketvogue.com</a>. Since I am the only registered writer/author on this site, all posts are marked as &#8216;written by Toxane&#8217; or something similar. I thought it would be just fair for the guest writer, to mark these posts with the corresponding author name and a link back to the author&#8217;s site.</p>
<p>What I didn&#8217;t want was to have the guest authors as registered WordPress users on my blog, just to keep things simple (and save). I came up with the following solution:</p>
<p>In my theme folder I have my &#8216;functions.php&#8217; file and I added the following code to it:</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
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Guest Posts</span>
<span style="color: #000000; font-weight: bold;">function</span> theAuthor<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$guestName</span> <span style="color: #339933;">=</span> get_post_custom_values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;guestName&quot;</span><span style="color: #009900;">&#41;</span>;
	<span style="color: #000088;">$guestLink</span> <span style="color: #339933;">=</span> get_post_custom_values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;guestLink&quot;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$guestName</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$guestLink</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #990000;">echo</span> <span style="">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$guestLink</span><span style="color: #009900;">&#91;</span><span style="color:#800080;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="">'&quot; target=&quot;_blank&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$guestName</span><span style="color: #009900;">&#91;</span><span style="color:#800080;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="">'&lt;/a&gt;'</span>;
		<span style="color: #009900;">&#125;</span>
		<span style="color: #b1b100;">else</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #990000;">echo</span> <span style="color: #000088;">$guestName</span><span style="color: #009900;">&#91;</span><span style="color:#800080;">0</span><span style="color: #009900;">&#93;</span>;
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">else</span>
	<span style="color: #009900;">&#123;</span>
		the_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>The code checks if the post has a custom field &#8216;guestName&#8217;. If the field is found, the code further checks if there&#8217;s a custom field &#8216;guestLink&#8217;. If that field is found as well, the code returns the name of the guest author as a hyperlink back to the guest authors website. If there&#8217;s no &#8216;guestLink&#8217;, only the guest author&#8217;s name is returned. If both custom fields are missing, the code returns &#8216;the_author()&#8217; which is the registered WordPress user.</p>
<p>Next I replaced all occurences of &#8216;the_author()&#8217; in the theme files with &#8216;theAuthor()&#8217;</p>
<p>To mark any post in your WordPress Blog as a guest post, you just add a custom field &#8216;guestName&#8217; and the name of the guest author as value. If you want the guest author&#8217;s name appears as a hyperlink, just add a custom field &#8216;guestLink&#8217; and the web address of the guest author as value.</p>
<p>That&#8217;s it. Simple and fair for your guest author(s).</p>

<p><a href="http://feeds.feedburner.com/~a/i-Farang?a=UlpDJK"><img src="http://feeds.feedburner.com/~a/i-Farang?i=UlpDJK" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.flowdrops.com/2008/08/18/guest-posts-and-the_author-in-your-wordpress-blog/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WordPress, My Gravatar and the Mystery Man</title>
		<link>http://www.flowdrops.com/2008/08/09/wordpress-my-gravatar-and-the-mystery-man/</link>
		<comments>http://www.flowdrops.com/2008/08/09/wordpress-my-gravatar-and-the-mystery-man/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 05:04:34 +0000</pubDate>
		<dc:creator>Toxane</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[Gravatars]]></category>

		<category><![CDATA[Mystery Man]]></category>

		<guid isPermaLink="false">http://www.flowdrops.com/?p=170</guid>
		<description><![CDATA[I just had a problem with my own gravatar not showing up on my own site for the comments I wrote. First I thought that clearing the browser cache would solve everything. I was wrong. After clearing the cache, deleting cookies and checking my gravatar (http://en.gravatar.com/site/check/), I was really out of (quick) ideas. Then it [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_174" class="wp-caption alignright" style="width: 106px"><img class="size-full wp-image-174" title="Mystery Man" src="http://www.flowdrops.com/wp-content/uploads/2008/08/mystery-man.jpeg" alt="Mystery Man - the default Gravatar" width="96" height="96" /><p class="wp-caption-text">Mystery Man - the default Gravatar</p></div>
<p>I just had a problem with my own <a href="http://www.gravatar.com/" target="_blank">gravatar</a> not showing up on my own site for the comments I wrote. First I thought that clearing the browser cache would solve everything. I was wrong. After clearing the cache, deleting cookies and checking my gravatar (<a href="http://en.gravatar.com/site/check/" target="_blank">http://en.gravatar.com/site/check/</a>), I was really out of (quick) ideas. Then it suddenly hit me: a few days ago I changed a few things in my Blog&#8217;s user accounts. I added new accounts with different user rights and merged the old accounts with the new ones.</p>
<p>After having a look at WordPress&#8217;s gravatar code (wp-includes/pluggable.php), everything was clear: WordPress actually pulls the user id and gets the email address which is stored in the user account data for this id. This ensures that if a user changes the email address in the user account, it will always pull the new gravatar associated with the new email address. The user id - for registered users - is stored in the comments table for each and every comment.</p>
<p>That said, if you change user accounts and a user id changes, you need to run</p>
<pre>UPDATE wp_comments SET user_id = new_user_id WHERE user_id = old_user_id</pre>
<p>otherwise you&#8217;re going to have a lot comments from the mystery man&#8230;</p>

<p><a href="http://feeds.feedburner.com/~a/i-Farang?a=X9WemH"><img src="http://feeds.feedburner.com/~a/i-Farang?i=X9WemH" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.flowdrops.com/2008/08/09/wordpress-my-gravatar-and-the-mystery-man/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PayPal donation form with CSS and jQuery for WordPress</title>
		<link>http://www.flowdrops.com/2008/08/03/paypal-donation-form-with-css-and-jquery-for-wordpress/</link>
		<comments>http://www.flowdrops.com/2008/08/03/paypal-donation-form-with-css-and-jquery-for-wordpress/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 05:00:26 +0000</pubDate>
		<dc:creator>Toxane</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Donation]]></category>

		<category><![CDATA[jQuery]]></category>

		<category><![CDATA[PayPal]]></category>

		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.flowdrops.com/?p=157</guid>
		<description><![CDATA[Learn how to create a PayPal donation form, beautify it with a little bit CSS and validate the input with jQuery. You can also integrate the form into WordPress as a page template. ]]></description>
			<content:encoded><![CDATA[<p>Yesterday I got an email from Jamie asking me how I made my <a href="http://www.flowdrops.com/donate/" target="_blank">PayPal donation</a> form. Here&#8217;s how I did it.</p>
<p>First, we need a PayPal form with the donation stuff inside:</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 class="html4strict html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">form</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;form_paypal&quot;</span> <span style="color: #000066;">action</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;https://www.paypal.com/cgi-bin/webscr&quot;</span> <span style="color: #000066;">method</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;post&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cmd&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;_donations&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;business&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;paypal@email.com&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;item_name&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;My Donations Subject&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;no_shipping&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;no_note&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;1&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;currency_code&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;USD&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tax&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;bn&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;PP-DonationsBF&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span>&gt;</span>Amount (US$) : <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;amount&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;input_amount&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;10&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Donate&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">form</span>&gt;</span></pre></td></tr></table></div>

<p>More information about the PayPal donation buttons and the form code behind can be found here: <a title="https://www.paypal.com/cgi-bin/webscr?cmd=_pdn_donate_techview_outside" href="https://www.paypal.com/cgi-bin/webscr?cmd=_pdn_donate_techview_outside">https://www.paypal.com/cgi-bin/webscr?cmd=_pdn_donate_techview_outside</a></p>
<p>Next, we need to add some more code to the form where we want to show the various messages displayed by jQuery. These messages are set to be hidden (display:none;):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="html4strict html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Donate&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><span style="color: #ddbb00;">&amp;nbsp;&amp;nbsp;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;msg_moreamount&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;icon_warning red&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;display:none;&quot;</span>&gt;</span>PayPal takes $0.35 commission for a $1 donation. Please enter at least $1.35 , thank you!<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;msg_noamount&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;icon_warning red&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;display:none;&quot;</span>&gt;</span>Please enter the amount you wish to donate and try again.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;msg_activity&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;display:none;&quot;</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/loader.gif&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;absmiddle&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><span style="color: #ddbb00;">&amp;nbsp;</span>Transferring to PayPal, please wait...<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span></pre></td></tr></table></div>

<p>The jQuery script which actually checks and validates the form looks like this:</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
32
33
34
35
36
37
38
39
40
41
42
</pre></td><td class="code"><pre class="javascript javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #006600; font-style: italic;">// the minimum required value to be entered.</span>
	<span style="color: #006600; font-style: italic;">// in this case PayPal takes $0.35 from a $1</span>
	<span style="color: #006600; font-style: italic;">// donation, hence we ask for at least $1.35</span>
	<span style="color: #003366; font-weight: bold;">var</span> minimum_value <span style="color: #339933;">=</span> <span style="color: #CC0000;">1.35</span>;
&nbsp;
	<span style="color: #006600; font-style: italic;">// attach this script to the form's submit action</span>
	jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#form_paypal'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">submit</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">// check if there is an amount entered</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#input_amount'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #006600; font-style: italic;">// is the amount equal to or higher than the minimum_value?</span>
			<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#input_amount'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;</span> minimum_value<span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #006600; font-style: italic;">// need more amount</span>
				<span style="color: #006600; font-style: italic;">// hide messages, show more amount error</span>
				jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#msg_noamount'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
				jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#msg_moreamount'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
				<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span>; <span style="color: #006600; font-style: italic;">// prevent the form from submitting</span>
			<span style="color: #009900;">&#125;</span>
			<span style="color: #000066; font-weight: bold;">else</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #006600; font-style: italic;">// amount is more than minimum_value</span>
				<span style="color: #006600; font-style: italic;">// hide messages, show activity</span>
				jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#msg_moreamount'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
				jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#msg_noamount'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
				jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#msg_activity'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
				<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">true</span>; <span style="color: #006600; font-style: italic;">// submit the form</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000066; font-weight: bold;">else</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #006600; font-style: italic;">// no amount entered at all</span>
			<span style="color: #006600; font-style: italic;">// hide messages, show no amount error</span>
			jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#msg_moreamount'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
			jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#msg_noamount'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
			<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span>; <span style="color: #006600; font-style: italic;">// prevent the form from submitting</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</pre></td></tr></table></div>

<p>The code is documented so it should be clear what each block does.</p>
<p>The final step is to add some CSS styling:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css css" style="font-family:monospace;"><span style="color: #6666ff;">.red</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ff0000</span>;<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.icon_warning</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:<span style="color: #993333;">transparent</span> </span>url<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../images/exclamation.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">no-repeat</span>;padding<span style="color: #00AA00;">:</span><span style="color: #933;">4px</span>;padding-<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span>;<span style="color: #00AA00;">&#125;</span>
form<span style="color: #cc00cc;">#form_paypal</span> input <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span>;border<span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ddd</span>;background<span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fefefe</span>;<span style="color: #00AA00;">&#125;</span>
form<span style="color: #cc00cc;">#form_paypal</span> input<span style="color: #cc00cc;">#input_amount</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">50px</span>;<span style="color: #00AA00;">&#125;</span>
form<span style="color: #cc00cc;">#form_paypal</span> <span style="color: #6666ff;">.submit</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span><span style="color: #993333;">pointer</span>;border-style<span style="color: #00AA00;">:</span><span style="color: #993333;">outset</span>;<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>If you want to integrate this form into your WordPress Blog then this is the way to go:</p>
<p>In your WordPress Theme folder (wp-content/themes/yourtheme/) create a new file named &#8216;donate.php&#8217;. To make the file available as a WordPress page template you&#8217;ll need to add the following code at the top of the file:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: Donate
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>A donation form template for the default theme would look like this:</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
32
33
34
35
36
37
38
39
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: Donate
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div id=&quot;content&quot; class=&quot;narrowcolumn&quot;&gt;
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
  &lt;div class=&quot;post&quot; id=&quot;post-<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
    &lt;h2&gt;Make A Donation&lt;/h2&gt;
    &lt;p&gt;If you think you have benefited or I have helped you in some way, by using any of my 
    WordPress plugins or themes, please consider making a donation. Donations support the 
    continued development of my websites and help cover the hosting costs. 
    Donations of any size are gratefully accepted. Thank you!&lt;/p&gt;
    &lt;form id=&quot;ppDonate&quot; action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;
      &lt;input type=&quot;hidden&quot; name=&quot;cmd&quot; value=&quot;_donations&quot;&gt;
      &lt;input type=&quot;hidden&quot; name=&quot;business&quot; value=&quot;paypal@email.com&quot;&gt;
      &lt;input type=&quot;hidden&quot; name=&quot;item_name&quot; value=&quot;My Donations Subject&quot;&gt;
      &lt;input type=&quot;hidden&quot; name=&quot;no_shipping&quot; value=&quot;0&quot;&gt;
      &lt;input type=&quot;hidden&quot; name=&quot;no_note&quot; value=&quot;1&quot;&gt;
      &lt;input type=&quot;hidden&quot; name=&quot;currency_code&quot; value=&quot;USD&quot;&gt;
      &lt;input type=&quot;hidden&quot; name=&quot;tax&quot; value=&quot;0&quot;&gt;
      &lt;input type=&quot;hidden&quot; name=&quot;bn&quot; value=&quot;PP-DonationsBF&quot;&gt;
      &lt;label for=&quot;&quot;&gt;Amount (US$) : &lt;/label&gt;
      &lt;input type=&quot;text&quot; name=&quot;amount&quot; id=&quot;ppAmount&quot; width=&quot;10&quot; class=&quot;text&quot; /&gt;
      &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Donate&quot; class=&quot;submit&quot; /&gt;
      &lt;span id=&quot;moreAmount&quot; class=&quot;warningIcon red&quot; style=&quot;display:none;&quot;&gt;PayPal takes $0.35 commission for $1 donation. 
      Please enter at least $1.35 , thank you!&lt;/span&gt;
      &lt;span id=&quot;noAmount&quot; class=&quot;warningIcon red&quot; style=&quot;display:none;&quot;&gt;Please enter an amount to donate and try again.&lt;/span&gt;
      &lt;span id=&quot;ppGo&quot; style=&quot;display:none;&quot;&gt;
      &lt;img src=&quot;&amp;lt;?php bloginfo('template_url'); ?&amp;gt;/images/loader.gif&quot; align=&quot;absmiddle&quot; /&gt;Transferring to PayPal, please wait...&lt;/span&gt;
    &lt;/form&gt;
    &lt;p&gt;&lt;small&gt;Info : once you click on 'Donate', you will be transferred to PayPal where you can enter your payment information.&lt;/small&gt;&lt;/p&gt;
  &lt;/div&gt;
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span>; <span style="color: #b1b100;">endif</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="">'Edit this entry.'</span><span style="color: #339933;">,</span> <span style="">'&lt;p&gt;'</span><span style="color: #339933;">,</span> <span style="">'&lt;/p&gt;'</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Next you need to create a page in WordPress, call it &#8216;Donate&#8217;, &#8216;Make A Donation&#8217; or whatever you want the page title to be. You can leave the page content empty as we will use our template file. Scroll down to the &#8216;Page Template&#8217; section and select your page template (&#8217;Donate&#8217; in our case). Save &amp; publish the page.</p>
<p><strong>Available Files</strong></p>
<ul>
<li><span class="downloadLink"><a href="http://www.flowdrops.com/downloads/10">Donation Form Example</a></span></li>
<li><span class="downloadLink"><a href="http://www.flowdrops.com/downloads/11">Donation Form - WordPress Page Template (default theme)</a></span></li>
</ul>
<p>&nbsp;</p>
<p>Hopefully this short tutorial will be of some use for you (if so, don&#8217;t forget to <a href="http://www.flowdrops.com/donate/" target="_blank">donate</a> <img src='http://www.flowdrops.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) and if you still have some questions feel free to leave a comment below.</p>
<p><strong>Received Donations</strong></p>
<ul>
<li>Sun 8/17/2008, $5.00 USD &bull; Saarthak, <a href="http://lughole.net/" target="_blank">http://lughole.net/</a></li>
</ul>
<p>Thank You!</p>
<p>&nbsp;</p>

<p><a href="http://feeds.feedburner.com/~a/i-Farang?a=YSwdYp"><img src="http://feeds.feedburner.com/~a/i-Farang?i=YSwdYp" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.flowdrops.com/2008/08/03/paypal-donation-form-with-css-and-jquery-for-wordpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Is Woopra worth the Hype?</title>
		<link>http://www.flowdrops.com/2008/08/02/is-woopra-worth-the-hype/</link>
		<comments>http://www.flowdrops.com/2008/08/02/is-woopra-worth-the-hype/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 08:44:53 +0000</pubDate>
		<dc:creator>Toxane</dc:creator>
		
		<category><![CDATA[Nonsense]]></category>

		<category><![CDATA[Google]]></category>

		<category><![CDATA[Statistics]]></category>

		<category><![CDATA[Woopra]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.flowdrops.com/?p=146</guid>
		<description><![CDATA[I was having a look at another web site&#8217;s page source and I was wondering about a script tag in its footer. This is how I found Woopra. &#8216;Woopra is the world&#8217;s most comprehensive, information rich, easy to use, real-time Web tracking and analysis application.&#8217; states the frontpage of Woopra&#8217;s web site. Ok, I&#8217;ll give [...]]]></description>
			<content:encoded><![CDATA[<p>I was having a look at another web site&#8217;s page source and I was wondering about a script tag in its footer. This is how I found <a href="http://www.woopra.com" target="_blank">Woopra</a>. &#8216;Woopra is the world&#8217;s most comprehensive, information rich, easy to use, real-time Web tracking and analysis application.&#8217; states the frontpage of Woopra&#8217;s web site. Ok, I&#8217;ll give it a shot.</p>
<p>When I registered my Woopra account, I almost instantly got a email with the registration confirmation link. &#8216;Cool&#8217; was my thought, &#8216;now I&#8217;m checking out how feature rich this thing is&#8217;. After registration, you have to add a web site profile. I did that and was checking my mail account every few hours for the approval confirmation. After several hours and no response I got a little nervous and went to the <a href="http://www.woopra.com/forums/" target="_blank">Woopra Forums</a> to check out if there&#8217;s something about the approval time. Indeed, there are quite many topics about the site approvals. This made me &#8216;a little&#8217; pissed because they haven&#8217;t stated this anywhere. Just a line like &#8216;during beta, it may take several weeks to get your web site approved for Woopra &#8216; or something like that would have make things clear. Ok, I&#8217;ll wait.</p>
<p>8 days later my site got approved. Fired up the Woopra Client and was quite impressed by the UI (User Interface). Several days and X tests later I feel that Woopra is not really worth the hype. There are only a few features which makes Woopra different from other statistic app&#8217;s: the rich user interface, the real time analytics and the proactive chat function. I have the real time analytics with my <a href="http://pmetrics.performancing.com/6145" target="_blank">PMetrics</a> account, don&#8217;t need the proactive chat function (and I personally hate it when I get interrupted by those marketing assistants or whoever while browsing a site) and for the rich UI, there&#8217;s something in the pipe: <a href="http://www.aboutnico.be/index.php/2008/07/31/google-analytics-air-back-up/" target="_blank">Google Analytics AIR</a> (<a href="http://www.aboutnico.be/index.php/google-analytics-air-beta-sign-up/" target="_blank">Screenshots</a>)</p>
<p>Beside all that, the collected statistic results were far away from my other stats software (<a href="http://awstats.sourceforge.net" target="_blank">AWStats</a>, <a href="http://www.webalizer.org/" target="_blank">Webalizer</a>, <a href="http://www.google.com/analytics/" target="_blank">Google Analytics</a> and <a href="http://pmetrics.performancing.com/6145" target="_blank">PMetrics</a>).</p>
<p>Woopra&#8217;s competitors do not sleep and I think we can expect some new things soon. Time will tell.</p>
<p><strong>Further readings:</strong></p>
<ul>
<li><a href="http://www.woopra.com" target="_blank">Woopra</a></li>
<li><a href="http://www.google.com/analytics/" target="_blank">Google Analytics</a></li>
<li><a href="http://www.aboutnico.be/index.php/2008/07/31/google-analytics-air-back-up/" target="_blank">Google Analytics AIR</a></li>
<li><a href="http://www.epikone.com/blog/" target="_blank">Analytics Talk</a></li>
</ul>

<p><a href="http://feeds.feedburner.com/~a/i-Farang?a=8ozQKZ"><img src="http://feeds.feedburner.com/~a/i-Farang?i=8ozQKZ" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.flowdrops.com/2008/08/02/is-woopra-worth-the-hype/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Desktop Blogging Tools Reviewed</title>
		<link>http://www.flowdrops.com/2008/08/02/desktop-blogging-tools-reviewed/</link>
		<comments>http://www.flowdrops.com/2008/08/02/desktop-blogging-tools-reviewed/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 07:01:01 +0000</pubDate>
		<dc:creator>Toxane</dc:creator>
		
		<category><![CDATA[Worth A Read]]></category>

		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.flowdrops.com/?p=148</guid>
		<description><![CDATA[Just a quick post to let you know that Glen over at Smashing Magazine has written a cool review of 15 desktop blogging tools.
]]></description>
			<content:encoded><![CDATA[<p>Just a quick post to let you know that Glen over at <a href="http://www.smashingmagazine.com/" target="_blank">Smashing Magazine</a> has written a cool review of <a href="http://www.smashingmagazine.com/2008/08/01/15-desktop-blogging-tools-reviewed/" target="_blank">15 desktop blogging tools</a>.</p>

<p><a href="http://feeds.feedburner.com/~a/i-Farang?a=jkzmrX"><img src="http://feeds.feedburner.com/~a/i-Farang?i=jkzmrX" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.flowdrops.com/2008/08/02/desktop-blogging-tools-reviewed/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress Themes and the functions.php file</title>
		<link>http://www.flowdrops.com/2008/07/30/wordpress-themes-functions-php/</link>
		<comments>http://www.flowdrops.com/2008/07/30/wordpress-themes-functions-php/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 09:04:35 +0000</pubDate>
		<dc:creator>Toxane</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Theme]]></category>

		<guid isPermaLink="false">http://www.flowdrops.com/?p=109</guid>
		<description><![CDATA[Loads of good free WordPress Themes are out there. And the most of them don&#8217;t make use (or at least no good use) of the &#8216;functions.php&#8216; file. This is how the WordPress Codex describes the file:
A theme can optionally use a functions file, which resides in the theme subdirectory and is named functions.php. This file [...]]]></description>
			<content:encoded><![CDATA[<p>Loads of good free WordPress Themes are out there. And the most of them don&#8217;t make use (or at least no good use) of the &#8216;<a href="http://codex.wordpress.org/Theme_Development#Functions_File" target="_blank">functions.php</a>&#8216; file. This is how the WordPress Codex describes the file:</p>
<blockquote><p>A theme can optionally use a functions file, which resides in the theme subdirectory and is named functions.php. This file basically acts like a <a href="http://codex.wordpress.org/Plugins" target="_blank">plugin</a>, and if it is present in the theme you are using, it is automatically loaded during WordPress initialization (both for admin pages and external pages). Suggested uses for this file:</p>
<p>* Define functions used in several template files of your theme<br />
* Set up an admin screen, giving users options for colors, styles, and other aspects of your theme</p>
<p>The &#8220;Default&#8221; WordPress theme contains a functions.php file that defines functions and an admin screen, so you might want to use it as a model. Since functions.php basically functions as a plugin, the <a href="http://codex.wordpress.org/Function_Reference" target="_blank">Function_Reference</a> list is the best place to go for more information on what you can do with this file.</p></blockquote>
<p>Ok, there&#8217;s a load stuff you can read into about the WordPress functions, but not much is written about this mysterious file or exactly how to use it. Here&#8217;s some info:</p>
<p>Open the functions.php file in your theme folder (create the file if it&#8217;s not there). Add a function to it between &lt;?php and ?&gt; :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Function example. Returns the actual date</span>
<span style="color: #000000; font-weight: bold;">function</span> show_date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">echo</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="">'Y-m-d'</span><span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>To use the function in your theme, place this code somewhere (i.e. page.php) inside :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> show_date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>The date should be shown on your page where you inserted the code. Pretty easy, huh. More? Read on&#8230;</p>
<p><strong>Including stuff in the template header</strong></p>
<p>For my part I always need to load some stuff in the header, sometimes under certain conditions:</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
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span> is_admin<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// If we are not in the admin, load stuff</span>
    add_action<span style="color: #009900;">&#40;</span><span style="">'init'</span><span style="color: #339933;">,</span> <span style="">'load_my_script'</span><span style="color: #009900;">&#41;</span>; <span style="color: #666666; font-style: italic;">// on initialization, execute the function load_my_scripts</span>
    add_action<span style="color: #009900;">&#40;</span><span style="">'wp_head'</span><span style="color: #339933;">,</span> <span style="">'load_my_css'</span><span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> load_my_script<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// load myscript.js version 1.0, which is dependent on 'jquery' and refer to it as 'MyScript'</span>
    wp_enqueue_script<span style="color: #009900;">&#40;</span><span style="">'MyScript'</span><span style="color: #339933;">,</span> get_template_directory_uri<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="">'/js/myscript.js'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="">'jquery'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="">'1.0'</span><span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> load_my_css<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// load myscript.js version 1.0, which is dependent on 'jquery' and refer to it as 'MyScript'</span>
    <span style="color: #990000;">echo</span> <span style="">'&lt;link rel=&quot;stylesheet&quot; href=&quot;'</span> <span style="color: #339933;">.</span> bloginfo<span style="color: #009900;">&#40;</span><span style="">'template_url'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="">'/css/style.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>You can check for certain conditions i.e. is_page(), is_home() and so on and add stuff to the header respectively. It makes more sense and saves you bandwidth if you load your JavaScript library which checks the contact form fields for errors only on the page on which the form appears.</p>
<p><strong>Adding custom stuff</strong></p>
<p>Personally I don&#8217;t like it when I work on a theme and while testing the theme locally, it needs to load stuff from the internet like the Google analytics code, sponsor banners and other things. I like it quick. The following code is a simple solution. If the page loads local, don&#8217;t load external stuff, if it&#8217;s on the server in the internet, then load everything. Sometimes, this speeds up things drastically.</p>
<p>In the functions.php add:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Function to stop external things from being loaded while on localhost</span>
<span style="color: #000000; font-weight: bold;">function</span> is_local<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$is_devbox</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">false</span>;
  <span style="color: #000088;">$this_host</span> <span style="color: #339933;">=</span> <span style="color: #990000;">gethostbyaddr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="">'REMOTE_ADDR'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
  <span style="color: #000088;">$this_host</span> <span style="color: #339933;">==</span> <span style="">'localhost'</span> ? <span style="color: #000088;">$is_devbox</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">true</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$is_devbox</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">false</span>;
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$is_devbox</span>;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>and in the template add:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span> isLocal<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
// Add all your stuff here you don't want to load while on localhost i.e.
// your google analytics code.
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p><strong>Query the WordPress Database</strong></p>
<p>There&#8217;s a widget for the recent posts. What if we don&#8217;t want to use widgets in our sidebar? We create the function:</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
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;">function get_recent_posts($number) {
// code taken and stripped from wp-includes/widgets.php
if ( !$number || $number &lt;= 5 )
	$number = 5;
else if ( $number &lt; 1 )
	$number = 1;
else if ( $number &gt; 15 )
	$number = 15;
else
	$number = $number;
&nbsp;
$q = new WP_Query(array('showposts' =&gt; $number, 'what_to_show' =&gt; 'posts', 'post_status' =&gt; 'publish'));
if ($q-&gt;have_posts()) :
?&gt;
&lt;ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>  <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$r</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$r</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;li&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #b1b100;">else</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;/a&gt;&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
wp_reset_query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;  <span style="color: #666666; font-style: italic;">// Restore global post data stomped by the_post().</span>
<span style="color: #b1b100;">endif</span>;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Place the following code in the template where you want to show the links to your latest posts:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> get_recent_posts<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">8</span><span style="color: #009900;">&#41;</span>; <span style="color: #666666; font-style: italic;">// latest 8 posts ?&gt;</span></pre></td></tr></table></div>

<p>Or you could include a RSS Feed:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Retrieving a RSS feed</span>
<span style="color: #000000; font-weight: bold;">function</span> getRSS<span style="color: #009900;">&#40;</span><span style="color: #000088;">$uri</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">// http://codex.wordpress.org/Function_Reference/get_rss</span>
<span style="color: #000088;">$xAbspath</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\\</span>&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;/&quot;</span><span style="color: #339933;">,</span>ABSPATH<span style="color: #009900;">&#41;</span>;  <span style="color: #666666; font-style: italic;">// Win/XAMPP compatibility</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$xAbspath</span><span style="color: #339933;">.</span><span style="">'/wp-includes/rss-functions.php'</span><span style="color: #009900;">&#41;</span>;
<span style="color: #990000;">echo</span> <span style="">'&lt;ul&gt;'</span>;
get_rss<span style="color: #009900;">&#40;</span><span style="color: #000088;">$uri</span><span style="color: #009900;">&#41;</span>;
<span style="color: #990000;">echo</span> <span style="">'&lt;/ul&gt;'</span>;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>And on your page:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> getRSS<span style="color: #009900;">&#40;</span><span style="">'http://www.flowdrops.com/feed'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>There&#8217;s really a lot of functionality you can add to your WordPress theme just by adding php functions to the functions.php file. A good start is the functions.php in the &#8216;default&#8217; theme folder. It shows also how you can add a theme admin page. Go, modify your theme and add some functionality. But keep in mind: less is often more.</p>
<p>&nbsp;</p>

<p><a href="http://feeds.feedburner.com/~a/i-Farang?a=RcpSFc"><img src="http://feeds.feedburner.com/~a/i-Farang?i=RcpSFc" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.flowdrops.com/2008/07/30/wordpress-themes-functions-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Give Phuket a chance</title>
		<link>http://www.flowdrops.com/2008/06/27/give-phuket-a-chance/</link>
		<comments>http://www.flowdrops.com/2008/06/27/give-phuket-a-chance/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 23:43:08 +0000</pubDate>
		<dc:creator>Toxane</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Cheap]]></category>

		<guid isPermaLink="false">http://www.flowdrops.com/?p=36</guid>
		<description><![CDATA[Whenever friends of mine visit Thailand, they inevitably start off in Bangkok and then cycle through the main tourist spots, such as Pai and Chiang Mai. But when I try and persuade people to visit <a href="http://phuketvogue.com/">Phuket</a>, they almost always decline the offer, instead opting to go to overcrowded Koh Phi Phi or the messy-as-hell islands of Koh Samui and Koh Pan-ngan. Makes you wonder what’s wrong with Phuket.]]></description>
			<content:encoded><![CDATA[<p>Whenever friends of mine visit Thailand, they inevitably start off in Bangkok and then cycle through the main tourist spots, such as Pai and Chiang Mai. But when I try and persuade people to visit <a href="http://phuketvogue.com/">Phuket</a>, they almost always decline the offer, instead opting to go to overcrowded Koh Phi Phi or the messy-as-hell islands of Koh Samui and Koh Pan-ngan. Makes you wonder what’s wrong with Phuket.</p>
<p>Thanks to the lively nature of <a href="http://phuketvogue.com/patong-and-kalim-nightlife/">Patong nightlife</a> and the overdevelopment of Patong, Phuket has a bad rep, but it’s not all justified. Sure, Patong is a dump and why people opt to spend their vacations there is a mystery in itself, but people seem to forget that Phuket is an enormous island that has about a dozen other beaches than Patong and just as many islands dotted around the coast.</p>
<p>Phuket still has a lot of its original appeal, but you just have to look away from the busiest beach spots to see it. If someone who lives in Phuket wants to go to the beach, he or she would never choose to visit Patong, but rather, would head out to Mai Khao Beach, Yanui Beach, Laem Singh Beach or anywhere the tourists don’t flock to en masse.</p>
<p>Phuket is a great island for a vacation and it’s a little disheartening to see so many people favoring the other nearby tourists traps. Although it’s perhaps not the most exciting place to live, Phuket is a great place to visit and, despite contrary reports, it’s actually really cheap.</p>
<blockquote><p>This post was written by Matt from <a href="http://phuketvogue.com/">Phuket Vogue</a> and <a rel="nofollow" href="http://whatismatt.com/">Thailand&#8217;s Lost Boy</a>.</p></blockquote>

<p><a href="http://feeds.feedburner.com/~a/i-Farang?a=5Jz44E"><img src="http://feeds.feedburner.com/~a/i-Farang?i=5Jz44E" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.flowdrops.com/2008/06/27/give-phuket-a-chance/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WP-Plugin : AJAX Comments for Wordpress</title>
		<link>http://www.flowdrops.com/2008/06/19/wordpress-plugin-ajax-comments-for-wordpress/</link>
		<comments>http://www.flowdrops.com/2008/06/19/wordpress-plugin-ajax-comments-for-wordpress/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 09:39:02 +0000</pubDate>
		<dc:creator>Toxane</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[AJAX]]></category>

		<category><![CDATA[Comments]]></category>

		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://localhost:8080/2008/?p=10</guid>
		<description><![CDATA[A great way to enhance your WordPress Blog with some AJAX functionality. No more page reloads when adding a comment. Simple, powerful, yet flexible this plugin gives your visitors a nice user experience.]]></description>
			<content:encoded><![CDATA[<p><strong>Current version</strong></p>
<p>0.98.9 (July 26, 2008) &bull; <a href="http://downloads.wordpress.org/plugin/if-ajax-comments-for-wordpress.zip" target="_blank">Download</a></p>
<p><strong>Description</strong></p>
<p>AJAX enabled commenting based on the jQuery framework. This plugin will hook into the comments form and posts the user comment the AJAX way.<br />
Many configuration options trough the settings page which can be found at &#8216;Settings -&gt; AJAX Comments&#8217;.</p>
<p><strong>Installation</strong></p>
<ol>
<li>Upload the full directory into your wp-content/plugins directory</li>
<li>Activate it in the Plugin options</li>
<li>Open the settings page at Settings -&gt; AJAX Comments to set the default options (initial options are set automatic) or further customize the look &amp; feel of the plugin.</li>
<li>Happy commenting!</li>
</ol>
<p><strong>Frequently Asked Questions </strong></p>
<ul>
<li>I&#8217;ve tried everything, the plugin does not work. What should I do?
<ul>
<li>Try the plugin with the &#8216;default&#8217; theme. If it works, your theme is missing one or more of the following tags:</li>
<li>&lt;ol class=&#8221;commentlist&#8221;&gt;</li>
<li>&lt;h3 id=&#8221;respond&#8221;&gt;</li>
<li>&lt;form id=&#8221;commentform&#8221;&gt;</li>
<li>&lt;textarea id=&#8221;comment&#8221;&gt;</li>
<li><strong>pay attention to the id &amp; class names</strong></li>
</ul>
</li>
</ul>
<ul>
<li>I&#8217;ve tried to run the plugin with the &#8216;default&#8217; theme, still no luck. What&#8217;s next?
<ul>
<li>Do you have other plugins activated? Try to deactivate another plugin, and run the test again. If my plugin works after deactivating a certain plugin, you have just found an incompatability between my plugin and the one you deactivated. Please <a href="http://www.flowdrops.com/contact/">inform me about this</a>, thanks!</li>
</ul>
</li>
</ul>
<ul>
<li>Tried with the &#8216;default&#8217; theme and deactivated all other plugins. Still doesn&#8217;t work. What now?
<ul>
<li>Please <a href="#respond">post a comment</a> or <a href="http://www.flowdrops.com/contact/">contact me</a>. Include a link to your website on which my plugin is not working. Please leave my plugin activated. I will have a look at it and inform you about the next steps. Thanks.</li>
</ul>
</li>
</ul>
<p><strong>Known Issues</strong></p>
<ul>
<li>Under certain server configurations the plugin doesn&#8217;t get it&#8217;s variables via ajax. I&#8217;m currently investigating on this issue</li>
<li>Incompatible with <a href="http://tantannoodles.com/toolkit/spam-filter/" target="_blank">TanTanNoodles Simple Spam Filter</a></li>
<li>Apostrophes in output messages getting escaped (backslashed)</li>
</ul>
<p><strong>History </strong></p>
<ul>
<li>Version 0.98.9 - July 26, 2008
<ul>
<li>Changed to PEAR Services_JSON for PHP versions prior to 5.2 -> thanks to macwoern (http://espressoblog.de/)</li>
</ul>
</li>
<li>Version 0.98.7 - July 22, 2008
<ul>
<li>Updated readme.txt</li>
</ul>
</li>
<li>Version 0.98 - July 14, 2008
<ul>
<li>Changed internal AJAX call, works now cross-domain</li>
<li>Added option &#8216;Allowed Hosts&#8217; for cross-domain calls</li>
<li>Added option to set &#8216;Live Preview&#8217; title text -&gt; thanks to ADRIANO [http://philosophyquest.com]</li>
<li>Added option to set &#8216;Invalid Email&#8217; text</li>
<li>Added &#8216;CSS Style&#8217; option</li>
</ul>
</li>
<li>Version 0.97 - July 8, 2008
<ul>
<li>Bugfixes</li>
<li>Added &#8216;AJAX Edit Comments&#8217; compatibility -&gt; thanks to GENE [http://www.macnightowl.com/]</li>
<li>Packed JavaScript</li>
</ul>
</li>
<li>Version 0.96.1 - July 6, 2008
<ul>
<li>Bugfix (Subscribe to Comments) -&gt; thanks to MANAN [http://beingmanan.com/]</li>
</ul>
</li>
<li>Version 0.96 - July 2, 2008
<ul>
<li>added Unicode support &amp; Unicode Bugfix -&gt; thanks to vsy [http://blog.meetsee.ws/]</li>
<li>removed the jQuery script option in the settings (check is done automatically)</li>
<li>improved security</li>
<li>improved code</li>
</ul>
</li>
<li>Version 0.95 - June 24, 2008
<ul>
<li>removed 2 bugs from 9.4. One was a typo and the other one was json_encode wich was (in my case) not available on the hosting server</li>
</ul>
</li>
<li>Version 0.94 - June 24, 2008
<ul>
<li>kicked Mootools, moved to jQuery</li>
<li>added &#8216;Live Preview&#8217;</li>
</ul>
</li>
<li>Version 0.93 - June 21, 2008
<ul>
<li>added setting to show/hide the form after a comment has been posted</li>
<li>overall improved settings page</li>
<li>JavaScript moved to external files</li>
<li>CSS moved to external files</li>
<li>corrected some typos</li>
<li>added internal version check</li>
<li>overall improved code</li>
</ul>
</li>
<li>Version 0.92 - June 17, 2008
<ul>
<li>Initial release</li>
</ul>
</li>
</ul>
<p><strong>Notes</strong></p>
<ul>
<li> If you installed Wordpress outside the document root (e.g. http://www.yoursite.com/blog/) you must edit the file &#8216;/js/if-ajax-comments.js&#8217; and set the &#8216;pluginPath&#8217; variable at line 11 prior to uploading.</li>
</ul>
<p><strong>Bug reporting </strong></p>
<p>If you find any bugs PLEASE leave a comment with a description so I can fix them!</p>
<p><strong>Modify / Customize </strong></p>
<p>Since I&#8217;ve been asked many times on how to modify certain things in this plugin, I&#8217;ll give a quick example. Here we change the appearance of the error message :</p>
<p>The error messages are handled in &#8216;/js/if-ajax-comments.js&#8217; at line 144 - 150 :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>144
145
146
147
148
149
150
</pre></td><td class="code"><pre class="javascript javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>xError <span style="color: #339933;">!=</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#'</span><span style="color: #339933;">+</span>css_commentform<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">before</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;div id=&quot;msgError&quot; class=&quot;msgError&quot;&gt;&lt;/div&gt;'</span><span style="color: #009900;">&#41;</span>;
    jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#msgError'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span>xError<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">300</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">4000</span><span style="color: #009900;">&#41;</span>;
    xError <span style="color: #339933;">=</span> <span style="color: #3366CC;">''</span>;
    <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span>;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>On line 126 two things happens:</p>
<ol>
<li>the script is looking for the ID &#8216;#commentform&#8217; and</li>
<li>injects a new DIV (the error message) before the &#8216;#commentform&#8217;.</li>
</ol>
<p>Say, for example, we want the error message to be shown after the comment form, we change the line into this :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>146
</pre></td><td class="code"><pre class="javascript javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#'</span><span style="color: #339933;">+</span>css_commentform<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">after</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;div id=&quot;msgError&quot; class=&quot;msgError&quot;&gt;&lt;/div&gt;'</span><span style="color: #009900;">&#41;</span>;</pre></td></tr></table></div>

<p>If we want the error message to be shown on top of &#8216;LEAVE A REPLY&#8217;, we would change the line to :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>146
</pre></td><td class="code"><pre class="javascript javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'h3#respond'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">before</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;div id=&quot;msgError&quot; class=&quot;msgError&quot;&gt;&lt;/div&gt;'</span><span style="color: #009900;">&#41;</span>;<span style="color: #3366CC;">');</span></pre></td></tr></table></div>

<p>It&#8217;s pretty simple and you can do almost anything you want. Just keep in mind : whenever I update the plugin and put a new version to the repository at WordPress, your changes will be overwritten!</p>
<p><strong>More information about jQuery </strong></p>
<ul>
<li><a href="http://docs.jquery.com/" target="_blank">jQuery Documentation</a></li>
<li><a href="http://docs.jquery.com/Selectors" target="_blank">Selectors</a></li>
<li><a href="http://docs.jquery.com/Manipulation" target="_blank">Manipulation</a></li>
</ul>
<p><strong>Contributors, Bug finders &amp; helpers </strong></p>
<ul>
<li>Gene » <a href="http://www.macnightowl.com/" target="_blank">http://www.macnightowl.com/</a></li>
<li>Manan » <a href="http://beingmanan.com/" target="_blank">http://beingmanan.com/</a></li>
<li>vsy » <a href="http://blog.meetsee.ws/" target="_blank">http://blog.meetsee.ws/</a></li>
<li>Adriano » <a href="http://philosophyquest.com/" target="_blank">http://philosophyquest.com/</a></li>
</ul>
<p><strong>Thanks to all testers &amp; commenters, your feedback is much appreciated!</strong></p>

<p><a href="http://feeds.feedburner.com/~a/i-Farang?a=H9nZcI"><img src="http://feeds.feedburner.com/~a/i-Farang?i=H9nZcI" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.flowdrops.com/2008/06/19/wordpress-plugin-ajax-comments-for-wordpress/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
