My site includes dozens of static html pages that area similar but each contains information about a different subject. I want to add a section at the bottom of each page where anyone can post a comment about the page.
I've looked at phpBB, WowBB, SMF, and others. They are all overkill for what I need. I've also looked at the directions for making a very simple script from scratch ( http://www.devshed.com/index2.php?option=content&task=view&id=969&pop=1&hide_ads=1&page=0&hide_js=1
) and even that seems to be overkill, as it makes a whole forum site. Plus, I won't want or need user login or anything like that. It will be for anyone (they would just type their name into a textbox).
I would want my comment area to look sort of like the bottom of an experts-exchange.com question page: the text of my web page would be analogous to the Question at the top of these ee pages; and then at the bottom of the page I would just want a comment box like the "Post a Comment" textarea in these ee pages. Then, just like here on ee, the added comments would show chronologically (and show the name of the commenter), above the Post-a-Comment textarea.
I'm using MySQL as the database backend. I assume I would need only one table for all my different pages, like this:
ID int 20 (autoincrement, as the primary key of the table)
PageID varchar 11 (letters/numbers combination to identify which page)
Name varchar 40 (to identify who made the comment)
Comment text (the content of the comment)
Posted datetime (so the comments can be displayed in chron order)
I assume the first step would be to convert all these static html pages to have the .php extension so they would be processed by the PHP interpreter and able to dynamically gather and display the existing comments.
* 1) Assuming I have added the .php extension to my pages and have a variable or hidden form field for the PageID to distinguish one page from another, what is the simplest code to add to my pages to have a working comment-posting area at the bottom of each page? (It would be similar to the way the script works at http://www.zimmertech.com/tutorials/php/25/comment-form-script-tutorial.php
* 2) How would that code be modified to allow commentators to direct their comments to an existing comment, so it would be like a simplified threaded-discussion, but all comments are shown openly (without clicking a link to open a topic or see replies, etc.); it would show everything at once like here on ee, but the comments would be indented and grouped hierarchically if a commentator replies to a specific comment. (I assume this part would require adding another column (like ParentID) to my table to track which comment goes under which other comment.) But if they just post a general comment, it would still simply be added to the general display, by chronological order, most recent on the bottom. Thanks.