Adding features to my Free Software PHP Comment System
Posted: Wed Jul 28, 2010 10:17 pm
To place comments on pages with this comment system you use a simple <script> tag, it automatically detects which page it is on, creates a directory for the comments named after the page and displays comments for just that page. There are "Name", "E-mail Address", "Website", and "Comment" fields, all but the "Comment" field are optional and remember what you entered even if you navigate away from the page (using browser "cookies" which expire a month after the last comment posted). Simple HTML tags supported, URLs automatically become links, referrer checking, and permalinks.
When a user posts a comment, a .TXT file is created in a directory specified in the script, default is "/comments". The first comment is called "1.txt", second is called "2.txt", and so on, so to delete a comment you just delete the corresponding file. This of course isn't practical it needs to be easy, which is why I plan on implementing a "Delete" option, it's just a matter of how to do it securely.
There are only four things that need to be implemented before this comment system will be fit for the job: 1. Notification of replies to the email supplied, 2. A way to ensure that only certain people can post with certain names (i.e. No visitor can use the name "Webmaster" or "Tildehash" in my case.), 3. Delete option, comments have to be able to be deleted conveniently, 4. Clean up and document code.
This comment system is intended to replace Disqus, currently, Disqus is technologically superior to this comment system, but already ethically inferior for the reasons stated here: http://www.tildehash.com/?article=why-i ... ing-disqus
Anyone interested in helping me develop this or if you need help using it, please contact me: http://www.tildehash.com/?page=contact or do-what-you-do-at-Identi.ca at me: http://identi.ca/jacobwb
You can view my comment system here: http://www.tildehash.com/comments.html
And the source code here: http://www.tildehash.com/comments.php?source
When a user posts a comment, a .TXT file is created in a directory specified in the script, default is "/comments". The first comment is called "1.txt", second is called "2.txt", and so on, so to delete a comment you just delete the corresponding file. This of course isn't practical it needs to be easy, which is why I plan on implementing a "Delete" option, it's just a matter of how to do it securely.
There are only four things that need to be implemented before this comment system will be fit for the job: 1. Notification of replies to the email supplied, 2. A way to ensure that only certain people can post with certain names (i.e. No visitor can use the name "Webmaster" or "Tildehash" in my case.), 3. Delete option, comments have to be able to be deleted conveniently, 4. Clean up and document code.
This comment system is intended to replace Disqus, currently, Disqus is technologically superior to this comment system, but already ethically inferior for the reasons stated here: http://www.tildehash.com/?article=why-i ... ing-disqus
Anyone interested in helping me develop this or if you need help using it, please contact me: http://www.tildehash.com/?page=contact or do-what-you-do-at-Identi.ca at me: http://identi.ca/jacobwb
You can view my comment system here: http://www.tildehash.com/comments.html
And the source code here: http://www.tildehash.com/comments.php?source