Broken ms-files.php in WordPress corrupting images

Broken ms-files.php in WordPress corrupting images

Dec 10, 2011

I upgraded nginx on my server and all was well, or so I thought…. (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 little struggling I figured out why non of the images from the /files/ directory in...

Anatomy of a WordPress Theme

Anatomy of a WordPress Theme

Mar 22, 2011

Yoast had this great info graphic about wordpress I just had to share with everyone. I reposted here for posterity’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...

Add a floating Facebook widget to any site

Add a floating Facebook widget to any site

Aug 1, 2010

Here’s the easiest way to quickly add a floating join us on facebook badge on your website. What do I mean by floating? When you scroll up and down it stays in the same place, when makes it look like it’s floating. Here’s the code snippet:  <div style="position:fixed; bottom:10px; right:10px;"><a...

Uploading images without a file extension to WP

Uploading images without a file extension to WP

Jun 25, 2010

WP Core hacking I used this code recently to hack wordpress’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. This is pretty easy as I found out and only required me to...

Effectively block Comment Link spam

Effectively block Comment Link spam

May 13, 2010

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… So I noticed about 330 Spam Comments that needed moderation in my WordPress the other day and that’s when I hit my limit. I hate spammers, and link spammers are the worst. They spam links in...

How to add FB Like to every post

How to add FB Like to every post

Apr 23, 2010

How to add the Facebook “Like” button on every post in any theme. It’s quite simple actually, I’ll guide you through the whole process after the jump… 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 to be. Let’s say we want a...

WordPress is leaving Blogging behind

WordPress is leaving Blogging behind

Apr 12, 2010

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...