
<?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>Green Complexwordpress | Green Complex</title>
	<atom:link href="http://green.cx/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://green.cx</link>
	<description></description>
	<lastBuildDate>Fri, 23 Dec 2011 17:12:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Broken ms-files.php in WordPress corrupting images</title>
		<link>http://green.cx/web-resources/wordpress-web-resources/broken-ms-files-php-in-wordpress-corrupting-images/</link>
		<comments>http://green.cx/web-resources/wordpress-web-resources/broken-ms-files-php-in-wordpress-corrupting-images/#comments</comments>
		<pubDate>Sat, 10 Dec 2011 06:21:12 +0000</pubDate>
		<dc:creator>+Jason</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://green.cx/?p=2531</guid>
		<description><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/77.original.png" width="659" height="87" alt="" title="Troubleshooting" /><br/>I upgraded nginx on my server and all was well, or so I thought&#8230;. (TL;DR at the bottom) Feeling good about my self I patted my back and went to bed. The next day I was writing a new post when after uploading a photo to WordPress it did not load in the editor. So after a [...]]]></description>
			<content:encoded><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/77.original.png" width="659" height="87" alt="" title="Troubleshooting" /><br/><div id="attachment_1250" class="wp-caption alignleft" style="width: 160px"><a href="http://green.cx/files/2010/04/wordpress-logo.jpg"><img class="size-thumbnail wp-image-1250" title="wordpress-logo" src="http://green.cx/files/2010/04/wordpress-logo-150x150.jpg" alt="" width="150" height="150" /></a><p class="wp-caption-text">Wordpress 3.0 + Nginx </p></div>
<p>I upgraded nginx on my server and all was well, or so I thought&#8230;. (TL;DR at the bottom)</p>
<p>Feeling good about my self I patted my back and went to bed. The next day I was writing a new post when after uploading a photo to WordPress it did not load in the editor. So after a little struggling I figured out why non of the images from the /files/ directory in wordpress were working, but not until after I gave up trying to find the answer in Google.</p>
<p>I tried Googling all this to no avail: (Hopefully this will help some other Googler out there)</p>
<ul>
<li><strong>Ngnix not rewriting ms-files.php properly</strong></li>
<li>my nginx default conf for wordpress was faulty</li>
<li><strong>no errors in php for ms-files.php WPMU</strong></li>
<li><em><strong>ms-files.php corrupting images WPMU</strong></em></li>
<li>ms-files.php white (blank) screen of death</li>
</ul>
<div>After exhaustive rebuilding nginx config files for WordPress MU  I finally went back to poking at the blank screen&#8230;</div>
<div>When I loaded up Firefox I got &#8220;The image cannot be displayed because it contains errors&#8221; so I saved the file, and to my surprise is was actually a jpg full of data! And at first it looked fine, but as it turned out, is was incomplete. So I went back to Google and found a bug on the WordPress Core Trac Bug Reports.  <a title='Original Link: http://core.trac.wordpress.org/ticket/14730'  href="http://green.cx/?TieauOIL">http://core.trac.wordpress.org/ticket/14730</a></div>
<div>Eureka moment! As it turns out it was a known bug, by an unknown cause! I know mine was caused by upgrading nginx on ubuntu Lucid, and commenting out this line in fastcgi_prams config file. <em># fastcgi_param HTTPS $server_https;</em> It was added, and broke things so it was uneeded. But I think that as a side effect, it was truncating the output of ms-files.php.</div>
<div>TL;DR</div>
<div>So anyway the solution was a simple patch for ms-files.php to clear the buffers before and after reading the image file. (The entire patch is below, and goes at the very end of the file)</div>
<blockquote>
<div>
<table summary="Differences" cellspacing="0">
<thead>
<tr>
<th title="File wp-includes/ms-files.php"></th>
<td><em></em></td>
</tr>
</thead>
<tbody>
<tr>
<th>79</th>
<th>79</th>
<td>}</td>
</tr>
<tr>
<th>80</th>
<th>80</th>
<td></td>
</tr>
<tr>
<th>81</th>
<th>81</th>
<td>// If we made it this far, just serve the file</td>
</tr>
</tbody>
<tbody>
<tr>
<th></th>
<th>82</th>
<td><ins>ob_clean();</ins></td>
</tr>
<tr>
<th></th>
<th>83</th>
<td><ins>flush();</ins></td>
</tr>
</tbody>
<tbody>
<tr>
<th>82</th>
<th>84</th>
<td>readfile( $file );</td>
</tr>
</tbody>
<tbody>
<tr>
<th></th>
<th>85</th>
<td><ins>flush();</ins></td>
</tr>
</tbody>
<tbody>
<tr>
<th>83</th>
<th>86</th>
<td>?&gt;</td>
</tr>
</tbody>
</table>
</div>
</blockquote>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>]]></content:encoded>
			<wfw:commentRss>http://green.cx/web-resources/wordpress-web-resources/broken-ms-files-php-in-wordpress-corrupting-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anatomy of a WordPress Theme</title>
		<link>http://green.cx/web-resources/anatomy-of-a-wordpress-theme/</link>
		<comments>http://green.cx/web-resources/anatomy-of-a-wordpress-theme/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 20:23:43 +0000</pubDate>
		<dc:creator>+Jason</dc:creator>
				<category><![CDATA[Cheat Sheets]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Guides]]></category>
		<category><![CDATA[Web Stuff]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[factsheet]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://green.cx/?p=2342</guid>
		<description><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/52.original.png" width="659" height="87" alt="" title="Guides" /><img src="http://green.cx/wp-content/blogs.dir/1/category-images/40.original.png" width="659" height="87" alt="" title="Web Stuff" /><br/>Yoast had this great info graphic about wordpress I just had to share with everyone. I reposted here for posterity&#8217;s sake because I think this would be usefull down the line for reference as well. Although this does do a great job of going through all the caveats to a traditional theme, not all theme adhere to this model. Some WordPress themes range from very [...]]]></description>
			<content:encoded><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/52.original.png" width="659" height="87" alt="" title="Guides" /><img src="http://green.cx/wp-content/blogs.dir/1/category-images/40.original.png" width="659" height="87" alt="" title="Web Stuff" /><br/><p>Yoast had this great info graphic about wordpress I just had to share with everyone. I reposted here for posterity&#8217;s sake because I think this would be usefull down the line for reference as well. Although this does do a great job of going through all the caveats to a traditional theme, not all theme adhere to this model. Some WordPress themes range from very creative to the totally bizarre. I recently wrote a theme that doesn&#8217;t strictly adhere to this mantra because of the unique requirements of the design, I took a not so traditional approach, but it was all for the ease of use for the blogger.</p>
<p><a href="http://green.cx/files/2011/03/anatomy-wordpress-yoast.png"><img class="aligncenter size-full wp-image-2343" title="anatomy-wordpress-yoast" src="http://green.cx/files/2011/03/anatomy-wordpress-yoast.png" alt="" width="570" height="3045" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://green.cx/web-resources/anatomy-of-a-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Theme: 2Clone</title>
		<link>http://green.cx/web-resources/free-theme-2clone/</link>
		<comments>http://green.cx/web-resources/free-theme-2clone/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 08:22:26 +0000</pubDate>
		<dc:creator>+Jason</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Fun Stuff]]></category>
		<category><![CDATA[Web Stuff]]></category>
		<category><![CDATA[Wordpress Themes]]></category>
		<category><![CDATA[2Clone]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Style Sheet]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://green.cx/?p=2325</guid>
		<description><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/40.original.png" width="659" height="87" alt="" title="Web Stuff" /><br/>Well I got bored one night, and you know how bored evenings can go and I created a Shiny new WordPress 3+ theme named 2Clone. TL;DR&#8230; Goto bottom for Demo and Download Links Why? I&#8217;ve been thinking of 2leep a lot lately and thought that their layout would make for an interesting theme. So I [...]]]></description>
			<content:encoded><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/40.original.png" width="659" height="87" alt="" title="Web Stuff" /><br/><p>Well I got bored one night, and you know how bored evenings can go <img src='http://green.cx/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  and I created a Shiny new <a class="zem_slink" title="WordPress" rel="homepage" title='Original Link: http://wordpress.org'  href="http://green.cx/?7t4QWBGV">WordPress 3+</a> theme named 2Clone.</p>
<p style="text-align: center;"><strong>TL;DR&#8230; Goto bottom for Demo and Download <a title="Links" href="http://green.cx/links/">Links</a></strong></p>
<h1 style="text-align: left;"><strong>Why?</strong></h1>
<p>I&#8217;ve been thinking of <a title='Original Link: http://2leep.com'  href="http://green.cx/?yUGmUELy" target="_blank">2leep</a> a lot lately and thought that their layout would make for an interesting theme. So I set out on making it into a wordpress theme, cause it looked like it would be easy and a good place to start off as my first theme. Yes, this is my first WordPress Theme I&#8217;ve ever released, so be kind, but any pointers is appreciated. The concept behind this theme is not to make a link exchange, or to spoof 2leep. It&#8217;s actually a pretty neat theme when you start playing with it. Contributions are also welcome, in the form of code or cash! Just let me know what you think in the comments!</p>
<h2>Features</h2>
<ul>
<li><strong>Full Auto Thumbnails</strong>. Don&#8217;t worry about them, other than setting the cache folder to 777</li>
<li>Front Page sorts posts by Comments, Most Views,Randomly(Shuffle) and by Newest<br />
(Tracked Automatically via Custom Post MetaData aka Custom Fields)</li>
<li>Custom Menu for the Top nav. Simpley choose what categories you want and add them to the menu.</li>
<li>Best Ever, just add any post to a category called &#8220;Featured&#8221; and it gets on the front page.<br />
(Similar to sticky posts, but the posts are kept seperate)</li>
<li><strong>VERY</strong> <em>Minimal</em> theme, <strong><em>only Two images, and one css file</em>!</strong></li>
<li>Colors easy to change, only two green colors in css, find and replace for whole new look!</li>
<li>7 Widget areas, Sidebar 1, Sidebar 2, Pre Header, Header,Pre Article,Post Article, Footer</li>
<li>WordPress 3 Required for Menus and Post Queries</li>
<li>A Very  Simple Theme, means few files to edit, and loads very fast! My own demo site loads in under 2 seconds, without caching!</li>
</ul>
<p>The Second Menu (menu2.php) Has 5 Hard-coded <a title="links" href="http://green.cx/links/">links</a>:</p>
<ul>
<li><strong>New</strong> &#8211; Newest posts on top.</li>
<li><strong>Lately Popular</strong> &#8211; Shows Posts with most views on top (Uses Custom Field to store post views, so the number of views can be edited if desired)</li>
<li><strong>Shuffle</strong> &#8211; Shows Random Posts.</li>
<li><strong>Best Ever</strong> &#8211; Shows the &#8220;Featured&#8221; category. Requires Slug to be /category/Featured/ &#8211; changable via menu2.php.</li>
<li><strong>Commented</strong> &#8211; Shows posts with most comments on top.</li>
</ul>
<p>All of the above was achieved via WordPress 3 api&#8217;s, so <strong>NO PLUGINS REQUIRED</strong>! Woot!!</p>
<p><em>Creative Commons Attribution Required</em>. All free things come with strings attached now-a-days, so just leave the footer <a title="links" href="http://green.cx/links/">links</a> alone. That&#8217;s all there is to it! I&#8217;m thinking about selling a no Attribution version for those interested.</p>
<h1>Planned Features to come:</h1>
<ul>
<li>Random Posts Widget for the sidebars</li>
<li>Custom Category and Tag pages to mimmik the out pages</li>
<li>Custom Post Templates, for making posts the redirect to external urls if desired or to look different.</li>
<li>RSS <a title="Links" href="http://green.cx/links/">Links</a></li>
<li>Better  Comments</li>
<li>Post Ratings? Maybe&#8230;</li>
<li>?? Open to suggestions ??</li>
</ul>
<h2><strong>Installation</strong></h2>
<p>Simple themes require a little more footwork to setup, so after you upload it, let&#8217;s get it on with a checklist!</p>
<ul>
<li>Step 1: Logo! Change it by replacing /images/2logo.jpg with your own!</li>
<li>Step 2: <a class="zem_slink" title="Chmod" rel="wikipedia" title='Original Link: http://en.wikipedia.org/wiki/Chmod'  href="http://green.cx/?uCRv2wnD">CHMOD</a> the cache folder to 777 this is where timthumb saves thumbnails to make your site load faster.</li>
<li>Step 3: Create a Menu, and save it as the Primary menu.  ( Apearance -&gt; Menus )</li>
</ul>
<p>&nbsp;</p>
<p>Colorization</p>
<ul>
<li>Edit style.css and do a Find/Replace on #66AE3E to change the theme color.</li>
<li>Article box hover color is #d3eac7 in the <a class="zem_slink" title="Cascading Style Sheets" rel="wikipedia" title='Original Link: http://en.wikipedia.org/wiki/Cascading_Style_Sheets'  href="http://green.cx/?KyNAnYOk">CSS</a> to change</li>
</ul>
<p>&nbsp;</p>
<h2>Screenshots</h2>
<p><a href="http://green.cx/files/2011/03/2Clone-Home.png"><img class="aligncenter size-large wp-image-2334" title="2Clone - Home" src="http://green.cx/files/2011/03/2Clone-Home-600x768.png" alt="" width="600" height="768" /></a></p>
<h2>Demo &amp; Download</h2>
<a href='http://2clone.green.cx' class='small-button smallgreen'><span>View 2Clone Live Demo</span></a>
<a href='http://bit.ly/2clone' class='small-button smallblue'><span>Download 2Clone WordPress Theme</span></a>
<p>&nbsp;</p>]]></content:encoded>
			<wfw:commentRss>http://green.cx/web-resources/free-theme-2clone/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Protected: Is a bump in traffic worth adding a widget?</title>
		<link>http://green.cx/web-resources/online-tools/is-a-bump-in-traffic-worth-adding-a-widget/</link>
		<comments>http://green.cx/web-resources/online-tools/is-a-bump-in-traffic-worth-adding-a-widget/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 07:51:27 +0000</pubDate>
		<dc:creator>+Jason</dc:creator>
				<category><![CDATA[Web Services]]></category>
		<category><![CDATA[Web Stuff]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[Promotion]]></category>
		<category><![CDATA[Traffic exchange]]></category>
		<category><![CDATA[Web Design and Development]]></category>
		<category><![CDATA[Web widget]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://green.cx/?p=2253</guid>
		<description><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/20.original.png" width="659" height="87" alt="" title="Web Services" /><img src="http://green.cx/wp-content/blogs.dir/1/category-images/40.original.png" width="659" height="87" alt="" title="Web Stuff" /><br/>There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/20.original.png" width="659" height="87" alt="" title="Web Services" /><img src="http://green.cx/wp-content/blogs.dir/1/category-images/40.original.png" width="659" height="87" alt="" title="Web Stuff" /><br/><form action="http://green.cx/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-2253">Password:<br />
<input name="post_password" id="pwbox-2253" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>]]></content:encoded>
			<wfw:commentRss>http://green.cx/web-resources/online-tools/is-a-bump-in-traffic-worth-adding-a-widget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uploading images without a file extension to WP</title>
		<link>http://green.cx/web-resources/wordpress-web-resources/uploading-images-without-a-file-extension-to-wordpress/</link>
		<comments>http://green.cx/web-resources/wordpress-web-resources/uploading-images-without-a-file-extension-to-wordpress/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 15:14:16 +0000</pubDate>
		<dc:creator>+Jason</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[content filter]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://green.cx/?p=1656</guid>
		<description><![CDATA[<br/>WP Core hacking I used this code recently to hack wordpress&#8217;s core to allow image uploads that have no file extension. I was getting a invalid file type security error and had tried all sorts of httaccess trickery to get it to work when I finally resorted to hacking the core of WordPress MU 3.0. [...]]]></description>
			<content:encoded><![CDATA[<br/><h3>WP Core hacking</h3>
<p>I used this code recently to hack wordpress&#8217;s core to allow image uploads that have no file extension.</p>
<p><span id="more-1656"></span></p>
<p><a href="http://green.cx/files/2010/04/wordpress-logo.jpg"><img class="size-thumbnail wp-image-1250 alignleft" title="wordpress-logo" src="http://green.cx/files/2010/04/wordpress-logo-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>I was getting a invalid file type security error and had tried all sorts of httaccess trickery to get it to work when I finally resorted to hacking the core of WordPress MU 3.0. This is pretty easy as I found out and only required me to add one line of code. Some of the issues I&#8217;m having are that the file size isn&#8217;t reported and neither is the dimensions. Any advice or a way for me to make this into a plugin would be very nice, as I&#8217;ve never made a wordpress plugin before.</p>
<p>In <strong>wp-includes/functions.php</strong> find line <strong>#2359</strong> and look for this code, and make it look like the code below.</p>
<pre>function wp_check_filetype( $filename, $mimes = null ) {
	if ( empty($mimes) )
		$mimes = get_allowed_mime_types();
	$type = false;
	$ext = false;

	foreach ( $mimes as $ext_preg =&gt; $mime_match ) {
		$ext_preg = '!.(' . $ext_preg . ')$!i';
		if ( preg_match( $ext_preg, $filename, $ext_matches ) ) {
			$type = $mime_match;
			$ext = $ext_matches[1];
			break;
		}
	}
<span style="color: #339966;">// http://Green.cx (Allow Uploading of Images without Extension )
if ($ext==''){$ext='jpg'; $type='image/jpg';}
// End WordPress Core Hack</span>
	return compact( 'ext', 'type' );
}</pre>]]></content:encoded>
			<wfw:commentRss>http://green.cx/web-resources/wordpress-web-resources/uploading-images-without-a-file-extension-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Thumbnails to FB Recommend Social Plugin</title>
		<link>http://green.cx/guides/add-thumbnails-to-facebook-recommend-social-plugin/</link>
		<comments>http://green.cx/guides/add-thumbnails-to-facebook-recommend-social-plugin/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 04:30:50 +0000</pubDate>
		<dc:creator>+Jason</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://green.cx/?p=1605</guid>
		<description><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/52.original.png" width="659" height="87" alt="" title="Guides" /><br/>Adding icons from your wordpress posts to the Facbook recommend widget is really easy. Adding thumbnails to the facebook recommend or like widget in wordpress is super easy if you already use a custom field to store the thumbnail location for each post. This is a great way to add thumbnails and can really make your website stand [...]]]></description>
			<content:encoded><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/52.original.png" width="659" height="87" alt="" title="Guides" /><br/><p>Adding icons from your wordpress posts to the Facbook recommend widget is really easy.<span id="more-1605"></span></p>
<div id="attachment_1609" class="wp-caption alignleft" style="width: 193px"><a href="http://green.cx/files/2010/06/facebook-icons.png"><img class="size-full wp-image-1609" title="facebook icons" src="http://green.cx/files/2010/06/facebook-icons.png" alt="" width="183" height="294" /></a><p class="wp-caption-text">Thumbnails on the Facebook Recommend Social Widget</p></div>
<p>Adding thumbnails to the facebook recommend<br />
or like widget in wordpress is super easy if you<br />
already use a custom field to store the<br />
thumbnail location for each post.</p>
<p>This is a great way to add thumbnails and can really<br />
make your website stand out on facebook.<br />
You can look at the live example on my website,<br />
on the right where my widget is or<br />
on the screenshot on the left.</p>
<p>See all the icons right there in the feed?<br />
It&#8217;s actually really easy with wordpress!</p>
<p>Ok, lets get started:</p>
<p>Start by pasting this code in your header.php<br />
file that is found in your theme&#8217;s folder.</p>
<p>Inside the &lt;head&gt; section somewhere,<br />
preferably at the top in header.php.<br />
(*Note this code may need some Modification for your specific theme*)</p>
<pre>&lt;? // META FOR FAILBOOK ?&gt;
&lt;meta property="og:title" content="&lt;? if (is_single()){?&gt;&lt;? wp_title('');?&gt;<strong><span style="text-decoration: underline">|Custom Tagline</span></strong>&lt;? } ?&gt;"/&gt;
&lt;meta property="og:site_name" content="<strong><span style="text-decoration: underline">Green Complex</span></strong>"/&gt;
&lt;?php $thumb = get_post_meta($post-&gt;ID, '<strong><span style="text-decoration: underline">thumb</span></strong>', TRUE); ?&gt;
&lt;meta property="og:image" content="&lt;?php echo $thumb ?&gt;"/&gt;</pre>
<p>Make sure to make any changes you need in the<strong> <span style="text-decoration: underline">bold</span> <span style="text-decoration: underline">sections</span></strong><span style="text-decoration: underline"> </span>to tweak it just right!</p>
<p>For those webmasters who want to know what&#8217;s going on, I&#8217;ll walk with you line by line. <img src='http://green.cx/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<pre>
<ol>
<li>&lt;? // META FOR FAILBOOK ?&gt;
-This is just a comment, good code is always commented</li>
<li>&lt;meta property="og:title" content="&lt;? if (is_single()){?&gt;&lt;? wp_title('');
                                              ?&gt;<strong><span style="text-decoration: underline">|Custom Tagline</span></strong><span style="text-decoration: underline"> </span>&lt;? }?&gt;"/&gt;
-This Line checks if the page is a post, and if so, it takes the name of the
post and sets that as the meta tag og:title, which is where facebook gets
the page title from (Don't know why the real title tag wasn't good enough)
A Custom Tagline is optional and you could add a little tag line to the
end of every status update like - lol or something.</li>
<li>&lt;meta property="og:site_name" content="<strong><span style="text-decoration: underline">Green Complex</span></strong>"/&gt;
-This line sets the site name. The user's status will now
say Jason likes (titleofpost) on Green Complex.</li>
<li>&lt;?php $thumb = get_post_meta($post-&gt;ID, '<strong><span style="text-decoration: underline">thumb</span></strong>', TRUE); ?&gt;
-And here we grab the image link from the posts custom field.
 Where it says 'thumb' you will want to change to whatever custom field
you use for your post images like 'image' 'large' or 'thumbnail'</li>
<li>&lt;meta property="og:image" content="&lt;?php echo $thumb ?"/&gt;
-Then we take the custom image url at return it in the
 meta tag for facebook to pick up, and add to the recommend widget.
 (It should return something like http://site.com/image.jpg)</li>
</ol>
</pre>
<p>And that&#8217;s it in a nutshell! Adding the images will customize the like experience a bit more for the user</p>
<p>and increase the chance that other readers will check out other stories on your site too. Great stuff!</p>
<p>If this post is a little rough forgive me, I&#8217;m still settling in to my new site design!</p>]]></content:encoded>
			<wfw:commentRss>http://green.cx/guides/add-thumbnails-to-facebook-recommend-social-plugin/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Effectively block Comment Link spam</title>
		<link>http://green.cx/guides/effectively-block-comment-link-spam/</link>
		<comments>http://green.cx/guides/effectively-block-comment-link-spam/#comments</comments>
		<pubDate>Thu, 13 May 2010 22:33:34 +0000</pubDate>
		<dc:creator>+Jason</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[content filter]]></category>
		<category><![CDATA[protection]]></category>
		<category><![CDATA[PSA]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://green.cx/?p=1412</guid>
		<description><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/52.original.png" width="659" height="87" alt="" title="Guides" /><br/>Effectively blocking Comment Link spam in WordPress A simple little wordpress setting can save you a lot of  headachs in regards to WordPress Spam Comments&#8230; So I noticed about 330 Spam Comments that needed moderation in my WordPress the other day and that&#8217;s when I hit my limit. I hate spammers, and link spammers are [...]]]></description>
			<content:encoded><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/52.original.png" width="659" height="87" alt="" title="Guides" /><br/><h3>Effectively blocking Comment Link spam in WordPress</h3>
<p>A simple little wordpress setting can save you a lot of  headachs in regards to WordPress Spam Comments&#8230;</p>
<p><span id="more-1412"></span></p>
<p><a href="http://green.cx/files/2010/04/wordpress-logo.jpg"><img class="size-thumbnail wp-image-1250 alignleft" title="wordpress-logo" src="http://green.cx/files/2010/04/wordpress-logo-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>So I noticed about 330 Spam Comments that needed moderation in my WordPress the other day and that&#8217;s when I hit my limit. I <em>hate</em> spammers, and link spammers are the worst. They spam <a title="links" href="http://green.cx/links/">links</a> in comments trying to &#8220;Steal&#8221; your page rank, or piggy back off of it or whatever. To boost their sites rank in Google. That is the dumbest thing they could do however, because if Google sees 1,000&#8242;s of blog comments linking back to your site overnight, Google will ban you. So what&#8217;s the point? Why do they do this?</p>
<p><!--more--></p>
<p>They buy spamming software for hundreds, sometimes thousands of dollars, with the promises that Google will love their website and they will make ten times what the app cost. LOL If that were true, why would they DARE to sell their own software? Why wouldn&#8217;t they just dominate Google and rule the world? Because they already have! They used the software back when it worked, after the big &#8220;G&#8221; stopped them, they needed a new source of income. So they go fishing for suckers. It&#8217;s those poor dumb sheep that listen to what these &#8220;Black Hat SEO Elite&#8221; preach and buy into their crappy comment link spamming software.</p>
<p>So if it&#8217;s so rampant how do we fight back? Easy, NO <a title="links" href="http://green.cx/links/">links</a> in comments. Period. Not this No Follow crap either. How easy is it to do this? In word press admin <strong>go to</strong> your <strong>Settings</strong> section in the lower left.  Then scroll down to the black list text box, and copy paste this in to it.</p>
<blockquote><p>.a<br />
.b<br />
.c<br />
.d<br />
.e<br />
.f<br />
.g<br />
.h<br />
.i<br />
.j<br />
.k<br />
.l<br />
.m<br />
.n<br />
.o<br />
.p<br />
.q<br />
.r<br />
.s<br />
.t<br />
.u<br />
.v<br />
.w<br />
.x<br />
. y<br />
.z</p></blockquote>
<p>(One per line) And finally save your settings. This will block any comment that has a .com .cx .ru . anything</p>
<p>Yes, if someone types a sentence and doesn&#8217;t space between them it will block it, but IMO that&#8217;s worth the effort to effectively eliminate comment link spam. Can they still spam you? Yes, absolutely, but plain words aren&#8217;t as bad as them dragging your Page Rank down and making an association from your site to theirs.</p>]]></content:encoded>
			<wfw:commentRss>http://green.cx/guides/effectively-block-comment-link-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add FB Like to every post</title>
		<link>http://green.cx/guides/add-facebook-like-button-post-wordpress/</link>
		<comments>http://green.cx/guides/add-facebook-like-button-post-wordpress/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 05:29:08 +0000</pubDate>
		<dc:creator>+Jason</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://green.cx/?p=1306</guid>
		<description><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/52.original.png" width="659" height="87" alt="" title="Guides" /><br/>How to add the Facebook &#8220;Like&#8221; button on every post in any theme. It&#8217;s quite simple actually, I&#8217;ll guide you through the whole process after the jump&#8230; Getting Started adding a FB Like button to all posts in your theme: Open one of the template files for your theme where you would like the button [...]]]></description>
			<content:encoded><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/52.original.png" width="659" height="87" alt="" title="Guides" /><br/><h2><a href="http://green.cx/files/2010/04/facebook-logo60.jpg"></a>How to add the Facebook &#8220;Like&#8221; button on every post in any theme.</h2>
<p>It&#8217;s quite simple actually, I&#8217;ll guide you through the whole process after the jump&#8230;</p>
<p><span id="more-1306"></span></p>
<h2><a href="http://green.cx/files/2010/04/facebook-logo60.jpg"><img class="alignleft" title="Facebook Like Button" src="http://green.cx/files/2010/04/facebook-logo60-150x150.jpg" alt="" width="150" height="150" /></a></h2>
<h3>Getting Started adding a FB Like button to all posts in your theme:</h3>
<p>Open one of the template files for your theme where you would like the button to be. Let&#8217;s say we want a button after the title in every post, so we would need to edit <strong><em>single.php</em></strong></p>
<p>Where ever you want the code to appear, just drop in the following line of code: (Remove all the line breaks, this is a one liner.)</p>
<pre>&lt;iframe src="http://www.facebook.com/plugins/like.php?href=<span style="color: #ff00ff">&lt;?php
the_permalink()
?&gt;</span>&amp;amp;layout=standard&amp;amp;<span style="color: #ff6600">show_faces=false</span>&amp;amp;<span style="color: #ff6600">width=300</span>&amp;amp;
action=like&amp;amp;font=segoe+ui&amp;amp;<span style="color: #ff6600">colorscheme=evil</span>"
scrolling="no" frameborder="0" allowTransparency="true" 
style="border:none; overflow:hidden; <span style="color: #ff6600">width:300px; height:30px</span>"&gt;&lt;/iframe&gt;</pre>
<p>Valid options for show_faces is true or false. True Shows faces and False doesn&#8217;t. Pretty simple.</p>
<p>Colorscheme is light, dark or evil. I choose evil, but I&#8217;m not sure what&#8217;s evil about it. Looks just the same as light does to me.</p>
<p>Obviously the width and height need to be adjusted to your theme and the placement in your theme to suit it best.</p>
<p>*In the code above, anything marked in this <span style="color: #ff6600">color</span> is what you can change to customize it, or use the customization wizard located at: <a title='Original Link: http://developers.facebook.com/docs/reference/plugins/like' rel='nofollow' href="http://green.cx/?glsPjIqp">http://developers.facebook.com/docs/reference/plugins/like</a> <strong>If you make your own using the wizard</strong>, don&#8217;t forget for the to add the <span style="color: #ff00ff">Pink </span>code after you generate your button, for the URL just put in blank.com and customize like you want. Then replace blank.com with<span style="color: #ff00ff">&lt;?php the_permalink() ?&gt; </span>for using in your wordpress theme.</p>
<p><span style="color: #ff00ff"> </span></p>]]></content:encoded>
			<wfw:commentRss>http://green.cx/guides/add-facebook-like-button-post-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress is leaving Blogging behind</title>
		<link>http://green.cx/web-resources/wordpress-web-resources/wordpress-is-leaving-blogging-behind/</link>
		<comments>http://green.cx/web-resources/wordpress-web-resources/wordpress-is-leaving-blogging-behind/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 07:47:11 +0000</pubDate>
		<dc:creator>+Jason</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://green.cx/?p=1249</guid>
		<description><![CDATA[<br/>WordPress leaving behind blogging? WordPress after over 5 years of being the perferred blogging tool of choice of professional bloggers and recognized worldwide, hosting over 4.5 Million Blogs on WordPress.com, Automatic the company behind WordPress has announced the Beta of version 3 of their popular Blogging platform will no longer be simply a blogging platform. The [...]]]></description>
			<content:encoded><![CDATA[<br/><h2>WordPress leaving behind blogging?</h2>
<p><a id="aptureLink_eg9xnhQpEb" title='Original Link: http://en.wikipedia.org/wiki/WordPress.com'  href="http://green.cx/?Y_RuSaXW">WordPress</a> after over 5 years of being the perferred blogging tool of choice of professional bloggers and recognized worldwide, hosting over 4.5 Million Blogs on WordPress.com, <a id="aptureLink_dbQdjMiAVH" title='Original Link: http://en.wikipedia.org/wiki/Automattic'  href="http://green.cx/?DtosDVBI">Automatic</a> the company behind WordPress has announced the Beta of version 3 of their popular Blogging platform will no longer be simply a blogging platform. <span id="more-1249"></span> The new WordPress version 3 sports many new features borrowed from its sister product WordPress-MU. In fact WordPress 3 marks a convergence between the two platforms into one very different and new WordPress we&#8217;ve never seen before. The Biggest Difference? Blog posts and Pages and now itemized as new objects that are definable.</p>
<div id="attachment_1250" class="wp-caption alignleft" style="width: 160px"><a href="http://green.cx/files/2010/04/wordpress-logo.jpg"><img class="size-thumbnail wp-image-1250 " title="wordpress-logo" src="http://green.cx/files/2010/04/wordpress-logo-150x150.jpg" alt="" width="150" height="150" /></a><p class="wp-caption-text">Wordpress 3.0</p></div>
<p>To explain it better, I&#8217;ll give you an example: You had Posts and Pages. You could get<!--more--> plugins to make Video blogs and plugins to make galleries. But now, Posts are defined as well as pages as &#8220;Types&#8221; and new &#8220;Types&#8221; can be defined. You can make a Post type for Podcasts, Videos, Photos and anything you can imagine. WordPress has grown beyond a blogging platform into a full fledged CMS. No, not wordpress AS a CMS WordPress IS a CMS. With content types definable, you could make a website that had a blog, static pages, videos, (for VLogs) PODcasts, download archives, flash pages, anything you can imagine. This ment a complete overhaul of the Page Navigation system in WordPress, and they sought out the Developers at WooThemes to apply their Page Navigation Editing system to the WP Core, and it looks awesome!</p>
<p>Other tidbits about WordPress 3:</p>
<ul>
<li>Specific author templates. The function <strong>get_author_template()</strong> has been expanded in wp-includes/theme.php.</li>
<li>Background settings configuration</li>
<li>Custom Post Types</li>
</ul>
<p>Some preview screenies for those interested:</p>
<h2>WordPress 3 Menu Editor</h2>
<div id="attachment_1251" class="wp-caption aligncenter" style="width: 600px"><a href="http://green.cx/files/2010/04/wordpress-menu-screen.jpg"><img class="size-full wp-image-1251" title="wordpress-menu-screen" src="http://green.cx/files/2010/04/wordpress-menu-screen.jpg" alt="" width="590" height="261" /></a><p class="wp-caption-text">WP3 Menu Editor</p></div>
<h2>WordPress 3.0 Background settings</h2>
<p style="text-align: center">
<div id="attachment_1252" class="wp-caption aligncenter" style="width: 600px"><a href="http://green.cx/files/2010/04/wordpress-background-dialog.jpg"><img class="size-full wp-image-1252" title="wordpress-background-dialog" src="http://green.cx/files/2010/04/wordpress-background-dialog.jpg" alt="" width="590" height="712" /></a><p class="wp-caption-text">Background Editor</p></div>
<h2>WordPress 3.0 Custom Post Types</h2>
<div id="attachment_1253" class="wp-caption aligncenter" style="width: 608px"><a href="http://green.cx/files/2010/04/wordpress-custom-post-types.png"><img class="size-full wp-image-1253" title="wordpress-custom-post-types" src="http://green.cx/files/2010/04/wordpress-custom-post-types.png" alt="" width="598" height="648" /></a><p class="wp-caption-text">Custome Post Type Creation</p></div>]]></content:encoded>
			<wfw:commentRss>http://green.cx/web-resources/wordpress-web-resources/wordpress-is-leaving-blogging-behind/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speedup WordPress Tip#5</title>
		<link>http://green.cx/web-resources/wordpress-web-resources/speedup-wordpress-tip5/</link>
		<comments>http://green.cx/web-resources/wordpress-web-resources/speedup-wordpress-tip5/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 11:30:45 +0000</pubDate>
		<dc:creator>+Jason</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://green.cx/?p=876</guid>
		<description><![CDATA[<br/>WordPress Speed Tip#5: Common Sense goes a long way&#8230; A few things that are not-so-common sense would be to try to use your judgement and think about the following: Less is more; and content is King Kong; we all like Google Analytics, Quantserv, mint, blogroll, Flash based Tag Clouds, and the whole moon. But Too [...]]]></description>
			<content:encoded><![CDATA[<br/><div id="attachment_877" class="wp-caption alignleft" style="width: 310px"><a rel="attachment wp-att-877" href="http://green.cx/web-resources/wordpress-web-resources/speedup-wordpress-tip5/attachment/roadrunner-5/"><img class="size-full wp-image-877" title="roadrunner-5" src="http://green.cx/wp-content/uploads/2010/02/roadrunner-5.jpg" alt="" width="300" height="245" /></a><p class="wp-caption-text">Looking back...</p></div>
<h2>WordPress Speed Tip#5: Common Sense goes a long way&#8230;</h2>
<p>A few things that are not-so-common sense would be to try to use your judgement and think about the following:</p>
<ol>
<li>Less is more; and content is King Kong; we all like Google Analytics, Quantserv, mint, blogroll, Flash based Tag Clouds, and the whole moon. But Too much content at once can be overwhelming, for both your reader, and your server.</li>
<li>Go easy on plugins; you don&#8217;t have to be a minimalist but try to find that balance between too much and not enough.</li>
<li>Combine and reduce, from your categories, tags, plugins, css, javascript, etc. Yes you can get plugins to do this, but your adding a plugin, to do something over and over, that you could do once, and it wound&#8217;t need to be done again. Unless your milling out sites, this shouldn&#8217;t be too hard of a task.</li>
<li>Look at each widget on your site, is it really useful? How many tag clouds have you clicked on? I truly wonder about their importance. After each post, showing the tags is great, because they are relevant. A cloud does give one an instance impression about your site, but I don&#8217;t think alot of people have realized that. If your audience isn&#8217;t the least bit tech savvy, I kinda doubt they&#8217;d even know what it means.</li>
<li><strong>Don&#8217;t ignore the point about widgets above</strong>. I know for a fact that the Google analytics widget that shows a page count, adds 15 seconds to the loading time, per widget. YES, two widgets == 28 Seconds load time. Widgets matter.</li>
<li>Avoid too many ads. Don&#8217;t get greedy, more ads usually means less $$ anyway. Esp Google Ads, the more ads you have a click value is divided by the number of ads on a page (Ok not exactly but the click value is negatively effected. This is exactly why google tells you to put ads everywhere, as click costs don&#8217;t change.) That&#8217;s a larger spread for google, but I digress, don&#8217;t smear ads everywhere unless you know exactly what you are doing.</li>
<li>Avoid &#8220;spammy&#8221; ads. I quite using ad brite a long time ago, some of their advertisers sneak code through the ads and a bad user experience on your site drives away traffic like the plague. These weird ad scripts can also slow your page down, like the ones that underline <a title="links" href="http://green.cx/links/">links</a> everywhere. Those are the worst! I hate waiting on a page to load while it&#8217;s slowly loading ads all over it. I&#8217;m sure I&#8217;m not alone!</li>
<li>K.I.S.S. Keep it Simple Stupid, Don&#8217;t over complicate things by installing the first plugin you see. Look for alternative plugins that are better written or have better functionality, chances are If your not happy with it, then someone else isn&#8217;t either, and maybe they made a better one.</li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://green.cx/web-resources/wordpress-web-resources/speedup-wordpress-tip5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching 144/228 queries in 1.036 seconds using apc

Served from: potpiedeluxe.com @ 2012-02-09 18:46:44 -->
