<?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>Papermashup.com &#187; Wordpress</title>
	<atom:link href="http://papermashup.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://papermashup.com</link>
	<description>Ashley Ford :: CSS &#124; PHP &#124; JavaScript</description>
	<lastBuildDate>Wed, 07 Jul 2010 09:39:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>5 SEO tuning tips</title>
		<link>http://papermashup.com/5-seo-tuning-tips/</link>
		<comments>http://papermashup.com/5-seo-tuning-tips/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 11:39:01 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Trends]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[headline]]></category>
		<category><![CDATA[Advertising]]></category>
		<category><![CDATA[blogs]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=1312</guid>
		<description><![CDATA[If you think you can just build  a website and expect it to perform well you can think again. Getting a website to the top of search results is every marketing managers goal. Im going to run through five key points that will put you in good stead to getting the results your site deserves.  SEO is often percieved as a dark art. If you start out well and get the basics done the quality of your content should speak for itself. However ...]]></description>
			<content:encoded><![CDATA[<p>If you think you can just build  a website and expect it to perform well you can think again. Getting a website to the top of search results is every marketing managers goal. Im going to run through five key points that will put you in good stead to getting the results your site deserves.  SEO is often percieved as a dark art. If you start out well and get the basics done the quality of your content should speak for itself. However if you have a great, optimised site but your content isn&#8217;t up to scratch, your site&#8217;s not going to top the search engine results.</p>
<h3>Header tags</h3>
<p><img src="http://papermashup.com/wp-content/uploads/2009/11/h1.png" alt="h1, h2, h3 tags" title="h1, h2, h3 tags" width="582" height="185" class="alignnone size-full wp-image-1320" /></p>
<p>It&#8217;s important to workout your page structure and a hierarchy of elements. Once your page structure is determined you can go ahead and use the header tags where necessary to allow the search engines know which content is important. Usually text should be put in &#8216;p&#8217; tags with titles or headers being expressed in h1 h2 h3 h4 h5 h6 tags. There are six levels of headings in HTML with h1 being the most important and h6 the least. </p>
<h3>Meta Tags</h3>
<p><img src="http://papermashup.com/wp-content/uploads/2009/11/seo.png" alt="Papermashup Google Result" title="Papermashup Google Result" width="582" height="185" class="alignnone size-full wp-image-1313" /></p>
<p>A much disputed topic.  In particular the &#8216;keyword&#8217; tag where you can put tags or &#8216;keywords&#8217; describing your page or site content. <a href="http://googlewebmastercentral.blogspot.com/2009/09/google-does-not-use-keywords-meta-tag.html">Google recently spoke</a> out about how they no longer take into account a pages keywords as it&#8217;s an inaccurate way to determine quality content. I won&#8217;t hurt to leave any keywords in your page, but just be aware that search engines no longer rate it.</p>
<p>The meta description tag is intented to be a brief and concise summary of your page&#8217;s content. If you provide a meta description within your page it will be used as description that apears in search results. You can see an example below for a Google search of &#8216;papermashup&#8217;.</p>
<h3>Have a sitemap</h3>
<p><img src="http://papermashup.com/wp-content/uploads/2009/11/sitemap.png" alt="sitemap" title="sitemap" width="582" height="185" class="alignnone size-full wp-image-1316" /></p>
<p>In the Meta tags image above you can see the sub-links below my result in Google. These sub-links are created because I have the <a href="http://wordpress.org/extend/plugins/google-sitemap-generator/">sitemap plugin for wordpress</a> which automatically creates an XML file with links to all my posts which are given priority by a percentage. You can see my <a href="http://papermashup.com/sitemap.xml">sitemap.xml file here</a>. Then using the <a href="https://www.google.com/webmasters/tools/home?hl=en">Google Webmaster Tools</a> you can submit your sitemap.xml file which will then be indexed giving Google a better view of the structure of your sites pages.</p>
<h3>Title and Alt tags</h3>
<p><img src="http://papermashup.com/wp-content/uploads/2009/11/balloons.jpg" alt="Hot air balloons flying over San Diego" title="Hot air balloons flying over San Diego" width="582" height="185" class="alignnone size-full wp-image-1322" /></p>
<p>It goes without saying a picture paints a thousand words. Unless your a search engine. I&#8217;m sure one day google will have an algorithm that will rate your page not just on your HTML text but also images that accompany your page. For the meantime however we still need to add ALT and TITLE tags to images, not just for SEO purposes but also for accessibility and screen readers.</p>
<h3>Link Building</h3>
<p><img src="http://papermashup.com/wp-content/uploads/2009/11/link-building.jpg" alt="Papermashup.com on D-zone" title="Papermashup.com on D-zone" width="582" height="185" class="alignnone size-full wp-image-1325" /></p>
<p>Link building is all about who links to your site and who you&#8217;re linking to.  For example if a lot of websites in the web design industry link back to my site over time my posts will start popping up more regularly in google searches. I know this works because after submitting my posts to a few well known sites my traffic from search engines jumped through the roof. On average 48% of my traffic a month comes from search engines. If i had any advice for link building within web development it would be submit your blog posts to community news sites like <a href="http://dzone.com">Dzone.com</a> <a href="http://scriptandstyle.com">scriptandstyle.com</a> and <a href="http://noupe.com">noupe.com</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/5-seo-tuning-tips/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Key web development skills</title>
		<link>http://papermashup.com/key-web-development-skills/</link>
		<comments>http://papermashup.com/key-web-development-skills/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 10:53:11 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[API's]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Iphone]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[MySpace]]></category>
		<category><![CDATA[OAuth]]></category>
		<category><![CDATA[OpenID]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Social Media]]></category>
		<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[Trends]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[Widgets]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[headline]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[2009]]></category>
		<category><![CDATA[Advertising]]></category>
		<category><![CDATA[APIs]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Data Portability]]></category>
		<category><![CDATA[Del.icio.us]]></category>
		<category><![CDATA[Digg]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=1198</guid>
		<description><![CDATA[API Knowledge
A key tool for any budding web developer is API knowledge. It&#8217;s good to familiarise yourself with a variety of application interfaces. I started out using the Twitter REST API with PHP and CURL when twitter first launched the API to basically get a users tweets, pretty simple now I look back, but at the time it was the first time i&#8217;d done such a thing. As the development of social media continues this will increasingly open up opportunities to develop more and more ...]]></description>
			<content:encoded><![CDATA[<h3>API Knowledge</h3>
<p>A key tool for any budding web developer is API knowledge. It&#8217;s good to familiarise yourself with a variety of application interfaces. I started out using the Twitter REST API with PHP and CURL when twitter first launched the API to basically get a users tweets, pretty simple now I look back, but at the time it was the first time i&#8217;d done such a thing. As the development of social media continues this will increasingly open up opportunities to develop more and more applications that interact with one another and and make our daily chores more eventful.</p>
<p><img src="http://papermashup.com/wp-content/uploads/2009/11/api.jpg" alt="api" title="api" width="582" height="200" /></p>
<h3>Frameworks</h3>
<p>There&#8217;s generally a framework for just about every programming language out there. Whether you decide to learn the jQuery framework for JavaScript or Cake for PHP each one will help you succeed as a freelancer and further your career as a web developer. Frameworks in many respects take out the arduous repetitive tasks we face daily and give us more time to focus on developing cutting edge products or applications. </p>
<p><img src="http://papermashup.com/wp-content/uploads/2009/11/ruby.jpg" alt="ruby" title="ruby" width="582" height="200" /></p>
<h3>iPhone Applications</h3>
<p>Companies are Increasingly seeing the massive potential that there is in the mobile platform. Applications that are approved and make it into the Apple app store have the opportunity to be downloaded thousands of times and can potentially make a lot of money. Having a specific skill to be able to develop for this market can be very lucrative, especially in the current economic climate when companies are turning to social media to plug holes where they&#8217;re not seeing return on investment from other advertising sectors.</p>
<p><img src="http://papermashup.com/wp-content/uploads/2009/11/iphone.jpg" alt="iphone" title="iphone" width="582" height="200" /></p>
<h3>CMS Customisation</h3>
<p>A handy skill to have is a general knowledge of how to use content management systems. For example building themes and plugins for WordPress, or modules and components for Joomla and Mambo.  As a developer its important to have an idea of the structure of a variety of CMS&#8217;s. If you have a wordpress blog/site, that&#8217;s an easy way to familiarise yourself with the platform. Remember it&#8217;s always easier to learn something by immersing yourself in the technology.</p>
<p><img src="http://papermashup.com/wp-content/uploads/2009/11/wordpress.jpg" alt="wordpress" title="wordpress" width="582" height="200" /></p>
<h3>Online Payments</h3>
<p>Businesses are always going to need payment solutions online. Having the skills to take a site and integrate  paypal or google checkout will allow you to go far. We&#8217;re starting to see many 3rd party software companies setting up and selling software at more affordable prices, take <a href="http://www.panic.com/">Panic</a> for example. They are a relatively small company that develop a selection of web development software for the mac. Many new startups are settling for a product based revenue stream rather than making money purely through ads, revenue share, or partnership deals. This opens up the demand for skilled developers to be able to build payment solutions.</p>
<p><img src="http://papermashup.com/wp-content/uploads/2009/11/google-checkout.png" alt="google-checkout" title="google-checkout" width="582" height="200"/></p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/key-web-development-skills/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Steps to learning a new programming language</title>
		<link>http://papermashup.com/steps-to-learning-a-new-programming-language/</link>
		<comments>http://papermashup.com/steps-to-learning-a-new-programming-language/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 08:55:11 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[API's]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[OAuth]]></category>
		<category><![CDATA[OpenID]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Social Media]]></category>
		<category><![CDATA[Trends]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[headline]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[APIs]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=1180</guid>
		<description><![CDATA[Learning a new programming language can be daunting to say the least. I&#8217;ve recently cracked it when it comes to jQuery. I wouldn&#8217;t say Im a pro by any stretch of the imagination but I can successfully build applications. It wasn&#8217;t an easy ride learning a new syntax, I&#8217;m going to run over a few tips and techniques that i found useful learning both jQuery and PHP.
Take Time To Learn
In order to get into your new programming language you need time and commitment to perfect ...]]></description>
			<content:encoded><![CDATA[<p>Learning a new programming language can be daunting to say the least. I&#8217;ve recently cracked it when it comes to jQuery. I wouldn&#8217;t say Im a pro by any stretch of the imagination but I can successfully build applications. It wasn&#8217;t an easy ride learning a new syntax, I&#8217;m going to run over a few tips and techniques that i found useful learning both jQuery and PHP.</p>
<h3>Take Time To Learn</h3>
<p>In order to get into your new programming language you need time and commitment to perfect your new skill. Take the time to spend a day learning rather than and hour here and an hour there, you&#8217;ll learn more this way. it took me about a week to get comfortable with jQuery. I use jQuery everyday so it was relatively easy to get to grips with as the learning process was continuous, however you need sleep so your brain can de-fragment everything you&#8217;ve learnt that day.</p>
<h3>Buy a selection of books</h3>
<p>The truth is you just can&#8217;t learn a programming language in 24hrs, some books purport to teach you the basics in 24hrs. I&#8217;ve never found these books useful. I&#8217;d recommend buying a selection of books for whichever language your learning and sit down and read the basics. You&#8217;ll find some books easier to read than others so pick your books carefully. Remember you won&#8217;t be able to learn everything from a book but it&#8217;s a great starting point to start to understand the logic.</p>
<h3>Collect tutorials and demos</h3>
<p>Start building up a folder of download demos that you can refer to and reverse engineer. I find this very useful, and still do it if i want a quick fix for a project. Reading tutorials on your specific language will also give you a better understanding. generally tutorials are short and sweet and give you all the info you need to know.</p>
<h3>Bug fixing</h3>
<p>It&#8217;s inevitable that your going to run into code errors. Don&#8217;t pull your hair out, we all go through it, work through the error and go back on yourself to find out what the problem was. If your building an application, don&#8217;t just code it all then test it. Test your code as you go along, then if you find an error you&#8217;ll quickly be able to identify the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/steps-to-learning-a-new-programming-language/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Creating a JavaScript print link</title>
		<link>http://papermashup.com/creating-a-javascript-print-link/</link>
		<comments>http://papermashup.com/creating-a-javascript-print-link/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 14:13:12 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[headline]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=1125</guid>
		<description><![CDATA[How many times have you booked that holiday or purchased a new gadget and been presented with a button that says &#8216;Print your receipt&#8217;? Users generally have to be pushed into executing a physical action such as printing a receipt or confirmation letter. So to do this we can use a simple line of JavaScript that goes in the href of our link to open the print page prompt window.
It&#8217;s also worth pointing out that to get the best results, its best to create a ...]]></description>
			<content:encoded><![CDATA[<p>How many times have you booked that holiday or purchased a new gadget and been presented with a button that says <em>&#8216;Print your receipt&#8217;</em>? Users generally have to be pushed into executing a physical action such as printing a receipt or confirmation letter. So to do this we can use a simple line of JavaScript that goes in the href of our link to open the print page prompt window.</p>
<p>It&#8217;s also worth pointing out that to get the best results, its best to create a print style sheet that will format your page in a user-friendly format. Print style sheets have been around for some time yet very few sites have implemented them. </p>
<pre class="brush: css;">
&lt;link rel=&quot;stylesheet&quot; href=&quot;print.css&quot; type=&quot;text/css&quot; media=&quot;print&quot; /&gt;
</pre>
<p>Here is the code to add a print button to your site.</p>
<pre class="brush: xml;">

&lt;a href=&quot;javascript:window.print();&quot;&gt;Print Page&lt;/a&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/creating-a-javascript-print-link/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Site Theme &amp; Re-brand</title>
		<link>http://papermashup.com/new-site-theme-re-brand/</link>
		<comments>http://papermashup.com/new-site-theme-re-brand/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 14:32:29 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[headline]]></category>
		<category><![CDATA[brand]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=1102</guid>
		<description><![CDATA[I haven&#8217;t written a post for the last week, largely because I&#8217;ve been busy behind the scenes developing the new site design. The last theme i had was a standard theme that wasn&#8217;t really modified, but this time I&#8217;ve used the Arthemia theme and heavily changed it. The most important changes that I&#8217;ve made are the &#8216;Popular Tutorials&#8217; drop down section on the homepage which will change regularly with new tutorials, and the section on the right of the homepage that allows you to follow ...]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t written a post for the last week, largely because I&#8217;ve been busy behind the scenes developing the new site design. The last theme i had was a standard theme that wasn&#8217;t really modified, but this time I&#8217;ve used the <a href="http://michaelhutagalung.com/2008/05/arthemia-magazine-blog-wordpress-theme-released/">Arthemia theme</a> and heavily changed it. The most important changes that I&#8217;ve made are the &#8216;Popular Tutorials&#8217; drop down section on the homepage which will change regularly with new tutorials, and the section on the right of the homepage that allows you to follow and contact me through different networks. </p>
<p><img src="http://papermashup.com/wp-content/uploads/2009/10/tools1.png" alt="tools" title="tools" width="582" height="275" /></p>
<p>I felt that it was time for an upgrade as my traffic is going through the roof at the moment and it didn&#8217;t seem right not to have a site bespoke for my users. I&#8217;m off on holiday to Greece for the next week so i won&#8217;t be able to post a new tutorial until i get back. I wanted to launch the new design before i went away and i think i&#8217;ve fixed all the IE bugs, if you find any let me know which my shiny new contact form.</p>
<blockquote><p>One thing to point out is that I haven&#8217;t had time to change all the thumbnail images for all the posts so some images are missing, this isn&#8217;t an error, I&#8217;m aware of it. I hope to get all the thumbnails fixed when i return</p></blockquote>
<p>Let me know what you think of the new site design.</p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/new-site-theme-re-brand/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Plagiarism and how to stop image hotlinking with .htaccess</title>
		<link>http://papermashup.com/plagiarism-and-how-to-stop-image-hotlinking-with-htaccess/</link>
		<comments>http://papermashup.com/plagiarism-and-how-to-stop-image-hotlinking-with-htaccess/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 18:34:56 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[hotlinking]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=986</guid>
		<description><![CDATA[My last blog post was on how to make an autosuggest tool with jQuery, no sooner had i pressed the publish button did i find my complete blog post on guidesigner.net I had spent time and effort writing that tutorial for the people who read my blog and for the love of the internet, there&#8217;s certainly no financial gain in blogging for me, I have a few Google ads but i do it purely because i&#8217;m passionate about the internet. to find the exact post ...]]></description>
			<content:encoded><![CDATA[<p>My last blog post was on how to make an autosuggest tool with jQuery, no sooner had i pressed the publish button did i find my complete blog post on <a href="http://guidesigner.net/ajax/best-jquery-php-ajax-autosuggest-script-best-for-developers-designers/">guidesigner.net</a> I had spent time and effort writing that tutorial for the people who read my blog and for the love of the internet, there&#8217;s certainly no financial gain in blogging for me, I have a few Google ads but i do it purely because i&#8217;m passionate about the internet. to find the exact post on guidesigner.net made me livid! not only had the owner (I&#8217;m not afraid to name and shame!) Shehzad Mehmood (or on twitter <a href="http://twitter.com/shahzadvu">@shahzadvu</a>) completely copy my post word for word but he also hotlinked my download and demo images straight from my server so i was paying for the bandwidth! I would have been more sympathetic if the site had provided a link to my site along with an explanation of how the guy found my post, but nothing. It was clear to see that all this guy does is scour the internet for blog posts to copy to his site to then make money out of through well placed and sometimes intrusive advertising.</p>
<p><img src="http://papermashup.com/wp-content/uploads/2009/08/guidesigner-hotlink.jpg" alt="guidesigner-hotlink" title="guidesigner-hotlink" width="529" height="496"/></p>
<p>Rant over, i&#8217;ll tell you what i did.</p>
<p>Firstly i modified my .htaccess file with the help of <a href="http://www.davidairey.com/stop-image-theft-hotlinking-htaccess/">David Airey</a> and his great post on image hotlinking and the solution. </p>
<p>Add this to your .htaccess file and you should be in business <img src='http://papermashup.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre class="brush: xml;">
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?papermashup\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteCond %{HTTP_REFERER} !msn\. [NC]
RewriteCond %{HTTP_REFERER} !yahoo\. [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png|jpg)$ images/hotlink.jpe [L]
</pre>
<p>the code above uses the mod_rewrite module built into PHP to filter out the domain name referrer so anyone who links to an image on your domain will see (in the code aboves case) hotlink.jpe. the reason we use jpe is because jpeg and jpg are filtered out. This code however still allows Google, Microsoft, MSN, and Yahoo search engines index your site images.</p>
<h3>The result:</h3>
<p>Its entirely up to you but i stuck with <a href="http://www.davidairey.com/stop-image-theft-hotlinking-htaccess/">David Aireys</a> approach and saw it as free advertising from the people who steal content, this is the result on guidesigner.com after i implemented the changes.</p>
<p><img src="http://papermashup.com/wp-content/uploads/2009/08/hotlink.jpg" alt="hotlink" title="hotlink" width="529" height="496" /></p>
<p>Hope this helps other frustrated bloggers that have their content completely ripped from their site. </p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/plagiarism-and-how-to-stop-image-hotlinking-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Display your Feedburner stats</title>
		<link>http://papermashup.com/display-your-feedburner-stats/</link>
		<comments>http://papermashup.com/display-your-feedburner-stats/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 15:13:03 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[API's]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=649</guid>
		<description><![CDATA[I&#8217;ve been away for the last week. My wife and I bought a flat in North London and finally moved in on March 16th. So I&#8217;m currently without the internet and won&#8217;t have it until the end of March which is frustrating when I want to update my blog but simply can&#8217;t so please excuse my infrequent posts over the next few weeks.
Here&#8217;s a quick piece of code to simply display your feedburner stats on your blog. I&#8217;m yet to post my stats publicly on ...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been away for the last week. My wife and I bought a flat in North London and finally moved in on March 16th. So I&#8217;m currently without the internet and won&#8217;t have it until the end of March which is frustrating when I want to update my blog but simply can&#8217;t so please excuse my infrequent posts over the next few weeks.</p>
<p>Here&#8217;s a quick piece of code to simply display your feedburner stats on your blog. I&#8217;m yet to post my stats publicly on my blog but have seen numerous blogs with the standard feedburner badge which I think is quite ugly. So here&#8217;s how to just get the stats using PHP and CURL. You can then style it how you like.</p>
<pre>
<pre class="brush: php;">
$ch = curl_init();
//set the feed url and options plus a timeout value
$timeout=5;
curl_setopt($ch,CURLOPT_URL,'https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=AshleyFord-Papermashupcom');
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
$result = curl_exec($ch);
// get just the subscriber number using the regex function
$subscribers = get_match('/circulation=&quot;(.*)&quot;/isU',$result);

echo 'Papermashup.com has &lt;strong&gt;'.$subscribers.'&lt;/strong&gt; subscribers';

//close connection
curl_close($ch);

function get_match($regex,$result)
{
	preg_match($regex,$result,$matches);
	return $matches[1];
}
</pre>
</pre>
<p><a href="http://papermashup.com/demos/feedburner-stats/" target="_blank"><img src="http://papermashup.com/wp-content/uploads/2009/01/demo.png" alt="demo" title="demo"  /></a><a href="http://papermashup.com/demos/feedburner-stats/feedburner-stats.zip"><img src="http://papermashup.com/wp-content/uploads/2009/01/download.png" alt="download" title="download"  /></a> </p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/display-your-feedburner-stats/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Add Gravatars to your wordpress theme</title>
		<link>http://papermashup.com/add-gravatars-to-your-wordpress-theme/</link>
		<comments>http://papermashup.com/add-gravatars-to-your-wordpress-theme/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 08:02:21 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Gravitars]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=537</guid>
		<description><![CDATA[A few days ago I was looking around the internet for a solution on how to add Gravatar avatars to my WordPress comments section, and I found out that its easier than I originally thought! I thought there might be quite a bit of code to implement but found out that it requires just one line of PHP. So here are the steps to adding user Gravatars to your comments.
Step One
The first thing to do i log into your blog and under &#8216;Settings&#8217; click &#8216;Discussion&#8217; ...]]></description>
			<content:encoded><![CDATA[<p>A few days ago I was looking around the internet for a solution on how to add Gravatar avatars to my WordPress comments section, and I found out that its easier than I originally thought! I thought there might be quite a bit of code to implement but found out that it requires just one line of PHP. So here are the steps to adding user Gravatars to your comments.</p>
<p><strong>Step One</strong></p>
<p>The first thing to do i log into your blog and under &#8216;Settings&#8217; click &#8216;Discussion&#8217; scroll down to &#8216;Avatars&#8217; and make sure that you have avatars turned on as shown below.</p>
<p><img src="http://papermashup.com/wp-content/uploads/2009/03/avatars1.jpg" alt="avatars1" title="avatars1" width="529" height="451" class="alignnone size-full wp-image-538" /></p>
<p>Once the you have chosen your setup as above you are ready to add the code into your comments template.</p>
<p><strong>Step Two</strong></p>
<p>Now under &#8216;Appearance&#8217; select &#8216;Editor.&#8217; In the right hand column you should see all the files that refer to your current theme. Select &#8216;Comments comments.php&#8217; the template code for the comments section of your blog will now load in the main window where you can make changes and edit the code.</p>
<p>Dependent upon how your theme is structured you should be able to roughly work out where the comments are pulled in as in the image below. I have highlighted where i have added the line of code to pull in users avatars, each comment is placed in a list item. The Gravatar code is then added straight after the opening list item tag.</p>
<p>Add this single line of code.</p>
<pre>
<pre class="brush: php;">
&lt;?php if(function_exists('get_avatar')) { echo get_avatar($comment, '40'); } ?&gt;
</pre>
</pre>
<p><img src="http://papermashup.com/wp-content/uploads/2009/03/avatars2.jpg" alt="avatars2" title="avatars2" width="529" height="339" class="alignnone size-full wp-image-540" /></p>
<p>And that&#8217;s it! Want to see a demo? then leave a comment below and you&#8217;ll see the avatars. You will need to style the position of the avatars, size etc which is controlled by the class <strong>.avatar</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/add-gravatars-to-your-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
