Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter marcopolo

    (@marcopolo)

    Thanks for the suggestions.

    I ultimately fixed it with a low-tech hack: I added the missing styles from nggallery.css to my main theme stylesheet. Looks fine now.

    See the fixed gallery here:
    http://www.coastalsurvey.com/mag/album/

    some ISPs generate a unique host name for security reasons. ‘localhost’ is the default name given in most installations.

    check the hosting administration section of your ISP to see if alternate names for your database are being used.

    Thread Starter marcopolo

    (@marcopolo)

    OK, finally got the syntax right for the PHP — I’d dropped a bracket. Here’s the working code:

    <!–the following bit is the browser/platform detect –>

    <?php if (eregi(“MSIE”,getenv(“HTTP_USER_AGENT”)) ||
    eregi(“Internet Explorer”,getenv(“HTTP_USER_AGENT”))) { ?><link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘stylesheet_directory’); ?>/stylewinie.css”/>

    <?php } elseif (eregi(“MACOS”,getenv(“HTTP_USER_AGENT”)) ||
    eregi(“Safari”,getenv(“HTTP_USER_AGENT”))) { ?><link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘stylesheet_directory’); ?>/stylemac.css”/>

    <?php } else { ?>
    <link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘stylesheet_directory’); ?>/stylewinfox.css”/>
    <?php } ?>

    <!– end of browser/platform detect –>

    You can check the result here: http://www.pratt-union.org/.

    I’ve spent days on this problem and I think this is by far the cleanest solution.

    Even if there were CSS hacks that could discern Firefox from Safari from IE7, there are no CSS filters for platform. And Firefox renders differently when it’s running on a Mac OS than when it’s based on Windows. Until that problem is solved (probably never), you’re better off using PHP to interrogate the User_Agent.

    Thanks for the help.

    Thread Starter marcopolo

    (@marcopolo)

    Yea, I tried the CSS hacks first.

    There are not sufficient filters to sort out browser/platform issues I encountered. For example, Firefox 1.5 interprets the theme/css differently depending on whether it’s running on Windows or a Mac.

    For reference, the site I’m working on is here: http://www.pratt-union.org/

    Forum: Fixing WordPress
    In reply to: tiny-mce

    Another great image wsywig editor is raj prasad’s editor monkey — http://www.rajprasad.net/plugins/editormonkey.

    although it’s no longer supported, it worked fine for me right out of the box for modifying a wp 2.0.3 installation. the plugin offers a nice blend of features and flexibility.

    Thread Starter marcopolo

    (@marcopolo)

    i never thought to look in the footer.

    the get_sidebar call was in the footer. thanks.

    issue resolved.

Viewing 6 replies - 1 through 6 (of 6 total)