nodebb-plugin-blog-comments
nodebb-plugin-blog-comments copied to clipboard
not working with latest ghost/nodebb
Relevant Packages
node v.6.11.4
npm 3.10.10
Ghost-CLI version: 1.1.3
Steps to reproduce:
- Clean ghost install
- Removed default posts
- npm install nodebb-plugin-blog-comments
- copy ghost sample section into
casper/post.hbs
<a id="nodebb-comments"></a>
<script type="text/javascript">
var nbb = {};
nbb.url = '//your.nodebb.com'; // EDIT THIS
nbb.cid = 1; // OPTIONAL. Forces a Category ID in NodeBB.
// Omit it to fallback to specified IDs in the admin panel.
(function() {
nbb.articleID = '{{../post.id}}'; nbb.title = '{{../post.title}}';
nbb.tags = [{{#../post.tags}}"{{name}}",{{/../post.tags}}];
nbb.script = document.createElement('script'); nbb.script.type = 'text/javascript'; nbb.script.async = true;
nbb.script.src = nbb.url + '/plugins/nodebb-plugin-blog-comments/lib/ghost.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(nbb.script);
})();
</script>
<script id="nbb-markdown" type="text/markdown">{{../post.markdown}}</script>
<noscript>Please enable JavaScript to view comments</noscript>
- edit
nbb.urlto match my nodebb url - activate in ACP
- systemctl restart nodebb
- create new post
Expected result:
See a section below my blog post which enables me to comment.
Actual result:
I now see a blog forum section, although there are no posts listed here, and nothing appears to have changed on my actual blog (no comments section). I've tried to post to this blog subforum on nodebb and it doesn't go the reverse to the actual blog. My question is: how would this even authenticate from nodebb > ghost or vice versa? I must be missing something?
Logs
I see nothing of relevance in nodebb output.log file. It only shows starting the server and shutting down.
Let me know where else to check or if there's something else I should be doing.
The plugin maintainer said (Aug 3, 2017):
I'm quite certain this works with the latest version of NodeBB as we are using this currently on our forum: https://blog.nodebb.org/v1-5-0-a-long-awaited-release/
May not be up to date with the latest version of Ghost though, so that might be the issue here. It's come up pretty recently that we should consider upgrading our blog to latest, and when that happens I'll certainly make sure that the plugin works with it
[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget) | NodeBB
I've just seen the official NodeBB Development Blog has been upgraded to Ghost 1.21, and NodeBB comments are working on it.
So I've installed it with the current Ghost and NodeBB, and it works.
After publishing a Ghost article there is a button on it saying "Publish this article to NodeBB", to activate the comments on Ghost and NodeBB.
Remember to follow all the installation steps (file README.md), including the publish settings in NodeBB Admin > Plugins > Blog Comments.