<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - paulgrenwood</title>
<link>http://snipplr.com/users/paulgrenwood</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 03:30:53 GMT</pubDate>
<item>
<title>(PHP) WordPress YouTube Z-Index Fix</title>
<link>http://snipplr.com/view/57789/wordpress-youtube-zindex-fix/</link>
<description><![CDATA[ <p>WordPress allows you to embed videos so easily using oEmbed. You can easily add videos to your post just pasting their URL to your post. WordPress handles all the object and embed HTML for you. But this code is missing wmode parameter which is necessary for CSS z-index to work.


Here I will show you how to filter the HTML for the embedded video and add this parameter so easily. For this we will use the oembed_dataparse filter which is run when a user adds a video to the post. Place the following code in your theme's functions.php file:</p> ]]></description>
<pubDate>Fri, 12 Aug 2011 19:38:19 GMT</pubDate>
<guid>http://snipplr.com/view/57789/wordpress-youtube-zindex-fix/</guid>
</item>
<item>
<title>(PHP) Display Current Year with PHP</title>
<link>http://snipplr.com/view/27339/display-current-year-with-php/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 29 Jan 2010 18:30:15 GMT</pubDate>
<guid>http://snipplr.com/view/27339/display-current-year-with-php/</guid>
</item>
<item>
<title>(HTML) IE6 No More</title>
<link>http://snipplr.com/view/23079/ie6-no-more/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 13 Nov 2009 14:22:00 GMT</pubDate>
<guid>http://snipplr.com/view/23079/ie6-no-more/</guid>
</item>
<item>
<title>(CSS) Image Clip</title>
<link>http://snipplr.com/view/22878/image-clip/</link>
<description><![CDATA[ <p>The clip property is like a mask. It allows you to mask the content of an element in a rectangle shape. To clip an element: you must specify the position to absolute. Then, specify the top, right, bottom, and left value relative to the element.</p> ]]></description>
<pubDate>Tue, 10 Nov 2009 17:14:18 GMT</pubDate>
<guid>http://snipplr.com/view/22878/image-clip/</guid>
</item>
<item>
<title>(JavaScript) Show Most Recent Flickr Uploads</title>
<link>http://snipplr.com/view/22484/show-most-recent-flickr-uploads/</link>
<description><![CDATA[ <p>This code will display the most recent uploads from Flickr for any account. Replace the “35591378@N03″ (the Whitehouse account) in the code below with the ID of the account you are fetching from. Use http://idgettr.com/ if you need help finding it. Alter the “9″ in the loop to show more or less than 10.</p> ]]></description>
<pubDate>Wed, 04 Nov 2009 11:22:52 GMT</pubDate>
<guid>http://snipplr.com/view/22484/show-most-recent-flickr-uploads/</guid>
</item>
<item>
<title>(PHP) Randomize Background Image</title>
<link>http://snipplr.com/view/21986/randomize-background-image/</link>
<description><![CDATA[ <p>Set up and array of filenames, which correspond to the file names of the images you are trying to randomize.</p> ]]></description>
<pubDate>Tue, 27 Oct 2009 16:14:28 GMT</pubDate>
<guid>http://snipplr.com/view/21986/randomize-background-image/</guid>
</item>
<item>
<title>(CSS) Select List Item only if it Doesn't Contain another List (and is top level)</title>
<link>http://snipplr.com/view/20707/select-list-item-only-if-it-doesnt-contain-another-list-and-is-top-level/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 06 Oct 2009 08:55:57 GMT</pubDate>
<guid>http://snipplr.com/view/20707/select-list-item-only-if-it-doesnt-contain-another-list-and-is-top-level/</guid>
</item>
<item>
<title>(PHP) Cleaning Variables</title>
<link>http://snipplr.com/view/20469/cleaning-variables/</link>
<description><![CDATA[ <p>Variables that are submitted via web forms always need to be cleaned/sanitized before use in any way, to prevent against all kinds of different malicious intent.</p> ]]></description>
<pubDate>Wed, 30 Sep 2009 08:54:37 GMT</pubDate>
<guid>http://snipplr.com/view/20469/cleaning-variables/</guid>
</item>
<item>
<title>(PHP) PHP Redirect</title>
<link>http://snipplr.com/view/20467/php-redirect/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 30 Sep 2009 08:52:24 GMT</pubDate>
<guid>http://snipplr.com/view/20467/php-redirect/</guid>
</item>
<item>
<title>(JavaScript) Use Firebug in Any Browser</title>
<link>http://snipplr.com/view/20466/use-firebug-in-any-browser/</link>
<description><![CDATA[ <p>Just include this script on the site and you’ll get a Firebug console that pops up for debugging in any browser. Not quite as full featured but it’s still pretty helpful! Remember to remove it when you are done.</p> ]]></description>
<pubDate>Wed, 30 Sep 2009 08:51:42 GMT</pubDate>
<guid>http://snipplr.com/view/20466/use-firebug-in-any-browser/</guid>
</item>
<item>
<title>(PHP) How to Code a Signup Form with Email Confirmation</title>
<link>http://snipplr.com/view/20418/how-to-code-a-signup-form-with-email-confirmation/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 29 Sep 2009 10:30:19 GMT</pubDate>
<guid>http://snipplr.com/view/20418/how-to-code-a-signup-form-with-email-confirmation/</guid>
</item>
<item>
<title>(HTML) Placing a Flickr Slideshow</title>
<link>http://snipplr.com/view/20166/placing-a-flickr-slideshow/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 23 Sep 2009 16:41:46 GMT</pubDate>
<guid>http://snipplr.com/view/20166/placing-a-flickr-slideshow/</guid>
</item>
<item>
<title>(HTML) Country Select HTML</title>
<link>http://snipplr.com/view/20165/country-select-html/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 23 Sep 2009 16:40:08 GMT</pubDate>
<guid>http://snipplr.com/view/20165/country-select-html/</guid>
</item>
<item>
<title>(PHP) Add a print button to your blog's articles</title>
<link>http://snipplr.com/view/20164/add-a-print-button-to-your-blogs-articles/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 23 Sep 2009 16:32:01 GMT</pubDate>
<guid>http://snipplr.com/view/20164/add-a-print-button-to-your-blogs-articles/</guid>
</item>
<item>
<title>(PHP) Exclude a category from the homepage</title>
<link>http://snipplr.com/view/20163/exclude-a-category-from-the-homepage/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 23 Sep 2009 16:30:20 GMT</pubDate>
<guid>http://snipplr.com/view/20163/exclude-a-category-from-the-homepage/</guid>
</item>
<item>
<title>(PHP) Custom Fields - SEO Your Title Tag</title>
<link>http://snipplr.com/view/20160/custom-fields--seo-your-title-tag/</link>
<description><![CDATA[ <p>Search Engine Optimisation, or SEO is something that a lot of bloggers get obsessed about, whilst others think it’s a load of rubbish. I’m halfway between the two – whilst I believe that you can change certain things to better SEO your content, such as adding H1, H2 etc tags in the appropriate places, I personally don’t think you should get too carried away with it. One of the things you can do though is change your title tag, and this custom field trick will let you set a custom field and it’ll appear as your title tag. Add the code below to your header.php file:</p> ]]></description>
<pubDate>Wed, 23 Sep 2009 16:05:36 GMT</pubDate>
<guid>http://snipplr.com/view/20160/custom-fields--seo-your-title-tag/</guid>
</item>
<item>
<title>(PHP) Custom Fields - Display a thumbnail (and auto resize it)</title>
<link>http://snipplr.com/view/20159/custom-fields--display-a-thumbnail-and-auto-resize-it/</link>
<description><![CDATA[ <p>Whilst there are a number of ways of displaying thumbnails, this is still my favourite (even if it does require the most work!). First, upload timthumb to /wp-content/themes/yourtheme/ and create an image 250px by 250px with your site’s logo and upload it to yourtheme/images/. This is the image that will be displayed if no custom field is displayed. Then, for every thumbnail, you’ll need to create it in Photoshop and upload it to your blog. Next, create a custom field ‘Image’ with the path of the image as the value of the custom field. Now for the code:</p> ]]></description>
<pubDate>Wed, 23 Sep 2009 16:04:25 GMT</pubDate>
<guid>http://snipplr.com/view/20159/custom-fields--display-a-thumbnail-and-auto-resize-it/</guid>
</item>
<item>
<title>(PHP) Custom Fields - Create a Post Series</title>
<link>http://snipplr.com/view/20157/custom-fields--create-a-post-series/</link>
<description><![CDATA[ <p>This is something that I wished I’d thought of a long time ago – show other posts in the same series using not a plugin but custom fields. All you’ve got to do for this trick to work is create a custom field ‘Series’ with a link to each other post in the series. Each post must be a seperate custom field. Then, use the code below to display all the other posts in the same series!</p> ]]></description>
<pubDate>Wed, 23 Sep 2009 16:03:35 GMT</pubDate>
<guid>http://snipplr.com/view/20157/custom-fields--create-a-post-series/</guid>
</item>
<item>
<title>(PHP) Allow Visitors to Email Posts to Their Friends</title>
<link>http://snipplr.com/view/20156/allow-visitors-to-email-posts-to-their-friends/</link>
<description><![CDATA[ <p>Allow Visitors to Email Posts to Their Friends</p> ]]></description>
<pubDate>Wed, 23 Sep 2009 16:02:57 GMT</pubDate>
<guid>http://snipplr.com/view/20156/allow-visitors-to-email-posts-to-their-friends/</guid>
</item>
<item>
<title>(PHP) Add Custom Bookmark Links</title>
<link>http://snipplr.com/view/20155/add-custom-bookmark-links/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 23 Sep 2009 16:02:12 GMT</pubDate>
<guid>http://snipplr.com/view/20155/add-custom-bookmark-links/</guid>
</item>
</channel>
</rss>