Skip to content

Simple PHP/MySql code to add comments to any static html site with only 2 lines of html code.

Notifications You must be signed in to change notification settings

safiely/Comments

 
 

Repository files navigation

Comments

Simple comment system that you can host yourself using PHP and MySql.

Simply add something like the following 2 lines to any static html page.

<div id="comments"></div>
<script type="text/javascript" src="http://silentorbit.com/comments/inc/1/script.js"><script>

To also support when javascript is disabled use add the following code:

<noscript>
    <object data="http://silentorbit.com/comments/inc/1/ref.html" width="600" height="500" />
</noscript>

For this to work you must have registered your site and be given a site id(sid) as seen being used in the code. This makes it possible for you as the site owner to allow anonymous comments and delete comments of others.

Source Code

Source code is available at GitHub

Demo

Is available at http://silentorbit.com/comments/

About

Simple PHP/MySql code to add comments to any static html site with only 2 lines of html code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 86.1%
  • JavaScript 10.2%
  • CSS 3.5%
  • ApacheConf 0.2%