bbPress

Simple, Fast, Elegant

bbPress support forums » Themes

here's how to fix Internet Explorer 8 messing up your design

(6 posts)
  • Started 2 months ago by _ck_
  • Latest reply from jaimetout
  • This topic is not a support question
  1. This mini-plugin will fix your layout/graphics
    for visitors that insist on using IE 8.0

    function fix_ie8() {if (strpos($_SERVER['HTTP_USER_AGENT'],"MSIE 8")) {header("X-UA-Compatible: IE=7");}}
    add_action('bb_send_headers','fix_ie8');

    Essentially it makes IE8 render like IE7 by sending a special (invisible) header only to IE8 users.
    Problem solved.

    It blows my mind that a page that can render perfectly in Opera - which is THE standards browser - can be messed up by Microsoft attempting to conform to standards. What a (continued) waste of everyone's time.

    ps. this plugin might also work for WordPress if you change the 'bb_send_headers' to plain 'send_headers'

    Posted 2 months ago #
  2. You are awesome! I didn't even know this problem might exist, and you've already addressed it. I definitely need to get my butt onto your site and make a donation!

    Posted 2 months ago #
  3. where do we put this code?

    Posted 2 months ago #
  4. Use this procedure:
    http://bbpress.org/forums/topic/delete-post-by-its-owner#post-18737

    Make it its own plugin, or put into a plugin file with other tweaks.

    Posted 2 months ago #
  5. Also related, remember if you use XP and you install IE8 (beta) you CANNOT uninstall it. It locks you in. So everyone might want to avoid the temptation to play unless it's on a virtual box.

    Posted 2 months ago #
  6. I can confirm that this does work as a WordPress mini-plugin if you replace 'bb_send_headers' with 'send_headers'.

    Thanks so much for posting this tip, _ck_. I've been fighting against weird layout issues and javascript screwiness ever since I installed IE8.

    Posted 2 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.