Forums

[resolved] Alternating comment background/styling broken by 2.0.4? (7 posts)

  1. Nitallica
    Member
    Posted 3 years ago #

    I've noticed something when I upgraded from WP 2.0.3 to 2.0.4: it broke the alternating comment coloring (and/or styling?).

    Examples:

    My test system, which is still using 2.0.3
    http://www.nitallica.org/test/2006/07/11/hello-world/#comments

    The live system, which is using 2.0.4
    http://www.beforeyoukillyourcomputer.com/index.php/2006/07/01/hello-world/#comments

    Both are running the same theme and I've gone over everything with a fine toothed comb and can't find any difference other than the WordPress versions.

    Has anyone else run into this since upgrading?

    2.0.3 caused more problems than it solved, so I am hesitant to downgrade just for alternating comment stylings ... I can easily just afix one background and stick with it, but the admin really *wants* the alternation.

    Any thoughts? Suggestions?

    If needed, I can put some code snippets online.

  2. Yosemite
    Member
    Posted 3 years ago #

    Don't have a problem with mine...

    Your source looks like this:
    <li id="comment-55" class="<?=$oddcomment;?>">

    It's not '2.0.4'...

  3. Nitallica
    Member
    Posted 3 years ago #

    Then why would it work in 2.0.3 and not in 2.0.4 if it is the exact same theme and the exact same system setups? The only difference between the two sites is the version of WordPress running.

  4. davidchait
    Member
    Posted 3 years ago #

    it's obviously not the exact same thing. ;)

    that <?=$oddcomment;?> thing is obviously some kind of error in the theme. I'm not even sure what that is. Looks like some kind of echoing shorthand, but I've never seen it.

    -d

  5. Nitallica
    Member
    Posted 3 years ago #

    Yeah, that's what I thought too, but I downloaded the theme files from the 2.0.4 system and uploaded to the 2.0.3 one and it still works fine, which is what lead me to think it's WP. (as much I hate to blame it ... it's been so good to me! *sobs*)

    :)

    I'll keep looking though. Thanks for replying. :D

  6. Nitallica
    Member
    Posted 3 years ago #

    Funny, I was looking at the source on the page generated on the 2.0.3 system and I see:

    <li id="comment-1" class="graybox">

    and

    <li id="comment-2" class="oddcomment">

    Which is exactly what the 2.0.4 system SHOULD be doing.

    *bangs head on keyboard*

  7. Nitallica
    Member
    Posted 3 years ago #

    FOUND IT!

    Turns out that shorthand was indeed the problem. Compared it to the comments/alternating code in WP-Andreas and was able to suss out the full thing.

    Thanks! :D

    *lubs WP*

Topic Closed

This topic has been closed to new replies.

About this Topic