This is really a great script. It is compact and usefull.
It will give the visiters the chance to comment on every page in which
you add the script.
I changed a lot in the original script, so now it only shows the
number of comments on the page and users have to click to see the comments.
1.02 adresses a problem with commenter on pages more than 1 level deep.
NEW: Added display of maximum xx comments per page (page selectable)
Fully Win32 compatible. Email address harvest protection added.
In this version all public displays now use POST. This to avoid very long url's
in the browser.
Furthermore there is a maximum number of comments that will be displayed, since
noone wants to read 50++ comments, and proper administration is added.
Changed the original script to Globals off compatible.
All settings are now transferred into a config.php file.
Extra settings in config:
- max.number of comments to display,
- logging on or off,
- every new comment is send by email to webmaster (on/off).
- summary of all dirs that use commenter.
- automatic deletion of comments after xxx days (on/off)
Added a character counter in the input screen, so users
can see how many characters are left.
Comments are stored in a txt file in a '/comment' subdir of
the page's directory. So if the directory of the page is 'main' the comments are in 'main/comments'
The text file has a code_64 base scrambled name for security.
You can see the script working at the bottom of this page.
In the bottom of your page add the following:
<?php
include_once("../commenter/commenter_cnt.php");
?>
change the path according
to your needs If you want the comments to be displayed directly (no count of comments) <?
$showall=1;
include_once("../commenter/commenter_cnt.php");
?>
change the path according
to your needs
That is all the script requires. See below for sample.
Aministrative section.
- admin. display / view of all comments. (commenter_list)
- can delete all comments of a certain page.
- edit comments through admin link on page that has comments added.
Leave the administrative portion in the admin dir so you can protect
the files.
Protect the admin section with .htaccess or uncomment the authorization.
Version 1.04 now has badwords.txt included.
Any comment with a bad word is not published.
Version 1.05:
solves problem with automatic deletion of old comments and empty comment file.
Version 1.05A
solves some Firefox problems, display should be ok now.
Version 1.06
Has all language used in config file, for easy translation.
Checks on submission for empty name or empty comment.
Took out an admin error on deletion of last comment (15/3/06)
Added prevention of double adding comments.
Version 1.06a
Solved small error when last comment is deleted, comment file is now deleted too
Version 1.07:
If used with $showall=1 posting the message will cause the page to be reloaded
with messages as tag.