Akismet moderation message breaks page

Greetings:

It's the first time I post here. First, I want to thank the creators of ZenPhoto for their amazing, and deceptively simple gallery app. ZenPhoto was exactly was I was looking for: light and amazingly simple to integrate to my existing site.

...and this post has to do with a question I have about site integration. My smallish gallery can be found here. It's almost 100% integrated to my site (still have to change some colors here and there), but I am not sure how to proceed with a small "problem" I have with the Akismet plugin.

The plugin works as it should 110%, I have no complaints about it in that respect. However, when it detects blacklisted words in submitted comments, the message it then generates (the one telling the poster that the comment was sent for moderation since it included SPAM) "breaks" the page.

I am not sure what should I do to avoid that. It's not a critical, but I'd appreciate if someone were to give some advice on this matter (what file should I edit, etc.).

Thanks, and have a nice day.

Ed

Comments

  • What exactly happens when you say the message "breaks" the page? Do you get a CGI error? Is it a formatting problem? Have you tried one of the other spam filters to see if it also breaks your page?

    I entered a blank comment. If the result I see from that is the same as you are experiencing with moderated messages, then I think you have the error message html in the wrong place.

    This is the HTML I see when I view the source of the page. The table row for the error message is ooutside the actual table. You can probably remove the <tr> and <td> tags. Or you can move the table tag to infront of the message.

    `









    There was an error submitting your comment. Name, a valid e-mail address, and a spam-free comment are required.





    Name:



    `
  • A fix for this will be released in the nightly build soon.
  • Sorry I wasn't more specific. Yeah, when I said it "broke" the design I meant that the error comment and the form appeared *outside* the table cell where I initially pasted the form.

    Hmm, that's what I thought... I'll take a closer look closer look to see how I can fix that, shouldn't be that complicated...

    Or should I just wait for the nightly to avoid screwing up something in the code? After all, it's a pretty unremarkable site... I doubt I'll be flooded with comments anytime soon. :)

    As a sidenote, I really hate the old, table-centric Dreamweaver template I'm using (and maybe this wouldn't be happen in the first place if I only had used DIVs from the start). I hope to sit down one day and convert everything to a table-less design (laziness stops me, though :-P).

    Anyway, I appreciate your comments. Thanks. :)

    Ed.
  • I removed the <tr><td> pairs in function printCommentErrors within template-functions.php, and now the error message (and the form) stays where it should. :)

    Strange thing, though... I tested akismet by entering spam keywords in the form, and it doesn't seem to work. I could swear that worked before. I know it doesn't have to do with what I edited in template-functions.php, since clicking "Add Comment" with a blank form still brings up the error message. However, spam goes through every time (and, yes, I remembered to add my WordPress API key in the backend). Odd... I'll have to deactivate commenting completely then just in case :-(
Sign In or Register to comment.