Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working with latest ghost/nodebb #73

Open
boredomdenied opened this issue Oct 12, 2017 · 3 comments
Open

not working with latest ghost/nodebb #73

boredomdenied opened this issue Oct 12, 2017 · 3 comments

Comments

@boredomdenied
Copy link

boredomdenied commented Oct 12, 2017

Relevant Packages

node v.6.11.4
npm 3.10.10
Ghost-CLI version: 1.1.3

Steps to reproduce:

  1. Clean ghost install
  2. Removed default posts
  3. npm install nodebb-plugin-blog-comments
  4. 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>
  1. edit nbb.url to match my nodebb url
  2. activate in ACP
  3. systemctl restart nodebb
  4. 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.

@juan-g
Copy link

juan-g commented Apr 4, 2018

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

@juan-g
Copy link

juan-g commented Apr 13, 2018

I've just seen the official NodeBB Development Blog has been upgraded to Ghost 1.21, and NodeBB comments are working on it.

@juan-g
Copy link

juan-g commented Apr 13, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants