Blog

Fixing HTTP Error for WordPress Flash Image Uploader for Sites Using Basic HTTP Authentication

Posted on by Brian

Using basic HTTP authentication is a simple way to password protect your website. However, using that type of authentication can cause errors while trying to upload images from the WordPress admin. If you’re seeing this error while trying to upload media to the WordPress Media Library:

AND, you’re using basic HTTP Authentication for access to your WordPress site, the following code should fix the HTTP Error.

1. Add a .htaccess file inside your wp-admin folder.

2. Add the following code to that .htaccess file:

AuthType Basic
AuthName share
Satisfy Any
Order deny,allow
Allow from all

<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>

If you are still having issues after using this code, there may be other things going wrong, such as incorrect permissions on your uploads folder or an incorrect media path set in your Media Settings.

Posted in Programming

Tagged , , ,

CSS3 Resources

Posted on by Brian

Here’s an ongoing list of CSS3 resources:

CSS3 Generators:

CSS Shapes

Posted in Personal

2011 The Tour de France Live Streaming

Posted on by Brian

Tour de France Logo

To watch the tour live check out steephill.tv

Posted in Personal

HTML5 Resources

Posted on by Brian

This is mostly for personal reference, but here is an ongoing list of HTML5 resources, tutorials, samples, tools, validators and resources. Please let me know if you would like anything added to this list. Enjoy!

HTML5 Documentation:

HTML5 Tutorials:

HTML5 Samples:

HTML5 Tools:

HTML5 Commentaries:

HTML5 Validators:

HTML5 Trackers:

HTML5 Books:

Other Resources:

Posted in Development Resources, Programming

Tagged , ,

CSS Hacks for Different Versions of Firefox Browser

Posted on by Brian

I found some useful CSS hacks to target Firefox/Gecko browsers over at Perishable Press.

The most useful of which are are few hacks to target all versions of Firefox:

/* Target all versions of Firefox */
#selector[id=selector] {
    color: red;
}

/* Target all versions of Firefox */
@-moz-document url-prefix() {
    .selector {
        color: red;
    }
}

/* Target all Gecko browsers (includes Firefox) */
*>.selector {
    color: red;
}

Posted in Programming

Tagged , , ,

New site launch: bankcherokee.com

Posted on by Brian

Bank Cherokee websiteAn old project was just published, check it out!

Posted in News

Tagged , ,

New site launch: gettingtotheheartofthematter.com

Posted on by Brian

Getting to the Heart of the Matter

Check it out in the portfolio!

Posted in News

jQuery script for IE 7 input:focus support

Posted on by Brian

So, IE7 doesn’t support focus on input or textarea fields. Hooray. Here is a little jQuery script to add that support back in if javascript is enabled in the user’s browser.

<script type="text/javascript">
$(document).ready(function() {
    if (jQuery.browser.msie === true) {
        jQuery('input').bind('focus', function() {
            $(this).addClass('ieFocus');
        }).bind('blur', function() {
            $(this).removeClass('ieFocus');
        });
    }
});
</script>

Then add an additional line for the .ieFocus class to your input:focus style.

<style>
input:focus,
input.ieFocus {
    border: 2px solid blue;
}
</style>

That should do it, now you have input:focus support for IE7.

Posted in Programming

Tagged , , , ,

HTML 5 placeholder fallback support jQuery plugin

Posted on by Brian

This plugin provides fallback support for using the new placeholder attribute in HTML 5 on input and textarea elements.

Here’s how it works:

Note from the developer, “Just call the placeHeld() function on any elements you want to use placeholder text for. In browsers that support placeholder attributes (Safari, Chrome), nothing will happen. Other browsers will show the contents of the placeholder attribute (by populating the value attribute) and a “placeheld” class will toggle on/off.”

Download the Placeheld jQuery plugin

Call the jQuery function on an input element, targeting the placeholder attribute:

$("input[placeholder]").placeHeld();

To give the element a custom class (not the "placeheld" default):

$("input[placeholder]").placeHeld({
    className: "custom-class"
});

Or, for textarea placeholder fallback support, try:

$("textarea[placeholder]").placeHeld();

Posted in Programming

Tagged ,

Ellie going for a ride in the car

Posted on by Brian

20110420-105111.jpg

Posted in Personal

Tagged