Skip to content
Simple PHP/MySql code to add comments to any static html site with only 2 lines of html code.
PHP JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
dashboard
showdown
.gitignore
.htaccess
COPYING.GPLv3.html
README.markdown
auth.php
comments.css
comments.php
config-dist.php
feed.php
feed.png
index.php
install.php
logout.php
markdown.License.text
markdown.Readme.text
markdown.php
post.php
script.php
shared.php
showdown.js
static.php
style.css
todo
update.php

README.markdown

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/

Something went wrong with that request. Please try again.