Page 1 of 1

Adding features to my Free Software PHP Comment System

Posted: Wed Jul 28, 2010 10:17 pm
by TildeHash
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

Re: Adding features to my Free Software PHP Comment System

Posted: Fri Jul 30, 2010 5:39 am
by TildeHash
Well someone from this forum found a flaw in my comment system and shared with me where the problem was instead of using it maliciously. And I thank him/her for that. Went through my site quite thoroughly, in less than 30 minutes.

IP Address: 89.248.91.145
Page: http://www.tildehash.com/?article=why-i ... ing-disqus
From: viewtopic.php?f=26&t=119277
Computer: Mozilla/5.0 (Windows; Windows NT 6.1; WOW64; rv:2.0b2) Gecko/20100720 Firefox/4.0b2
Hit six different pages. On 07/29/10, at the following times:
9:35:30am PDT
9:40:19am PDT
9:40:30am PDT
9:40:32am PDT
9:55:39am PDT
9:57:52am PDT
10:06:40am PDT
10:06:43am PDT
10:06:44am PDT
10:06:46am PDT