Forums

Comment moderation - message not showing up in FireFox (8 posts)

  1. Daisyhead
    Member
    Posted 4 years ago #

    I just upgraded from V1.2.1 to V1.5 (am LOVING the new version! LOVING it!) but am encountering a bug.

    If you are a new commenter on my site and you are using IE, your comment will show up after submitting it with a message that your comment is being held for moderation. Only you can see that comment and it won't show up until I do moderate it.

    However, if you're using FireFix you don't see your comment at all and you see no message that your comment is being held for moderation.

    I would like this message to show up for both IE and FF users as I think it's very confusing for people to post a comment, not have it show up, and get no explanation as to why it's not showing up. Here's the code that is currently on my comments.php page:

    <?php if ($comments) : ?>

    <ol id="commentlist">

    <?php foreach ($comments as $comment) : ?>

  2. <?php comment_text() ?><span class="comm-author"><?php comment_author_link() ?></span> on
    " title=""><?php comment_date('n/j/y') ?> @ <?php comment_time() ?> <?php edit_comment_link('[e]','',''); ?>
    <?php if ($comment->comment_approved == '0') : ?>
    (Your comment is awaiting moderation)
    <?php endif; ?>
  3. <?php endforeach; /* end for each comment */ ?>

A friend of mine is helping me troubleshoot and his wondering if it's the way FF stores cookies as opposed to IE? Any way to fix this?

  • ColdForged
    Member
    Posted 4 years ago #

    Odd. On my site it appears under Firefox without difficulty. Having just visited it does appear to be happening as you say on your site. The cookies seem fine as well. Currently stumped.

  • Daisyhead
    Member
    Posted 4 years ago #

    I did tweak the code somewhat last night. I wonder if I should try placing the orginal code and then seeing what happens?

  • macmanx
    Member
    Posted 4 years ago #

  • Daisyhead
    Member
    Posted 4 years ago #

    Thanks Mac. I have that same exact code in my comments.php file though and it's still not working with FireFox.

    <?php if ($comment->comment_approved == '0') : ?>
    (Your comment is awaiting moderation)
    <?php endif; ?>

    Still trying to figure out why. And did my post mess up the layout of this page??

  • macmanx
    Member
    Posted 4 years ago #

    We should probably stick to the other thread, since the code posted in the first post here has screwed up this thread's layout.

  • Daisyhead
    Member
    Posted 4 years ago #

    I'm sorry. I'll move back to the other thread. =(

  • Daisyhead
    Member
    Posted 4 years ago #

    I actually just figured this out. Since I turned my own layout into a theme, I thought I had to upload the comments.php page into my theme directory. Which in theory worked, but then the above problem happened.

    I deleted my tweaked version of my comments.php page and noticed that the page was still loading from somewhere. After some troubleshooting, I found that my theme was pulling the comments.php page from the "default" theme directory. After re-uploading my own tweaked version of the comments.php page to the "default" theme directory, my test comment that I posted now shows up in FireFox with the statement that it is being held for moderation.

    And to think I worked all day on this and badgered ColdFusion as well. *shakes head* Many thanks to CF and everyone else who attempted to sort this out with me. I REALLY appreciate it!

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.