Comments Script

A pre written comments script with admin section and cookie support to remember admin.

In category php.

Posted by Joseph Skidmore on 12.09.05.

Last edited on 12.09.05.

This is my comments script which I have spent the last month developing. I have tried to add as many functions as possible without it getting too complicated and I am now ready to release Version 1.0 of my comments scripts!

The features included with this script are as follows;

  • - Admin Section with Cookie [Remember Me] support.
  • - Ability to delete an individual record.
  • - Ability to delete all records at once.
  • - Webmail & Email check. To display a URL or a mailto: link.
  • - Empty field check. If a field is left empty it will replace it from an empty record to something else of your choice;
    • In index.php you will find:
    • if ($name =="") $name = 'Anon';
    • if ($comment =="") $comment = 'This person was too lazy to write a comment!';
    • If the name field is left empty it will write 'Anon' into the database
    • If the comment field was left empty it will write 'This person was too lazy to write a comment!' into the database.
    • Both can be changed to anything you want.
  • - Storage of each users IP address when posting a comment.
  • - Paginator. In config.php you will find '$per_page = 10;' Change this number to the amount of records you wish to be seen on your page before the script creates a new page.
  • - First, Previous, Next and Last page jumps. Easy links to different pages of comments.
  • - rel="nofollow" to stop spammers from getting credits in search engine rankings.

A big thanks to Will Crooks for helping me with the security side of this script and beta testing it to pick out all my errors. Thanks to him this script is now more secure using the stripslashes and safeAddSlashes functions to prevent sql injections.

Additional: It was brought to my attention that there were a few coding errors in my original code, for this reason I have updated the file with the fixed and certain updated code. I apologise for any inconvenience caused. The file was updated on 09.07.05.

Joe2Torials Comments - Proudly Hosted at Hotscripts

http://www.hotscripts.com/ Banner

To download a copy of my comments script click here: Comments Script (Downloaded Times)

Page generated in 0.0013 seconds.

Whatcounter Free Invisible Stats CounterFree invisible hit counter