You can now interact with traas.org: leave comments!

Wednesday, March 22nd 2006, 11:45AM
category: Site Maintenance/Development
Finally... I've been working for weeks to lay the foundations for this, but now there are blog-style comments on all of the news entries! The database design has been done for ages, and the comment rendering has worked. It was just a matter of a submission form... which is now completed. Now, click on the "comments" or "read more" link on each entry to see the comments others have left.

Why did this take me so long? Well, there was a lot of ground work that needed to be done. The first was implement PHP session handling, which at first broke the site due to its URL handling. In absense of cookies, it appended &PHPSESSID=[session id #] at the end of every URL. Seeing as this isn't valid in XHTML 1.1, I had to reconfigure PHP to use the XHTML entity & instead of &.

So once I got the sessions going, I had to implement transparent message passing of error messages through session variables. This was, actually, pretty easy.

Finally, I had to validate and test the input from the submission forms. First, I strip ALL HTML-like stuff from the posts, and just replace the special characters with thier appropriate entities. I then validate the email address, and check to make sure all the required fields are filled out. Finally, I had to build a moderation system; I don't want blog-spam bots just filling me up, and I don't want a turing test.

What does this mean? EVERY comment is moderated, no exception. You won't see a comment you post until I moderate it.

ANYway, enough techno-babble from me. Enjoy!
14 comments | category: Site Maintenance/Development

Leave a comment

  • This is the sites first comment. Testing... testing... 1... 2.. 3.
    by Aaron Traas | Friday, March 17th 2006, 12:12PM | Reply to this
    • This is actually my third comment, but it's in reply to the second, so it appears to be nested. Or at least it should.
      by Aaron Traas | Friday, March 17th 2006, 1:25PM | Reply to this
  • This is yet another comment. Comment #2. Yeah, baby.
    by Aaron Traas | Friday, March 17th 2006, 12:12PM | Reply to this
  • Iudica me, Deus, et discerne causam meam de gente non sancta: ab homine iniquo, et doloso erue me.
    by Priest | Monday, March 20th 2006, 3:53PM | Reply to this
    • Quia tu es Deus fortitudo mea: quare me repulisti, et quare tristis incedo, dum affligit me inimicus?
      by Acolyte | Monday, March 20th 2006, 5:15PM | Reply to this
      • Emitte lucem tuam, et veritatem tuam: ipsa me deduxerunt, et adduxerunt in montem sanctum tuum et in tabernacula tua.
        by Priest | Wednesday, March 22nd 2006, 11:25AM | Reply to this
        • Et introibo ad altare Dei: ad Deum qui laetificat iuventutem meam.
          by Acolyte | Wednesday, March 22nd 2006, 11:28AM | Reply to this
          • Confitebor tibi in cithara, Deus, Deus meus: quare tristis es anima mea, et quare conturbas me?
            by Priest | Wednesday, March 22nd 2006, 11:31AM | Reply to this
            • Spera in Deo, quoniam adhuc confitebor illi: salutare vultus mei, et Deus meus.
              by Acolyte | Wednesday, March 22nd 2006, 11:33AM | Reply to this
  • this is a comment... enjoy it.
    by Thomas | Wednesday, March 22nd 2006, 1:11PM | Reply to this
  • *If you use an obviously false email and/or name, your post will be rejected.

    Yea, well reject this.
    by Your mom | Sunday, March 26th 2006, 12:19AM | Reply to this
  • I'm suspicious. I think all the comments are from Aaron. :P
    by Cherry | Wednesday, April 26th 2006, 9:22PM | Reply to this
  • Testing....
    by Testing McTest | Monday, January 08th 2007, 1:32PM | Reply to this

Leave a comment

Copyright © 2005-2009 Aaron Traas. All rights reserved.
Any problems, questions, or comments, email aaron@traas.org