Forum Replies Created

Viewing 15 replies - 241 through 255 (of 417 total)
  • Regardless of what’s causing the problem, you can feed IE the value it needs by using a hack to feed IE what it needs. I suspect it’s the table you need to feed an html specific value to. Give that table a class, for instance “cd” and then try something like this (I didn’t play with this, but you’ll get the idea.)


    /* hide from IE5-mac */
    * html table.cd { margin-left: -2px;}
    /* end hide */

    This is also assuming that IEMac is already playing nicely. If it isn’t, then remove the “hide” hack. Also, notice the space between the “*” and the “html”, it needs to be there.

    If you want to “future proof” this, put this snippet of css in a conditional comment in the header.php file and feed only to IE6.

    Feel free to contact me through my website. I’ve completed a number of custom theme/template projects.

    I have a few variable width WP themes available. Kickass-Squawk is three column,Kickass-boxes is two column with nav left, and Kickass-Dune is two columns with nav right.

    I hope that helps!

    Thread Starter kickass

    (@kickass)

    SUCCESS! WOOHOO!

    Just to wrap for anyone who ends up in here on a search- in index.php I have at the very top before the doctype:
    <?php
    require_once("wordpress/wp-blog-header.php");
    define('WP_USE_THEMES', false);
    ?>

    Then, in the place where I want the five most recent titles to show I have:
    <?php wp_get_archives('type=postbypost&limit=5'); ?>

    That was the winning combo that got me my five post titles listed on my site’s static index page. YMMV.

    Thank you SO MUCH, schulte, for hanging in there with me!

    Thread Starter kickass

    (@kickass)

    Yup. Oh, and it even copied your misspelling five times! Hello, Word! At least I assume you meant “Hello, World!”

    I should mention also that I put that head call back to require_once just to see if that had something to do with it. It made absolutely no difference.

    That original archive call I used is the exact same one that works fine (and only calls titles once) within my actual blog in either the leftcol or the sidebar, depending on which of my themes you’re running. This truly is bizarre. I’ve damn near got the template tag section of the codex memorized after today.

    Is there a way to do it with a query? I’m not exactly a php whiz, though I can usually follow instructions . . .

    Thread Starter kickass

    (@kickass)

    Yes, if I change it to limit=1, then I have one article title repeating five times. If I totally remove the limit=X then I have every blog title from every blog entry I ever made repeating five times. I’m just trying to list the most recent five article titles once *grin*

    No other fancy stuff going on. FYI this is 1.5 with Markdown, Theme-Switcher, Witty-Text, and WP-ContactForm activated, none of which would seem to have any bearing, at least I wouldn’t think so.

    Just for the record, I tried removing the loop and just having the archive call and was back to whitepage with errors. So yes, the loop is doing the job it’s supposed to do . . . is there another way to call post titles and to limit them to the most recent five?

    Thread Starter kickass

    (@kickass)

    Okay, including the wp-blog-header.php in the toplevel directory didn’t do it. Weirdly, for some reason I tried a relative url in a different way (“more” relative, instead of from docroot) and got a different error, namely that wp-config wasn’t where it was expected. So I went back and called wordpress/wp-blog-header.php and . . . It worked, kinda. Now I have a different problem. I know I have to restyle here, but take a good look at the list. I have my archive permalink titles repeated- five times. Well at least I feel like I’m getting warmer!

    Thread Starter kickass

    (@kickass)

    Call originally was made on first line above the doctype with the absolute url. That at least got me a page that looked like mine, though the error showed up in the pullquote box on the right.

    With the relative url, and the call at the very tippytop of the header where it belongs I get a totally white page with this error:

    Warning: main(/wordpress/wp-blog-header.php): failed to open stream: No such file or directory in /home/mywebsite/public_html/testindex.php on line 2

    Warning: main(/wordpress/wp-blog-header.php): failed to open stream: No such file or directory in /home/mywebsite/public_html/testindex.php on line 2

    Fatal error: main(): Failed opening required ‘/wordpress/wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/mywebsite/public_html/testindex.php on line 2

    I’ve now tried it with the header call both ways- as “require” and as “require_once” — same errors either way.

    Relative path does not work at all- and what’s frustrating is that if you LOOK at the paths in the error message they’re all ‘RIGHT’ in that the files they path to are indeed there. *sigh*

    So, Key Factors notwithstanding, the solutions above have all been tried and don’t work.

    Thanks, guys. Any other ideas?

    Thread Starter kickass

    (@kickass)

    Um, I did. And I said so in my post, though that’s the snippet of code that the post kept cutting off. But thanks anyway, schulte.

    IE always needs more room for stuff horizontally than any other browser. Try narrowing your subcontent block to 200px, and maybe also your content block. You can also play with the margins and padding on these, sometimes adding more padding can screw with IE on stuff like this. I’ve gotten in the habit of putting padding on the elements INSIDE the divs (for instance, put the padding on the paragraph, or the list instead of the div itself) so IE wouldn’t screw with my head *grin*

    If you wish, you can feed IE “special” IE values by using the star html hack like so:

    * html #subcontent {
    width: 195px;
    }

    Do check in IEMac though, if your stats show you have people who use that browser. You might have to “hide” this fix from IEMac.

    Thread Starter kickass

    (@kickass)

    Yeah. Your guess doesn’t count . . .

    Thread Starter kickass

    (@kickass)

    I retain copyright of all graphics/layout. So really though I more or less meant the latter, I think the former applies as well. I guess reading the exact wording of the Creative Commons license might clarify this.

    Floating, by nature, floats the direction you point it and UP until it hits another block level element.

    Read the Floatutorial here to understand how floats work.

    Though absolute positioning might work, it’s not very safe cross-browser, especially in IE.

    This is typical IE behavior. IE always seems to need more width for elements than other browsers. You may, if you like, feed IE a different dimension through the use of the star html hack, anything after which only IE sees. To ensure it will last into the future through the next IE upgrade, feed it in through a conditional comment in the head of your header.php file (instead of your stylesheet) like so:

    <!--[if lte IE 6]>
    <style>
    * html .yourclassordivhere {
    width: IEpx;
    }
    </style>

    <![endif]-->

    Do check and see if this now plays nicely in IE5 and IEMac since they act differently than IE6.

    Oh, how I remember the scam parade after 9-11, when I was frantically trying to determine the whereabouts and safety of all my friends in Manhattan (I worked there for over 10 years, though I wasn’t during 9-11.)

    This Katrina disaster brought that so strongly back to mind I posted here:
    Katrina Relief
    with some info on how to donate SAFELY and ensure your donation is really going to where you want it to go. Feel free to use, abuse, steal or whatever . . . as long as people get the info.

Viewing 15 replies - 241 through 255 (of 417 total)