<?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; plugins</title>
	<atom:link href="http://fiddyp.co.uk/tag/plugins/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>Animated DIV slide</title>
		<link>http://fiddyp.co.uk/animated-div-slide/</link>
		<comments>http://fiddyp.co.uk/animated-div-slide/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 11:36:35 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Blog News]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[HelloStumbler]]></category>
		<category><![CDATA[hidden]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[profit]]></category>
		<category><![CDATA[slide-div]]></category>
		<category><![CDATA[stumbleupon]]></category>

		<guid isPermaLink="false">http://www.fiddyp.co.uk/animated-div-slide/</guid>
		<description><![CDATA[I&#8217;ve been working with jQuery quite a lot over the past week to get the commentluv settings page up and running and get the new commentluv plugin working [..]]]></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%2Fanimated-div-slide%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Fanimated-div-slide%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 been working with jQuery quite a lot over the past week to get the commentluv settings page up and running and get the new commentluv plugin working as promised. It always amazes me at how incredibly easy it is to get it to do cool things with a web page.</p>
<p>Not just Ajax things, simple effects that allow you to take a page from a digital piece of paper to a digital pop-up book! <a href="#">Click here for an example..</a></p>
<div id="first" style="border: 1px solid #000"><img>
<p style="color:white">Look at me!</p>
<h2><a href="#">Send me back up</a></h2>
</div>
<h3>Example explained</h3>
<p>(you should have the jQuery library loaded in the head of your document, my wordpress already does this but if yours doesn&#8217;t you&#8217;ll have to put a line like this in the head of your page)<span id="more-53"></span></p>
<p><strong>step 1:</strong> create a hidden div with an id of &#8220;first&#8221; and put something in it.</p>
<pre class="brush: xml; title: ; notranslate">&lt;div id=&quot;first&quot; style=&quot;border: 1px solid #000&quot;&gt;
&lt;img&gt;&lt;p style=&quot;color:white&quot;&gt;Look at me!&lt;/p&gt;</pre>
<p>You can set the style inline with the div or your could add something like this to your style sheet</p>
<pre class="brush: xml; title: ; notranslate">#first { display: none; } </pre>
<p>Something to note, an <strong>ID=</strong> is used if it is the ONLY one, a <strong>class=</strong> is when you have more than one. If you&#8217;d used <strong>class=&#8221;first&#8221;</strong> on the div above and had an entry in your stylesheet like this</p>
<pre class="brush: xml; title: ; notranslate">.first { display: none; } </pre>
<p>then every div or img or span you gave a class of &#8220;first&#8221; to would be initially invisible.</p>
<p><strong>step 2:</strong> Now you need to trigger an event to slide the div down. That&#8217;s as simple as putting a html link with an onclick attr and use a built in jQuery effect.<br />
onclick is an attribute you can put on html objects like &#8216;a href&#8217; links or images or other parts of your page. You put the javascript or function you want running in the quotes and whenever that object is clicked, the javascript gets run.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;a href=&quot;#&quot;&gt;Click here for an example..&lt;/a&gt;</pre>
<p>Here, the javascript we want to run is <em>jQuery(&#8216;#first&#8217;).slideDown(1000);</em></p>
<p>It&#8217;s this little bit that does the magic.</p>
<p>Sometimes people use $ instead of the word jQuery which will work in most cases but here on WordPress there is the prototype library too and that uses the $ symbol for it&#8217;s calls so to be safe and get it to work without clashing with other libraries we use jQuery.</p>
<p>We call jQuery and tell it what we are targeting in the brackets. Because we are using an ID, we use &#8216;#first&#8217;. Had we used a class then we would put &#8216;.first&#8217; and then we attach the slideDown event with a speed of 1000 ms by putting .slideDown (notice the captial &#8216;D&#8217;) on the end of the target and a speed 1000 in the brackets.</p>
<p><strong>step 3:</strong> slide it back up<br />
You should be able to guess how this was done, instead of using slideDown, we used slideUp</p>
<pre class="brush: xml; title: ; notranslate">&lt;a href=&quot;#&quot;&gt;Send me back up&lt;/a&gt;&lt;/h2&gt;</pre>
<p>That&#8217;s it, easy peasy!</p>
<p><a href="http://docs.jquery.com/Main_Page">You can find out all the commands available to jQuery here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/animated-div-slide/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Is this a good idea for a contest?</title>
		<link>http://fiddyp.co.uk/is-this-a-good-idea-for-a-contest/</link>
		<comments>http://fiddyp.co.uk/is-this-a-good-idea-for-a-contest/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 11:06:59 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Blog News]]></category>
		<category><![CDATA[Blog Tools]]></category>
		<category><![CDATA[contests]]></category>
		<category><![CDATA[contest]]></category>
		<category><![CDATA[giveaway]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[profit]]></category>
		<category><![CDATA[traffic]]></category>

		<guid isPermaLink="false">http://www.fiddyp.co.uk/?p=596</guid>
		<description><![CDATA[Win your own plugin! I&#8217;ve had some phenomenal traffic and trackbacks to the CommentLuv plugin page since I made it and with all that action it has upped [..]]]></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%2Fis-this-a-good-idea-for-a-contest%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Fis-this-a-good-idea-for-a-contest%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>
<h2>Win your own plugin!</h2>
<p>I&#8217;ve had some phenomenal traffic and trackbacks to the CommentLuv plugin page since I made it and with all that action it has upped the plugin page to a PR of 6.</p>
<p>Now, I know PR isn&#8217;t so widely worshipped as much as it used to be but, PR is like money&#8230; it&#8217;s not until you have it that you realize that it&#8217;s not that important. Unless, you don&#8217;t have it and then it seems like everything will get better if only you did have it! <img src='http://fiddyp.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>So here&#8217;s an idea that could get someone the fame and fortune that comes with writing a new plugin, I&#8217;ve written a few custom plugins for this site and I thought it might be nice to run a contest for the chance for someone to be the offical site for the plugin. (beware, I have had literally thousands of comments on the commentluv page! so be prepared to get a ton of your own comments if you win)</p>
<p>The link for the plugin page on the plugins&#8217; dashboard page would point to the winners site.</p>
<p>The winners site will be the &#8216;official&#8217; place for the plugin so it will be shown in the readme, on the wordpress codex download page and anywhere else someone writes a review of the plugin. If I update the plugin then I notify you and you can update the plugin release page.</p>
<p>The choice of plugins:
<ul><span id="more-596"></span></p>
<li><strong>Contest Notify</strong><br />
This plugin checks a category and if there&#8217;s a post in it, it slides a div down containing the excerpt of the post and a link to the page. It also looks for a custom field called &#8220;prizepic&#8221; and retrieves the url of the image to be used.</p>
<p>It&#8217;s pretty basic at the moment because I just use it myself but I see some areas of improvement such as putting all the settings in it&#8217;s own dashboard page so a user can change the title and style of the box so it can be used for all sorts of featured posts instead of just contests&#8230;</li>
<li><strong>Close comments per post</strong><br />
This is a simple plugin that looks for a custom field called &#8220;closecontest&#8221; in a post and checks the date given and if the post is after that date and time, it closes the comment form. It&#8217;s really useful for time specific posts like contests or when you ask for opinions on plans you have that are about to start.</li>
<li><strong>LivingPostImage</strong>(requires Curl and Flickr API)<br />
This is a fairly adaptable plugin for putting an image into a post. yey! well, there&#8217;s a little more to it than that. It does require the user to apply for a Flickr API but that&#8217;s quite a simple process and free.</p>
<p>I call it Living because it always gets the latest public picture for the search terms given so the picture changes over time which helps to keep the posts looking like new. It can search for terms you give it or use the title of the post or the first 3 tags of the post. It outputs the html to display the picture directly or can pass back an array of url, page url and title.
</li>
<li><strong>Custom Scripts Per Post</strong><br />
Simple plugin that allows you to include javascript in the head of the page for a particular post only. It&#8217;s pretty useful if you write tutorials or you want a particularly snazzy bit of script included for just one post. Just give the path to the script in a custom field called &#8220;myscripts&#8221; and it&#8217;ll be included for that post.</li>
</ul>
<p>So, what do you think? any suggestions or ideas? I think it could turn out to be a pretty good traffic generator for someone&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/is-this-a-good-idea-for-a-contest/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Another coding frenzy successfully finished</title>
		<link>http://fiddyp.co.uk/another-coding-frenzy-successfully-finished/</link>
		<comments>http://fiddyp.co.uk/another-coding-frenzy-successfully-finished/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 22:38:03 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Blog Tools]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[profit]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fiddyp.co.uk/?p=553</guid>
		<description><![CDATA[I&#8217;ve had another few days of intensive coding and completed a few plugins that can help with the new theme. I can&#8217;t believe that only last week 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%2Fanother-coding-frenzy-successfully-finished%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Fanother-coding-frenzy-successfully-finished%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 another few days of intensive coding and completed a few plugins that can help with the new theme.</p>
<p>I can&#8217;t believe that only last week I was feeling burnt out with coding! All I needed was a little &#8220;I wonder if I could &#8230;&#8221; php demon in my ear and I was off. Everything else has suffered though, I have barely talked to anyone in the past 3 days. I haven&#8217;t even answered any text messages! lol. I must be a hermit <img src='http://fiddyp.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Here&#8217;s what I&#8217;ve been up to:</p>
<p><span id="more-553"></span></p>
<ol>
<li><strong>new plugin:</strong> Custom scripts per post<br />
It&#8217;s not good to have unnecessary javascript includes loading on every page if only 1 page or post uses it so I wrote this to allow me to have tutorial or example posts that use custom javascript included in the head of the page. Now if I want to include some javascript on a particular post (<a href="http://www.fiddyp.co.uk/commentluv-wordpress-plugin/#checkCL">like the CommentLuv check</a>) then I just add the urls to the custom field of the post entry page. Sweet.</li>
<li><strong>new plugin:</strong> Close comments on a particular post after a given date<br />
This was inspired from the regular contests I run. Especially ones that are time specific. Now I just add a custom field with the date and time I want comments to be closed. The plugin does all the checking and displays a message below the form to say when comments will be closed</li>
<li><strong>new plugin:</strong> Notify box for current contests<br />
I especially like this one, it displays a sliding div notifying the surfer if there is a contest open. I just select the category &#8220;current_contest&#8221; on the new post I want to be displayed. This allows me to have a contest open and still be able to add new posts without the contest post going out of focus, plus I think it looks pretty cool!</li>
<li><strong>updated plugin:</strong> Retreive a picture from Flickr<br />
I&#8217;ve updated this so I can spit out a picture from flicker by searching for terms given, title of the post, tags of the post or even just a random one. I added the ability to output directly including a given class with one echo command.</li>
<li><strong>updated theme:</strong> front page code<br />
I added a check to see if a post has a specific image url in it&#8217;s custom fields, if it has then it uses that instead of the flickr search</li>
<li><strong>updated plugin:</strong> Lotto results display<br />
I changed the parsing routine so it doesn&#8217;t get tripped up by strange things in the source of the source</li>
<li><strong>updated theme</strong>: Fat boy!<br />
I widened the main content area so code can be displayed nicely. Plus it looked a little thin!</li>
</ol>
<p>Not bad, I even finished before the weekend. Now I have no more excuses to get on with &#8216;real work&#8217; lol!</p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/another-coding-frenzy-successfully-finished/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>CommentLuv gets CommentSmothered!</title>
		<link>http://fiddyp.co.uk/fix-wordpress-500-internal-server-error/</link>
		<comments>http://fiddyp.co.uk/fix-wordpress-500-internal-server-error/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 11:05:04 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Blog News]]></category>
		<category><![CDATA[500 internal server error]]></category>
		<category><![CDATA[commentluv]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[profit]]></category>
		<category><![CDATA[sh-autolink]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fiddyp.co.uk/fix-wordpress-500-internal-server-error/</guid>
		<description><![CDATA[I tried to respond to a comment on my CommentLuv plugin page this morning, and I was greeted with this error, 500 Error — Internal Server Error. There [..]]]></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%2Ffix-wordpress-500-internal-server-error%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Ffix-wordpress-500-internal-server-error%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 tried to respond to a comment on my CommentLuv plugin page this morning, and I was greeted with this error,<br />
<strong>500 Error — Internal Server Error. There has been an internal server error</strong><br />
oh noes!! The site was working fine for the main index page but single posts kept on throwing up a 500 error <img src='http://fiddyp.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>I had a quick search of the WordPress forums and found a variety of posts from people experiencing the same problem, each one with a different solution. I went through each solution until I revived the site back to it&#8217;s normal functionality.. here&#8217;s what I did..</p>
<ol>
<li><strong>.htaccess</strong><br />
Some people had the problem because their htaccess file was not writable or their server had mod_rewrite disabled. I tried deleting the htaccess file and then going back to &#8216;options/permalinks&#8217; and updating the permalink structure. The update went through with no problems (sometimes it will say &#8220;could not update htaccess&#8221; which means it is not writable by the server). The problem still persisted though..</li>
<li><strong>wp-cache</strong><br />
I thought it might be a cache problem seeing as the CommentLuv page gets so many visitors (it has a pr5 too!), I disabled the cache plugin.<br />
still no joy&#8230;</li>
<li><strong>php.ini &#8211; only 8m of memory?</strong><br />
I thought it might be too much memory used (I was close) so I edited php.ini in the root of my hosting folder and put this line in.<br />
<strong>memory_limit=16M</strong><br />
Not successful <img src='http://fiddyp.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </li>
<li><strong>Too much content?</strong><br />
I tried browsing to the CommentLuv page on my mobile phone once and it crashed with &#8220;out of memory&#8221; error and considering it has (atm) 199 responses, I thought that might be something to do with it. I know my stats sometimes give me a 500 internal server error when it takes a long time to load so that looked to be the problem.<br />
I downloaded a plugin called &#8216;<a href="http://www.keyvan.net/code/paged-comments/">paged-comments</a>&#8216; and installed it, I particularly like the way you can stop it from paging every post and only choose which posts need paged comments by adding a custom field to the post editing screen.</p>
<p>Sorted that out and tried to view the page, it loaded partly! almost there!</li>
<li><strong>Plugin memory hog.</strong><br />
On the nearly loaded page there was an out of memory error relating to <a href="http://www.rockschtar.de/wp-plugin-sh-autolink/">sh-autolink</a> (a plugin which automatically makes certain words in to html links) so I disabled that and SUCCESS!<br />
It all works fine now.</li>
</ol>
<p>A combination of too many comments and a plugin that scans the whole text for keywords led to my 500 internal server error for WordPress, it&#8217;s now fixed with a neat plugin and a quick removal of another. phew!</p>
<p>The CommentLuv plugin page is now up and working fine again, I never realized that it would get so much attention when I first drafted it. Thanks everyone for using CommentLuv!</p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/fix-wordpress-500-internal-server-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

