<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FiddyP &#187; Wordpress</title>
	<atom:link href="http://fiddyp.co.uk/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://fiddyp.co.uk</link>
	<description>The personal blog of Andy Bailey</description>
	<lastBuildDate>Sun, 13 May 2012 15:28:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>CommentLuv Premium</title>
		<link>http://fiddyp.co.uk/commentluv-premium/</link>
		<comments>http://fiddyp.co.uk/commentluv-premium/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 22:25:14 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Blog Tools]]></category>
		<category><![CDATA[commentluv premium]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[profit]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://fiddyp.co.uk/?p=2033</guid>
		<description><![CDATA[“Awesome Features” CommentLuv Premium allows you to unlock advanced backlink features on 10′s of thousands of blogs. It has been shown to increase comments and traffic to blogs [..]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ffiddyp.co.uk%2Fcommentluv-premium%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Fcommentluv-premium%2F&amp;source=commentluv&amp;style=normal&amp;service=bit.ly&amp;service_api=R_259b4e5679e2c431cca1f989e158bba4&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><center><iframe width="560" height="315" src="http://www.youtube.com/embed/nWgQGfDqEtw" frameborder="0" allowfullscreen></iframe></p>
<p class="jboxbtn"><a title="Limited time offer! get it before it's too late" href="http://www.commentluv.com/?mode=paypal&amp;itemID=5"><img src="http://www.commentluv.com/wp-content/themes/profitstheme_11/lib/images/buttons/yellow_add-to-cart.png" alt="" border="0"></a></p>
<div id="jbox" class="orangebox3" style="width: 520px; padding: 10px 20px;"></center></p>
<p class="jboxcommhead">“Awesome Features”</p>
<p><img class="size-thumbnail wp-image-1244 alignleft" title="CommentLuv Premium Features" src="http://www.commentluv.com/wp-content/uploads/2011/11/commentluv-premium-box-step2-150x150.png" alt="CommentLuv Premium Features" width="150" height="150"></center><br />
CommentLuv Premium allows you to unlock advanced backlink features on 10′s of thousands of blogs. It has been shown to increase comments and traffic to blogs that install it and helps to make your posts go viral by integrating with twitter, facebook and google plus.</p>
<p>It combines 8 plugins in to 1 which all work in harmony to reduce spam, provide stats of where your links are being clicked, deny trackbacks from spammers, allow users to use keywords in their name, leave their twitter name in the comments, showcase your top commenters and more.</p>
<p>The plugin has many new features :</p>
<ul class="greencheck">
<li>Integrated anti spam measures that prevent almost 100% of botspam</li>
<li>Dofollow readers links with advanced rules so you look after your most loyal readers</li>
<li>Unique social enticements which helps your posts to go viral on Twitter, facebook and Google+</li>
<li>Integrated twitterlink functions to allow readers to leave their twitter names on comments</li>
<li>Improved version of Keywordluv with much tighter control over who gets to use keywords</li>
<li>Integrates trackback validation with improved heuristics</li>
<li>Exclusive top commentators widget with advanced display control</li>
<li>Dashboard and advanced stats that show you where your links are getting clicked</li>
<li>Free updates for life using the easy one click automatic update system</li>
<li>more being added all the time!</li>
</ul>
<p>You can find out more about CommentLuv Premium at <a href="http://www.CommentLuv.com">CommentLuv.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/commentluv-premium/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>New premium plugin being tested</title>
		<link>http://fiddyp.co.uk/new-premium-plugin-being-tested/</link>
		<comments>http://fiddyp.co.uk/new-premium-plugin-being-tested/#comments</comments>
		<pubDate>Sat, 20 Aug 2011 09:36:02 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Blog Tools]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[aweber]]></category>
		<category><![CDATA[awebergate]]></category>
		<category><![CDATA[gateway]]></category>
		<category><![CDATA[premium plugin]]></category>
		<category><![CDATA[profit]]></category>

		<guid isPermaLink="false">http://fiddyp.co.uk/?p=1987</guid>
		<description><![CDATA[Weekend Warrior! I&#8217;ve been working feverishly to get premium commentluv ready for beta testing over the past 3 weeks and to give me a break on the weekends, [..]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ffiddyp.co.uk%2Fnew-premium-plugin-being-tested%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Fnew-premium-plugin-being-tested%2F&amp;source=commentluv&amp;style=normal&amp;service=bit.ly&amp;service_api=R_259b4e5679e2c431cca1f989e158bba4&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img src="http://fiddyp.co.uk/wp-content/uploads/premium.jpg" alt="" title="premium plugin" width="251" height="282" class="aligncenter size-full wp-image-1990" /></p>
<h2>Weekend Warrior!</h2>
<p>I&#8217;ve been working feverishly to get premium commentluv ready for beta testing over the past 3 weeks and to give me a break on the weekends, I&#8217;ve been working on another premium plugin that I&#8217;ll be launching to the warrior forums with my JV partner before releasing it to the wild.</p>
<h2>What is it called?</h2>
<p><img src="http://fiddyp.co.uk/wp-content/uploads/aweber-gate.png" alt="" title="aweber-gate" width="125" height="94" class="alignleft size-full wp-image-1989" /><br />
It&#8217;s got a working title of <strong>WP Aweber Gate</strong></p>
<div class="clear"></div>
<h2>What does it do?</h2>
<p>It allows you to protect post and page content from being viewed and downloads from being accessed by readers unless they are on your Aweber list.</p>
<h2>Why would I want that?</h2>
<ul>
<li>Run a membership site without all the trouble of having members register to your site</li>
<li>Offer ethical bribes to people to join your list and know that only people that have subscribed can access the bribe</li>
<li>Prevent your premium content from being shared with non subscribers</li>
<li>Add bonus materiel to your site for your list subscribers only</li>
<li>No need to change your theme to a membership theme just to have subscribers only content</li>
<li>No need to buy expensive plugins like wishlist or DAP (this plugin will be MUCH cheaper!)</li>
<li>There&#8217;s probably a lot more reasons that I haven&#8217;t thought of!</li>
</ul>
<h2>How does it work?</h2>
<p>Just 4 easy steps to get your subscribers only gateway working:</p>
<p>Upload, activate, authorize, configure.</p>
<ol>
<li><strong>Upload</strong><br />
Upload to your plugins directory or use the plugins page link in your dashboard</li>
<li><strong>Activate</strong><br />
Ummm, click activate!</li>
<li><strong>Authorize</strong><br />
Click the link to authorize the plugin to access your Aweber account</li>
<li><strong>Configure</strong><br />
Choose your desired list (or set to check all) and what you want to happen to non subscribers (off with their heads!). </p>
<ul>
<li>You can show them a message which can contain HTML </li>
<li>You can automatically send a subscription to your desired list</li>
<li>You can forward them to any page on your site</li>
<li>You can forward them to any URL on the web</li>
</ul>
</li>
</ol>
<h2>Let me see!</h2>
<p>Here&#8217;s a set of video instructions on how to rebrand my recent premium plugin called <a href="http://wpmailads.com">WP Mail Ads</a>, you can also download a free bonus plugin for commentluv users called The Dashboard Luvver Widget which shows a list of last blog posts from the people that have commented on your blog so you&#8217;ve always got somewhere to go and visit to get some luv!</p>
<p>You can only access the videos and downloads if you&#8217;re an email subscriber to one of my lists. Chances are that if you have downloaded the commentluv plugin or seen some of my videos you are already so all you need to do is enter your email address in the box and click the button, if you are on my list it&#8217;ll show you the content and cookie you so you can access all the locked content and downloads, if you&#8217;re not on one of my lists then it&#8217;ll auto subscribe you and then you just need to click the authorization link that arrives in your inbox. Sweet huh? <img src='http://fiddyp.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
<img src="http://fiddyp.co.uk/wp-content/uploads/arrow8-blue.png" alt="" title="locked content below" width="100" height="96" class="aligncenter size-full wp-image-1998" /><br />
<div class="aweber-check-div"><label for="check-email">You need to be an email subscriber to access this content, enter your email address below and click the button</label><p>Please view this form online to access the content</p><div class="secured">Secured by AweberGate</div></div><br />
<img src="http://fiddyp.co.uk/wp-content/uploads/arrow8-up-blue.png" alt="" title="locked content above" width="100" height="96" class="aligncenter size-full wp-image-1999" /></p>
<h2>When can I get it?</h2>
<p>I&#8217;ll be releasing it in a week or two once all the sales bumpf and bonuses have been put together! watch out for it!</p>
<p>btw&#8230; I have installed premium commentluv to comluv.com. You can read about it here. <a href="http://comluv.com/commentluv-premium-beta-testing-news/">Premium CommentLuv Beta Testing</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/new-premium-plugin-being-tested/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>How to fix radio inputs losing focus when dragging a jquery ui sortable div</title>
		<link>http://fiddyp.co.uk/how-to-fix-radio-inputs-losing-focus-when-dragging-a-jquery-ui-sortable-div/</link>
		<comments>http://fiddyp.co.uk/how-to-fix-radio-inputs-losing-focus-when-dragging-a-jquery-ui-sortable-div/#comments</comments>
		<pubDate>Sun, 24 Jul 2011 07:33:20 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[add_meta_box]]></category>
		<category><![CDATA[draggable]]></category>
		<category><![CDATA[jquery ui]]></category>
		<category><![CDATA[profit]]></category>
		<category><![CDATA[sortable]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://fiddyp.co.uk/?p=1971</guid>
		<description><![CDATA[hows that for a descriptive title eh? haha, that&#8217;s the exact term I used when I ran into trouble with some wordpress meta boxes on a custom admin [..]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ffiddyp.co.uk%2Fhow-to-fix-radio-inputs-losing-focus-when-dragging-a-jquery-ui-sortable-div%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Fhow-to-fix-radio-inputs-losing-focus-when-dragging-a-jquery-ui-sortable-div%2F&amp;source=commentluv&amp;style=normal&amp;service=bit.ly&amp;service_api=R_259b4e5679e2c431cca1f989e158bba4&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>hows that for a descriptive title eh? haha, that&#8217;s the exact term I used when I ran into trouble with some wordpress meta boxes on a custom admin page I was making for the new CommentLuv. I am using the WordPress functions for add_meta_box to add, you guessed it, meta boxes to a settings page.</p>
<h2>Draggable killed the radio bar</h2>
<p>ok, lame Queen song title parody I know but it&#8217;s true. I had a bar of radio buttons in one of those meta boxes and if I dragged and dropped the box to a new place, it lost it&#8217;s radio button dots! </p>
<p><img src="http://fiddyp.co.uk/wp-content/uploads/commentluv-drag-meta-box.png" alt="" title="Drag meta box with radio inputs" width="489" height="452" class="aligncenter size-full wp-image-1972" /></p>
<p>When I dropped the sortable meta box, the happy little dot in the radio input would disappear which messed things up when I saved the settings because the form would not have a radio input with a status of checked any more. <img src='http://fiddyp.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<h2>jQuery rescues jQuery!</h2>
<p>jQuery is frickin awesome and I love it. It&#8217;s the sole reason CommentLuv was able to become the plugin it is today. It&#8217;s also sometimes a little finicky and it does things in a particular way which causes some mild issues. This is one of them, it&#8217;s all due to jQuery cloning the contents of the sortable box when you drag it and then when you drop it, the radio button loses it&#8217;s happy little dot.</p>
<p>I did a mammoth amount of searching and could only find 2 instances of it happening elsewhere (<a href="http://wordpress.stackexchange.com/questions/13226/moving-dragging-a-metabox-removes-tinymces-content" title="wordpress stack exchange">here</a> and <a href="http://core.trac.wordpress.org/ticket/16972#comment:4" title="wordpress trac">here</a>) and both instances said it was a bug/feature and didn&#8217;t provide a solution.</p>
<h2>Geek me up, I&#8217;m goin in!</h2>
<p><object width="512" height="313" type="application/x-shockwave-flash" data="http://www.youtube.com/v/Z9_jIa2WADc&fs=1&fmt=18">
			<param name="movie" value="http://www.youtube.com/v/Z9_jIa2WADc&fs=1&fmt=18"></param>
			<param name="allowFullScreen" value="true" />
			<param name="allowscriptaccess" value="always" />
			<param name="wmode" value="transparent"></param>
			</object></p>
<p>As a means to procrastinate, an unhealthily strong stubbornness bone and a burning sensation in my pants whenever I can&#8217;t do something that I want to do, I set about trying some code to re click the radio buttons after the meta box had been dropped after dragging.</p>
<p>Here it is, I hope you find it useful! (change the two instances of .wrap to whatever container your sortables are in)</p>
<pre class="brush: php; title: ; notranslate">
// global script for commentluv premium settings pages
// workaround for bug that causes radio inputs to lose settings when meta box is dragged.
// http://core.trac.wordpress.org/ticket/16972
jQuery(document).ready(function(){
    // listen for drag drop of metaboxes , bind mousedown to .hndle so it only fires when starting to drag
    jQuery('.hndle').mousedown(function(){
        // set event listener for mouse up on the content .wrap and wait a tick to give the dragged div time to settle before firing the reclick function
        jQuery('.wrap').mouseup(function(){store_radio(); setTimeout('reclick_radio();',50);});
    })
});
/**
* stores object of all radio buttons that are checked for entire form
*/
function store_radio(){
    var radioshack = {};
    jQuery('input[type=&quot;radio&quot;]').each(function(){
        if(jQuery(this).is(':checked')){
            radioshack[jQuery(this).attr('name')] = jQuery(this).val();
        }
        jQuery(document).data('radioshack',radioshack);
    });
}
/**
* detect mouseup and restore all radio buttons that were checked
*/
function reclick_radio(){
    // get object of checked radio button names and values
    var radios = jQuery(document).data('radioshack');
    //step thru each object element and trigger a click on it's corresponding radio button
    for(key in radios){
        jQuery('input[name=&quot;'+key+'&quot;]').filter('[value=&quot;'+radios[key]+'&quot;]').trigger('click');
    }
    // unbind the event listener on .wrap  (prevents clicks on inputs from triggering function)
    jQuery('.wrap').unbind('mouseup');
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/how-to-fix-radio-inputs-losing-focus-when-dragging-a-jquery-ui-sortable-div/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>New CommentLuv version 2.9</title>
		<link>http://fiddyp.co.uk/new-commentluv-version-2-9/</link>
		<comments>http://fiddyp.co.uk/new-commentluv-version-2-9/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 09:04:57 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Blog News]]></category>
		<category><![CDATA[Blog Tools]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[commentluv]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[profit]]></category>

		<guid isPermaLink="false">http://fiddyp.co.uk/?p=1928</guid>
		<description><![CDATA[I&#8217;ve had a blast launching the new free version of CommentLuv and it occurred to me that I haven&#8217;t actually put a feature list out there so people [..]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ffiddyp.co.uk%2Fnew-commentluv-version-2-9%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Fnew-commentluv-version-2-9%2F&amp;source=commentluv&amp;style=normal&amp;service=bit.ly&amp;service_api=R_259b4e5679e2c431cca1f989e158bba4&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I&#8217;ve had a blast launching the new free version of CommentLuv and it occurred to me that I haven&#8217;t actually put a feature list out there so people know what&#8217;s changed in this new version.</p>
<p>So, here&#8217;s what&#8217;s new :</p>
<div class="sk-notification notification-info"><span class="icon"></span><span style="font-size: 1.2em; font-weight: bold;">Completely Standalone</span><br />
No need to ask your readers to register elsewhere or for you to save your feed URL</div>
<div class="sk-notification notification-info"><span class="icon"></span><span style="font-size: 1.2em; font-weight: bold;">New leaner faster code</span><br />
More reliable and secure code that conforms to WP standards</div>
<div class="sk-notification notification-info"><span class="icon"></span><span style="font-size: 1.2em; font-weight: bold;">Dofollow Control</span><br />
You decided if you want to make the links dofollow and who gets to have dofollow</div>
<div class="sk-notification notification-info"><span class="icon"></span><span style="font-size: 1.2em; font-weight: bold;">Grows your membership/list</span><br />
Enable 10 last posts for readers that register to your site and grow your list!</div>
<div class="sk-notification notification-info"><span class="icon"></span><span style="font-size: 1.2em; font-weight: bold;">Auto response to other CommentLuv blogs</span><br />
Never worry about your feed again when you comment on other CommentLuv enabled blogs</div>
<div class="sk-notification notification-info"><span class="icon"></span><span style="font-size: 1.2em; font-weight: bold;">Activate Only Option</span><br />
You can install it so it works when you comment on other CommentLuv enabled blogs but not actually have it on your comments</div>
<div class="sk-notification notification-info"><span class="icon"></span><span style="font-size: 1.2em; font-weight: bold;">On Pages, Posts or Both!</span><br />
Choose where you want to have CommentLuv enabled (if at all)</div>
<div class="sk-notification notification-info"><span class="icon"></span><span style="font-size: 1.2em; font-weight: bold;">Use your own image</span><br />
Your choice of text, supplied images or use your own image below the comment form. Link it to commentluv or not, it&#8217;s up to you!</div>
<div class="sk-notification notification-info"><span class="icon"></span><span style="font-size: 1.2em; font-weight: bold;">Custom Messages</span><br />
You can set what unregistered users see in the info panel or when they comment</div>
<div class="sk-notification notification-info"><span class="icon"></span><span style="font-size: 1.2em; font-weight: bold;">Minifying Compatibility</span><br />
Ability to make the plugin work with minifying and caching plugins (advanced settings)</div>
<div class="sk-notification notification-info"><span class="icon"></span><span style="font-size: 1.2em; font-weight: bold;">Manual Insert</span><br />
New and improved code to allow you manually insert the badge code anywhere you want</div>
<div class="sk-notification notification-info"><span class="icon"></span><span style="font-size: 1.2em; font-weight: bold;">Diagnostics (advanced)</span><br />
New section to aid in getting help. Full list of settings that you can copy and paste into a support ticket</div>
<div class="sk-notification notification-info"><span class="icon"></span><span style="font-size: 1.2em; font-weight: bold;">Helpful Embedded Videos</span><br />
Helpful videos right where you need them (with subtitles), right in the settings page.</div>
<p>phew! that took a while&#8230;</p>
<p>just you wait until you see what&#8217;s coming in CommentLuv premium!</p>
<p>You can <a href="http://www.commentluv.com">Download CommentLuv</a> here</p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/new-commentluv-version-2-9/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Easy aMember Protect Lite WordPress Plugin</title>
		<link>http://fiddyp.co.uk/easy-amember-protect-lite-wordpress-plugin/</link>
		<comments>http://fiddyp.co.uk/easy-amember-protect-lite-wordpress-plugin/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 07:07:15 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Business Software]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[amember]]></category>
		<category><![CDATA[membership]]></category>
		<category><![CDATA[paywall]]></category>
		<category><![CDATA[profit]]></category>
		<category><![CDATA[protect]]></category>

		<guid isPermaLink="false">http://fiddyp.co.uk/?p=1793</guid>
		<description><![CDATA[Announcing the release of a new plugin for WordPress (single and multisite) that will allow you to use your purchase of aMemberto protect your posts and/or pages very [..]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ffiddyp.co.uk%2Feasy-amember-protect-lite-wordpress-plugin%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Feasy-amember-protect-lite-wordpress-plugin%2F&amp;source=commentluv&amp;style=normal&amp;service=bit.ly&amp;service_api=R_259b4e5679e2c431cca1f989e158bba4&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Announcing the release of a new plugin for WordPress (single and multisite) that will allow you to use your purchase of <a href="http://ql2.me/1/amember">aMember</a>to protect your posts and/or pages very simply, easily and best of all &#8211; do it for FREE!</p>
<p><a href="http://wordpress.org/extend/plugins/easy-amember-protect-lite/">Download the plugin at the wordpress site here</a></p>
<p><a href="http://ql2.me/1/amember">Download aMember 30 day trial here</a></p>
<h2>How to install</h2>
<ul>
<li>Download the file from the official WordPress page or visit your WordPress dashboard, go to Plugins/Add New and search for &#8220;easy amember protect lite&#8221;.</li>
<li>If you downloaded it, extract the folder from the zip file and upload the whole folder to your wp-content/plugins/ directory using FTP</li>
<li>Activate the plugin</li>
</ul>
<h2>How to configure</h2>
<p>The plugin assumes that your <a href="http://ql2.me/1/amember">amember</a> installation resides in a folder called <strong>amember</strong> in the root of your wordpress install. If your installation uses a different folder name or is in a different location you will need to set the correct location in the settings page.</p>
<h2>How it Works</h2>
<p>You should already have some products in your aMember setup and the PHP_Include plugin activated (it should be anyway).</p>
<p>The plugin will use the product ID number from your aMember setup as the value of the custom field you add to the posts or pages that you want to protect.</p>
<div id="attachment_1797" class="wp-caption aligncenter" style="width: 614px"><img src="http://fiddyp.co.uk/wp-content/uploads/2010/08/amember-product-number.png" alt="" title="amember-product-number" width="604" height="298" class="size-full wp-image-1797" /><p class="wp-caption-text">The aMember product you want to allow access to</p></div>
<p>Once you know your product ID, add the custom field to the post you want to protect.</p>
<p><a href="http://fiddyp.co.uk/wp-content/uploads/2010/08/amember-custom-field.png"><img src="http://fiddyp.co.uk/wp-content/uploads/2010/08/amember-custom-field.png" alt="Add a new custom field with the product number from aMember you want to allow access for" title="amember-custom-field" width="604" height="298" class="aligncenter size-full wp-image-1798" /></a></p>
<p>If you want to allow access to more than one product, add a new custom field for each product.</p>
<p><img src="http://fiddyp.co.uk/wp-content/uploads/2010/08/multiple-products.png" alt="Allow multiple products" title="multiple-products" width="433" height="250" class="aligncenter size-full wp-image-1802" /></p>
<h2>Format your post with &#8211;more</h2>
<p>If your blog shows the whole post in the archive view or blog post list, you need to use the <code>< !--more--></code> tag after the text you want everyone to see. Once someone clicks on the title of the post or the link to read more, they will get redirected to the amember login page (if they aren&#8217;t already logged in). </p>
<div id="attachment_1805" class="wp-caption aligncenter" style="width: 582px"><img src="http://fiddyp.co.uk/wp-content/uploads/2010/08/wordpress-post-edit-moretag.png" alt="" title="wordpress-post-edit-moretag" width="572" height="324" class="size-full wp-image-1805" /><p class="wp-caption-text">the more tag in HTML mode</p></div>
<div id="attachment_1806" class="wp-caption aligncenter" style="width: 582px"><img src="http://fiddyp.co.uk/wp-content/uploads/2010/08/wordpress-post-html-edit-moretag.png" alt="" title="wordpress-post-html-edit-moretag" width="572" height="324" class="size-full wp-image-1806" /><p class="wp-caption-text">The more tag in wysiwyg mode</p></div>
<h2>Have fun!</h2>
<p>With a bit of imagination and time on the amember forums, you should be able to get your own premium content membership on WordPress site up and running in next to no time!</p>
<h2>Notes</h2>
<p>This plugin is <strong>not</strong> a replacement for the official amember wordpress plugin, it wont create a new user on WordPress or allow you to log in to both sites. It simply allows you to protect a single page or post from being seen by someone unless they have an active subscription to one of your amember products.</p>
<p>This plugin is provided &#8216;as is&#8217; and is free for you to use any way you wish. </p>
<h2>Hire me to do your dirty work!</h2>
<p>If you want support, modifications and/or custom code then you can contact me on the amember forum (my username there is Andyb) with the details of what you want and request a quote. Prices range from 20$ for telephone support, 50$ for a simple mod, 100$ for custom coding additions and up to and over 250$ for more complex requests. (quotes are free and it costs nothing to ask!)</p>
<p>If you want to try out aMember before you buy, you can <a href="http://ql2.me/1/amember">download a fully functional 30 day trial for free here</a>. I recommend it if you need a quick solution to add a paywall to your site or you want to charge people to download an ebook, zip or other file.</p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/easy-amember-protect-lite-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Having an issue with dbDelta to add table to wp db (resolved)</title>
		<link>http://fiddyp.co.uk/having-an-issue-with-dbdelta-to-add-table-to-wp-db/</link>
		<comments>http://fiddyp.co.uk/having-an-issue-with-dbdelta-to-add-table-to-wp-db/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 14:18:46 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[create table]]></category>
		<category><![CDATA[dbDelta]]></category>
		<category><![CDATA[profit]]></category>

		<guid isPermaLink="false">http://www.fiddyp.co.uk/?p=1244</guid>
		<description><![CDATA[I&#8217;m having some issues with trying to put the WP-Twitip-ID plugin into the final version. Right now, the beta version stores the twitter ID in the post meta [..]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ffiddyp.co.uk%2Fhaving-an-issue-with-dbdelta-to-add-table-to-wp-db%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Fhaving-an-issue-with-dbdelta-to-add-table-to-wp-db%2F&amp;source=commentluv&amp;style=normal&amp;service=bit.ly&amp;service_api=R_259b4e5679e2c431cca1f989e158bba4&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I&#8217;m having some issues with trying to put the WP-Twitip-ID plugin into the final version.</p>
<p>Right now, the beta version stores the twitter ID in the post meta for each post but that&#8217;s not really ideal because it can only show the twitter id on the comments of the post that the user has already commented on. New post comments require the user to add their twitter id again. Not too much trouble because if they have entered a twitter id in a previous comment then the plugin sets a cookie on their machine and adds it to the field when they comment again.</p>
<p>What I&#8217;d rather do is store the twitter id in the database so it&#8217;s accessible outside the post meta. I could store the id&#8217;s in wp_options but that would probably cause loading time issues because wp_options values get loaded automatically and considering the amount of comments a blog gets, it would bloat it out massively.</p>
<p>My solution is to create a new table on the database and add the twitter id and email address in there, that way I only have to update the db once when a new twitter id is entered.</p>
<p>The problem I am having is creating the table! for some reason, it&#8217;s not adding it. I&#8217;ve even copied and pasted another plugins code to do it and it still wont work!</p>
<p>here&#8217;s my code :<br />
<code><br />
function atf_install() {<br />
   global $wpdb;<br />
   global $atf_db_version;<br />
   add_option("atf_db_version", $atf_db_version);</p>
<p>   $table_name = $wpdb-&gt;prefix . "wptwitipid";<br />
   if($wpdb-&gt;get_var("show tables like '$table_name'") != $table_name) {<br />
      $sql = "CREATE TABLE " . $table_name . " (<br />
      id mediumint(9) NOT NULL AUTO_INCREMENT,<br />
      email varchar(120) NOT NULL,<br />
      twitid varchar(120) NOT NULL,<br />
      KEY email (email)<br />
      );";<br />
      require_once(ABSPATH . 'wp-admin/includes/upgrade.php');<br />
      dbDelta($sql);<br />
   }<br />
}<br />
$atf_db_version = "1.0";<br />
register_activation_hook(__FILE__, 'atf_install');<br />
</code></p>
<p>There&#8217;s a problem with the $atf_db_version too. It adds an option to wp_options for the key of &#8220;atf_db_version&#8221; but no value and it&#8217;s really starting to piss me off!</p>
<p>anyone out there in geek land that can help me here?</p>
<h2>Fixed!!</h2>
<p>A massive thanks to <a href="http://twitter.com/clearskynet">@clearskynet</a> who answered and solved the problem within minutes of me posting this.</p>
<p>hurray!!</p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/having-an-issue-with-dbdelta-to-add-table-to-wp-db/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>WordPress for business bloggers book review</title>
		<link>http://fiddyp.co.uk/wordpress-for-business-bloggers-book-review/</link>
		<comments>http://fiddyp.co.uk/wordpress-for-business-bloggers-book-review/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 17:29:48 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Blog News]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[bloggers]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[profit]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fiddyp.co.uk/?p=1146</guid>
		<description><![CDATA[The nice folks at PacktPub sent me a pretty good book called &#8220;WordPress For Business Bloggers&#8221; by Paul Thewlis. I&#8217;ve been reading it for a couple of weeks [..]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ffiddyp.co.uk%2Fwordpress-for-business-bloggers-book-review%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Fwordpress-for-business-bloggers-book-review%2F&amp;source=commentluv&amp;style=normal&amp;service=bit.ly&amp;service_api=R_259b4e5679e2c431cca1f989e158bba4&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img src="http://fiddyp.co.uk/wp-content/uploads/2008/11/wp-for-business-bloggers.jpg" alt="" width="100" height="123" class="imgleft" />The nice folks at PacktPub sent me a pretty good book called &#8220;<a href="http://www.packtpub.com/wordpress-for-business-bloggers/book/mid/2411086jea0q">WordPress For Business Bloggers</a>&#8221; by <a href="http://blog.paulthewlis.com/">Paul Thewlis.</a> I&#8217;ve been reading it for a couple of weeks and it turned out to be an excellent read.</p>
<h5>Who is it for?</h5>
<p>It makes it clear in the beginning of the book that you should at least be familiar with WordPress as a blogging platform. It doesn&#8217;t expect you to know any HTML or PHP skills, just a working knowledge of the WP interface for adding posts and pages, activating plugins and general use.</p>
<p>The book says it is aimed at anyone running or starting a business blog using WordPress. It can be for PR, marketing, profit or driving traffic. Whatever you use it for, if it&#8217;s for a business then this book is for you.</p>
<p>My own addition to this is that it will be perfect for someone who runs their own personal blog and is used to people asking them blogging questions. Why? because with this book, you could move from doing minor updates to personal blogs to heading up a business blog for your workplace or local businesses. You will see why below&#8230;</p>
<h5>The Plan</h5>
<p>One of the things that really impressed me with this book was how Paul gives good examples of specifics, what makes a great blog is the first question covered in the book. It doesn&#8217;t try to explain from the beginning what a blog is which would take a whole book but instead, it gives an example of different blogs that are aimed at;</p>
<ul>
<li>Increasing sales</li>
<li>Adding value</li>
<li>A dialog with your customers</li>
<li>Raising awareness</li>
<li>Showing expertise</li>
<li>Customer Service</li>
<li>Public relations</li>
<li>Driving Traffic</li>
</ul>
<p>The first chapter will give you an excellent summary of what you will learn from reading the rest of the book including, monetization, promotion and statistics.</p>
<h5>The Case Study</h5>
<p>This is where the real value of the book comes into play. So many &#8220;how to blog&#8221; books and blogs don&#8217;t go into specifics. They go on about how you should do this and that but not exactly how to go about doing this and that!.</p>
<p>The WordPress for business bloggers book has it&#8217;s own case study site to take you from planning (including strategic goals, tactical goals and implementation) all the way through from Chapter 3 &#8211; Designing your blog, how to install to your local machine so you can develop a blog before it goes live to blog design principles, layout, typography, colors.</p>
<p>Images, video and content are all covered in chapters 4 and 5. I was really impressed by the content of these chapters, every sub heading had a gold mine of information associated with it and was able to cover a large amount of the whole blogging for business idea without getting too wordy or cluttered with random information. It&#8217;s quite clear that Paul knows an awful lot about blogging and WordPress!</p>
<p>Through each chapter you get to work on the case study and see it grow as you complete each chapter and learn how each new bit of information gets applied to a real blog.</p>
<h5>Why would you buy it?</h5>
<p>Far from being just for business bloggers, I think this book would be an excellent resource for anyone wanting to know a bit more about blogging. All the information and guidelines would be applicable to any new blog.</p>
<p>You could even use this book as a self study course, work through each chapter and follow the case study and by the end, you will not only know how to make a full site but, you will know why you put headings here, how you should respond to comments, what to do with SEO and how to apply it and much more.</p>
<p>The case study site is quite simple and will give you a good &#8216;heads up&#8217; on how to add and remove items from an existing theme so you could adapt a regular theme to word specifically for your business.<br />
The code is available to download from the packtpub website.</p>
<p>If you&#8217;re working for your company and they don&#8217;t have a blog, just the information in Chapter 1 and 2 about mapping out a strategic plan and how to implement solutions would arm you with enough &#8216;know-how&#8217; to talk your boss into getting your company into blogging. And wouldn&#8217;t it be nice if you knew just how to start? <img src='http://fiddyp.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Click here for <a href="http://www.packtpub.com/wordpress-for-business-bloggers/book/mid/2411086jea0q">WordPress For Business Bloggers</a></p>
<h2>Get ANY book from PacktPub for FREE</h2>
<p>Being the nice folks that they are, Packtpub has offered up 2 books from their vast collection as ebook downloads. My first packtpub book was an ebook and from it, I learned all that I needed to know about wordpress design so I really recommend that you enter this contest!</p>
<p><strong>Requirements</strong></p>
<ol>
<li>Visit the <a href="http://www.packtpub.com/wordpress-for-business-bloggers/book/mid/2411086jea0q">PacktPub website</a> and browse their collection and leave a comment here with what book you would like to win.<br />
(link to the books page at packtpub if you like)</li>
<li>Write about this contest on your own blog and link to this post.<br />
(it doesn&#8217;t have to be a whole post, it can be included as part of a new post but mention &#8220;wordpress for business bloggers&#8221; or &#8220;packtpub&#8221; in the paragraph and link directly to this post)</li>
</ol>
<p><strong>Details</strong><br />
Contest will run until Jan 16th 2009.<br />
Winners will be chosen by a magic script at Random.org<br />
Please use an email address that you can be contacted on when you comment, this email address will be used to receive the ebook</p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/wordpress-for-business-bloggers-book-review/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>Commentluv plugin for 2.7RC1 first beta</title>
		<link>http://fiddyp.co.uk/commentluv-plugin-for-27rc1-first-beta/</link>
		<comments>http://fiddyp.co.uk/commentluv-plugin-for-27rc1-first-beta/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 18:36:48 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Blog News]]></category>
		<category><![CDATA[2.7]]></category>
		<category><![CDATA[commentluv]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[profit]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fiddyp.co.uk/?p=1134</guid>
		<description><![CDATA[After deciding to take the day off, I managed to play a Jedi mind trick on myself. With all the pressure off for creating, my juices started flowing! [..]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ffiddyp.co.uk%2Fcommentluv-plugin-for-27rc1-first-beta%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Fcommentluv-plugin-for-27rc1-first-beta%2F&amp;source=commentluv&amp;style=normal&amp;service=bit.ly&amp;service_api=R_259b4e5679e2c431cca1f989e158bba4&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>After deciding to take the day off, I managed to play a Jedi mind trick on myself. With all the pressure off for creating, my juices started flowing!</p>
<p>I have now updated the CommentLuv WordPress plugin to work with WP2.7rc1</p>
<p>It was working before but not if you wanted to change the settings. I&#8217;ve fixed that now and added some extra checks to the javascript so it shouldn&#8217;t need any more editing of the settings other than to enter the commentluv member id number.</p>
<p><a href="http://www.commentluv.com/internal/download/commentluvajaxbeta.zip">You can download the very latest version of CommentLuv 2.6 here</a></p>
<p>It&#8217;s a beta version so you only need to download this one if you have 2.7 WordPress and you need to change the settings. Otherwise, wait for the big update to 2.7 when it happens in the new year!</p>
<p>Back to my off time!</p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/commentluv-plugin-for-27rc1-first-beta/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>A great book for wordpress theme design</title>
		<link>http://fiddyp.co.uk/a-great-book-for-wordpress-theme-design/</link>
		<comments>http://fiddyp.co.uk/a-great-book-for-wordpress-theme-design/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 16:19:58 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Audio]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[VWD elottery]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[profit]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[theme design]]></category>

		<guid isPermaLink="false">http://www.fiddyp.co.uk/?p=388</guid>
		<description><![CDATA[WordPress Theme Design &#8211; Tessa Blakeley Silver PacktPublishing Price 35.99 USD (ebook $27.19) I bought a book recently after seeing it mentioned in the WP dashboard news items, [..]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ffiddyp.co.uk%2Fa-great-book-for-wordpress-theme-design%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Fa-great-book-for-wordpress-theme-design%2F&amp;source=commentluv&amp;style=normal&amp;service=bit.ly&amp;service_api=R_259b4e5679e2c431cca1f989e158bba4&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://www.packtpub.com/wordpress-theme-design/book/mid/241108qpzy60"><img src="http://www.fiddyp.co.uk/wp-content/uploads/2008/06/wpthemedesigncover.png" alt="" width="100" height="123" class="alignnone size-full wp-image-389" /></a><br />
<strong>WordPress Theme Design &#8211; Tessa Blakeley Silver</strong><br />
<em>PacktPublishing</em><br />
<strong>Price</strong> 35.99 USD (ebook $27.19)</p>
<p>I bought a book recently after seeing it mentioned in the WP dashboard news items, it&#8217;s called WordPress Theme Design by Tessa Blakeley Silver and although a lot of the information regarding the functions of wordpress can be found at the codex, the book gives you so much more like the process gone through to design a theme from scratch.</p>
<p>I do quite a lot of sites in wordpress now and find it much easier to provide a client with a website that can be updated so easily, a few plugins here and there and you can provide a website that does all and more that&#8217;s needed.</p>
<p>Usually I get a standard theme and cut it up a bit and change the css to give me my site, or create in photoshop and send off for wordpressing but lately due to some more custom design requests I&#8217;ve received and the always dependable mistakes that freelancers can make I have wanted to do the whole thing myself from scratch..</p>
<p>I&#8217;ve downloaded a tutorial before about WP theme design from <a href="http://www.wpdesigner.com/">small potato</a> before it was taken over and that was pretty darn useful but was made a little while ago so it wasn&#8217;t 2.5 specific.</p>
<p>That&#8217;s why I like what Tessa has put her book, it takes you step by step through the process of creating a non-blog wordpress blog, from sketch to WP core code. It&#8217;s made a big difference to my initial prototyping of concept sites and has really opened my eyes to what you can do with a bit of manipulation of the wordpress template tags. I&#8217;m even working on a magazine style front page for here so I can have a featured post for contests that stays up while it&#8217;s open for entries as well as excerpts to the regular posts..</p>
<p>You can buy the book printed or get it as pdf for a bit cheaper (I printed mine out from pdf on someone elses printer lol!) at <a href="http://www.packtpub.com/wordpress-theme-design/book/mid/241108qpzy60">packet publishing</a></p>
<p><a href="http://www.packtpub.com/wordpress-for-business-bloggers/book/mid/2411086jea0q"><img src="http://fiddyp.co.uk/wp-content/uploads/2008/11/wp-for-business-bloggers.jpg" alt="" width="100" height="123" class="imgleft size-medium wp-image-1115" /></a>Packtpublishing is sending me a new book about WordPress For Business Bloggers , they&#8217;re offering a deal if you get both books together. Stay tuned for the review of the new book!</p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/a-great-book-for-wordpress-theme-design/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Some important things to note for WordPress plugin Authors</title>
		<link>http://fiddyp.co.uk/some-important-things-to-note-for-wordpress-plugin-authors/</link>
		<comments>http://fiddyp.co.uk/some-important-things-to-note-for-wordpress-plugin-authors/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 11:33:30 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[profit]]></category>
		<category><![CDATA[wp_content_dir]]></category>
		<category><![CDATA[wp_enqueue_script]]></category>
		<category><![CDATA[wp_plugin_dir]]></category>

		<guid isPermaLink="false">http://www.fiddyp.co.uk/?p=886</guid>
		<description><![CDATA[I have learned a gadoodle of information over the past 3 weeks of coding the update to CommentLuv and it would have gone a lot smoother had I [..]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ffiddyp.co.uk%2Fsome-important-things-to-note-for-wordpress-plugin-authors%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Fsome-important-things-to-note-for-wordpress-plugin-authors%2F&amp;source=commentluv&amp;style=normal&amp;service=bit.ly&amp;service_api=R_259b4e5679e2c431cca1f989e158bba4&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I have learned a gadoodle of information over the past 3 weeks of coding the update to CommentLuv and it would have gone a lot smoother had I known these 2 things.</p>
<h3>Including jQuery with wp_enqueue_script</h3>
<p>This seems to be simple at first but there is an important caveat to note.</p>
<p>You can include the jQuery library manually by echoing out a <strong>&lt;script src=&#8221;&#8230;</strong> in your plugin code which works but could cause a problem if a user has changed their wp-content location or there are other plugins including jquery which would mean it gets loaded twice or more which isn&#8217;t ideal.</p>
<p>The solution is to use <strong>wp_enqueue_script</strong> but, it needs to be put in the right place!</p>
<p>If you use the <strong>wp_head</strong> action to call a function that has wp_enqueue_script in it then the library wont be included, using wp_head is too late in the render process for WP to put in the include.</p>
<p>Instead, I put <strong>wp_enqueue_script(&#8216;jquery&#8217;);</strong> under the actions and hooks commands so it is run as early as possible in the execution of the plugin.<br />
<img src="http://fiddyp.co.uk/wp-content/uploads/2008/09/wp_enqueue_script.gif" alt="" width="500" height="178" class="aligncenter size-full wp-image-887" /></p>
<h3>The plugins directory constant wp_plugin_dir</h3>
<p>This has always tripped me up for some reason but it all became clear recently.</p>
<p>If you want to reference an image or js file in your plugins directory it is a lot better to use a constant than to put in an absolute url. I thought I had solved everything by using the constant <strong>WP_PLUGIN_DIR</strong> which works with WP2.6 and up but doesn&#8217;t work with WP2.5.1 <img src='http://fiddyp.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>What if you want to make it compatible with wp2.5? simple!, use this code in your plugin and you can use all the constants for WP2.6</p>
<p><code>if ( ! defined( 'WP_CONTENT_URL' ) )<br />
	define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' );<br />
	if ( ! defined( 'WP_CONTENT_DIR' ) )<br />
	define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );<br />
	if ( ! defined( 'WP_PLUGIN_URL' ) )<br />
	define( 'WP_PLUGIN_URL', WP_CONTENT_URL. '/plugins' );<br />
	if ( ! defined( 'WP_PLUGIN_DIR' ) )<br />
	define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );</code></p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/some-important-things-to-note-for-wordpress-plugin-authors/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

