NodeBB Blog Comments (Ghost / WP Commenting Engine)
npm install nodebb-plugin-blog-comments2This plugin is a folk from NodeBB Blog Comments, I just added some more features and fixed some bugs to it.
* Support multiple blogs, use articleID and blogger to distinguish posts from different blogs, so this is kinda break change to the original nodebb-plugin-blog-comments.
* Simple script for ghost, hugo, pelican etc, and a general script for any other blogs, just add a node at any place of the page, will support more blog platforms later.
* Use siteTitle instead of NodeBB in the comments.tpl.
* Support social sites sharing plugin and upvote and bookmark actions.
* Two css styles for comments.
* Fixed some bugs, like escaped title and content problems, profile image display, etc.
The multiple blogs feature is great, you can see at here: https://v2mm.tech/category/46/blog
There are already some blogs conntected with V2MM.
The original NodeBB Blog Comments lets NodeBB act as a comments engine/widget for your blog. It supports both Ghost and WordPress.
The comments are exposed to any plugin you have built into the core, so it is completely possible to have emoticons, embedded video, and/or whatever else you want in the comments section of your blog.
Articles are published to a forum category of your choice, and will gain a tag that links it back to the original article.
* Style 1
!style1
* Style 2
!style2
First install the plugin:
npm install nodebb-plugin-blog-comments2
Activate the plugin in the ACP and reboot NodeBB. Head over to the Blog Comments section in the ACP and select the Category ID you'd like to publish your blog content to (default is Category 1). Make sure you put the correct URL to your blog.
Put this script to anywhere in your blog's article page, either in head or body, fill the variables, see explanations below.
``html`
If you wish, you can create to where you want to place the actual comments widget.
Also, there are some special scripts for some common blog platform. But in various blog themes, these scripts cannot guarantee to be true.
For example, simple-wordpress.js can't be used on any wordpress websites.general.js
If you encounter any error, use instead or put an issue to me.
Paste this any where in yourtheme/post.hbs, somewhere between {{#post}} and {{/post}}. All you have to edit is line 3 (nbb.url) - put the URL to your NodeBB forum's home page here.
If you wish, you can move to where you want to place the actual comments widget.
See demo at hgkat's blog, her blog is using this script to connect with V2MM.
Just add this any where on your blog's page:
``
Note: ocid is the category id in your NodeBB, blogger is set for distinguish posts from different blogs.
See demo at Wave's blog, his blog is using this script to connect with V2MM.
``
See demo at Leyafo's blog, his blog is using this script to connect with V2MM.
``
See demo at Cycleuser's blog, his blog is using this script to connect with V2MM.
Wordpress plugin and any other plugins in PHP, I haven't test them yet, as I don't have those blogs.
If your blog is wordpress, and would like to connect with V2MM, I would be glad to set up this script for you.
First, install the Wordpress JSON API plugin.
Replace the contents of /wp-content/themes/YOUR_THEME/comments.php with the following (back-up the old comments.php, just in case):
`html
if ( post_password_required() )
return;
?>
You may optionally put a "# of comments" counter anywhere on the page with the following code:
`html`
Comments
A mechanism to query the number of comments on another separate page will be available in a future release.

To use NodeBB's category and author information (instead of using Ghost's user/tag system), there are two elements that this plugin searches for:
`html`
Published by in
Head over to the article that you'd like to publish. The code will detect if you're both an administrator of your blog and NodeBB (so ensure that you're logged into both) and will display a publish button if so.
You may also create a publishers` group in NodeBB to allow a group of regular users to have publish rights.