Blog

WordPress Mailchimp plugin can’t connect to API

Dec
15
2015

If your mailchimp plugin is saying not connected and showing the error “HTTP Error: SSL certificate problem: unable to get local issuer certificate” it’s because your server’s CA bundle is out of date and you need to prevent the plugin from using the cURL opt ssl_verify. Luckily the plugin uses WordPress’s built in http functions

TIFF Preview and JPEG conversion WordPress Plugin

Oct
30
2014

If you need to upload TIFF files to your site and show the images in browser, then you need to make a browser compatible copy of the file like a JPEG, GIF, or PNG. I whipped up a quick plugin to do just that. When you upload a TIFF file in the media uploader, a second

How to embed Gfycat in WordPress Posts

Oct
23
2014

UPDATE: I rolled it into a plugin and added a couple options for playback https://wordpress.org/plugins/gfycat-embed/ Now you don’t have to copy paste my code! Though if you don’t care about the options, just throw the function below into your theme’s functions.php So Gfycat, the popular GIF shrinking and video hosting service finally implemented oembed. Unfortunately, it’s not quite

$.tallest() jQuery plugin to get tallest element in a collection

Apr
23
2014

So, like, every third project I end up having to rewrite this little plugin because I always forget the last one I wrote it for and for whatever reason searching my dev machine’s htdocs directory for tallest() returns nothing. Anyways, now it’s here for all of us

Usage

WordPress get image attachment id from src

Dec
3
2013

This will take the url of any image size and return the id of the attachment

A jQuery plugin to put hats on things, because that’s totally something you need

Aug
8
2013

Don’t ask questions! Your website will just look more dapper if things had hats. Download it! Usage

WordPress header called twice / loading other posts in background

Jul
30
2013

So recently I was doing some stuff where I was putting a random value from an array into a session variable for use after the next page refresh. This had to happen on every page, for some reason the value kept changing and it took me a while to realize it was because the code

Stop automatic save folder firefox plugin opening a new tab every time

Jan
25
2013

Googled around for this unsuccessfully before giving in and troubleshooting it myself, hopefully it’ll help some other poor soul. You’ll have to install one of the beta versions above 1.0.4 you can do so at the automatic save folder developer’s site.

Using shortcodes in WordPress widgets

Jan
25
2013

Recently needed to use a shortcode in a text widget, unfortunately the text widget doesn’t parse shortcodes. So I found a plugin that was basically the text widget but also parses shortcodes. Then I figured there must be a way to use hooks to accomplish this so I don’t need the extra plugin. There is.

Twitter Bootstrap and Google Maps doesn’t load, grey screen

Jan
11
2013

Took awhile to run down this error and googling wasn’t much help, so figured I’d document it. Bootstrap by default sets a rule

So that images don’t overflow their spans. However if you’re embedding Google Maps in your site, it messes up the zoom controls. You can override that with max-width: none, easiest way

Remove the cover image from quickmeme images

Oct
25
2012

This little greasemonkey script removes the transparent cover image that makes direct linking to the meme image annoying.

Don’t use imagecreatefromstring

Jan
31
2012

If you’re looking to create a jpg file from raw image data, like from an email attachment, don’t use imagecreatefromstring(); because it strips almost all the header data including a ton of exif info off the file. Simply do this

Voila you got yourself an image file with all the meta info including the