Skip to content

Extends Leafpub (previously Postleaf) to support comments from registered users

License

Notifications You must be signed in to change notification settings

oztourer/Leafpub-comments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leafpub-comments

A basic commenting system integrated into Leafpub.

Created by Steve Pike

Leafpub requirements

  • PHP 5.5+
  • MySQL 5.5.3+

Development status

  • The code was not developed using the prescribed Leafpub tools of node.js, composer and gulp, and the provided composer.json and gulpfile.js are untested skeleton files.
  • The SQL Comments table includes a parent field, allowing nested replies to comments, but this has not yet been implemented in the Comments class.
  • There is currently no admin interface to comments.
  • Comments are for now just plain text - no HTML or Markup support.

Installation

  • Install Leafpub!
  • Copy the files from directory 'app' to the root directory of the Leafpub installation. If done correctly you should have index_comments.php in the same directory as Leafpub's index.php, and a new directory Plugins below source/Classes.
  • Run defaults/default.comments.sql on the existing Leafpub database to create the Comments table (you may need to edit prefix 'leafpub_' to suit your installation).
  • To enable Comments add the following line near the end of Leafpub's index.php, just above $app->run():
  • require 'index_comments.php';
  • No changes should be required to the existing Leafpub classes.
  • Install theme wildgeese as an example implementation of comments within a theme (other themes should still work but will not show or support comments).

Versioning

Leafpub is maintained under the Semantic Versioning guidelines and this plugin attempts to adhere to the same guidelines.

Developers

Steve Pike

License

© 2016 Steve Pike

This software is copyrighted. You may use it under the terms of the GNU GPLv3 or later. See LICENSE.md for licensing details.

About

Extends Leafpub (previously Postleaf) to support comments from registered users

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published