PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Jul 03, 2020 12:09 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Jul 28, 2010 10:17 pm 
Offline
Forum Commoner
User avatar

Joined: Fri Jul 16, 2010 7:17 am
Posts: 43
Location: Apple Valley, California
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


Top
 Profile  
 
PostPosted: Fri Jul 30, 2010 5:39 am 
Offline
Forum Commoner
User avatar

Joined: Fri Jul 16, 2010 7:17 am
Posts: 43
Location: Apple Valley, California
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group