Simple Comments
https://github.com/Faokryn/SimpleComments
What is it?
Simple Comments aims to be a commenting system which can be implemented in almost any website quickly and easily. Allowing a website's user base to comment on the content of the site is an important part of maintaining an online space. Simple Comments aims to be easy enough for non-technical creators to add to their websites or blogs, and simple enough for fledgling web developers to understand and modify.
Simple Comments aims to be more transparent than solutions such as Disqus, which is not open source, and which requires users to have an account and store data on Disqus's server, and easier to understand than solutions such as Discourse or Juvia, which contain many more features and are aimed at creating forums.
How does it work?
To implement a commenting system with Simple Comments, a user need only use two files and two lines of code. A single JavaScript file handles sending the form data to the PHP file and populating the comment section of the website. A single PHP file handles the requests from the JavaScript file, storing an retrieving data from an SQLite3 database it creates itself.
The user simply has to place the two files in the same directory on their web server, and add two lines of code to any pages on which they would like comments: a script tag referencing the JavaScript file, and a div with the correct id where they would like the comments to populate.
Highlights
- Easy to add to almost any webpage with only two lines of code
- Supports Libravatar and Gravatar
- Each HTML element in Simple Comments has an id or class, beginning with "sc_", and can be styled with CSS
- The default CSS style is added before the first child element of , so any style tags or external style sheets added to will override the default style
- The default style can also be removed completely by commenting out a single, well-marked line in the JavaScript file
- One database can be used for a different comment stream on each page of your site
- Dynamic page manipulation with AJAX
- Inputs are validated and sanitized
Log in or sign up for Devpost to join the conversation.