Coder Social home page Coder Social logo

jskomment's Introduction

jskomment

jskomment is an open source commenting system that is built on javascript and AJAX.

No support is provided. Pull requests are welcome

jskomment is inspired from http://www.js-kit.com, http://www.intensedebate.com and http://www.disqus.com. Its unique feature compared to the competition is that it supports multiple different comment threads per page.

Being open-source, you can modify it as much as you need, and you have access to the raw comment data.

Demo: http://www.monperrus.net/martin/open+source+ajax+commenting+system

Installation

Create a folder for the data files:

cd server
mkdir jskomment-data
chmod 777 jskomment-data

Open test.html

Alternatively, add the following snippet in your web page (ensure that JQuery is loaded as well, see test.html)

For page-based commenting:

<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="jskomment-core.js"></script>
<div class="jskomment"></div>
<script> JSKOMMENT.main(); </script>

How to support Markdown in comments?

You can use any JS markdown library. For instance, with pagedown:

<script type="text/javascript" src="pagedown/Markdown.Converter.js"></script>
<script type="text/javascript" src="pagedown/Markdown.Sanitizer.js"></script>
<script> 
var converter = new Markdown.Converter();
JSKOMMENT_CONFIG={};
JSKOMMENT_CONFIG.url="http://www.example.com/jskomment/";
JSKOMMENT_CONFIG.format_function = function (str) { 
  return converter.makeHtml(str);
};
</script>

How to protect comments with captchas?

You can set up a captcha URL as follow:

JSKOMMENT_CONFIG={};
JSKOMMENT_CONFIG.captcha_url = 'http://www.monperrus.net/martin/captcha.php';
JSKOMMENT_CONFIG.authenticate = function(elem) {
  JSKOMMENT.authenticate_with_captcha_default(elem);
};

Troubleshooting

Is .htaccess readable by the web server and loaded? Is mod_rewrite loaded?

jskomment's People

Contributors

monperrus avatar

Watchers

James Cloos avatar Taminder Bariana avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.