[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget)
-
@psychobunny Yepp, activated, even went in and activated all the parts of the plugin, to make sure it wasn't that.
I'll delete it and try again. It's possibly koding at fault. I'll throw together a quick droplet and test that way.
Ok, got this working on Digital Ocean, had the same error. But this plugin won't work if you use post_id rather than pretty permalinks. I couldn't change this on koding as wordpress didn't have write access to htaccess. However this now works on Digital Ocean.
Thanks a lot.
-
I'm working on a new version that will be cross-compatible with any CMS, etc. It won't be for a while because I'm a bit busy with the new theme and stuff, but yeah, I'm glad that you figured it out
EDIT: I'm not 100% sure what you mean tbh, I only had a chance to test it out on my own WP blog. So if you don't use pretty permalinks, this will not work?
-
The default permalink in Wordpress is postID, when you try to post to nodebb, it errors out at title too short (3). It seems to only take the ID in that case, but most people use proper permalinks anyway.
It's also rather difficult to rebrand. but it's a good plugin, so I'll let you off, I guess.
-
haha right. I saw your issue. Will look into it at some point
-
@psychobunny No rush, it works, I'm happy.
-
it works
Well that's a refreshing change.
-
Updated this plugin to allow you to use NodeBB's category and author information rather than ghost/WP's, ex:
-
@psychobunny, excellent work. This makes my intended usage schema perfect.
-
It's strange, I can't get this to work with Ghost as it seems that they changed the way the API works. The placeholder API documentation says that it should return posts with status published for calls with NoAuth.
I am stuck on the "sign in to Ghost to enable the publish button." page.
The GET call to
/ghost/api/v0.1/posts/22/
returns a 401 Unauthorized, with the response{"type":"error","message":"Please Sign In","status":"passive"}
In the meantime I opened an issue on the nodebb-plugin-blog-comments Git repo as well as submitting a pull request to enable protocol relative links in the comment embed scripts to stop displaying mixed content warnings when the blog is served via https.
-
afaik, I've always had to be signed in to publish. I'm assuming that if you're signed in it does work? thanks for the PR btw
EDIT: nvm, read your issue, I guess this is a problem on our end then - time to upgrade our blog to v0.5
-
@psychobunny the problem is that I am signed in when that message appears. Going to spin up an instance of Ghost 0.4 (the same that you're using on the nodeBB blog) and try that. From what I see the API responses have changed between 0.4 and 0.5 (which I'm currently running).
-
yeah, looks like it might be an easy fix actually
-
@psychobunny glad to hear that.
I also stumbled upon a bug when testing with that Ghost v0.4 instance. If you delete the thread in the NodeBB instance the blog embedded comments section still thinks it has a thread in which to post comments. Any way to manually unlink the two after purging a thread from the forum that is linked to a blog post?
-
@psychobunny said:
Not today. Ghost has a long way to go in terms of development - if you see their ACP you can tell that they are missing a lot. And more importantly, Ghost is currently single account only; they do not have multiple sign-ups yet.
When the time comes, I'm down for writing a deeper integration
Hi I'm new to the NodeBB and I'm interested in the current/future state of "ghost comments" integration?
I'm asking because multiple user support has been "finally" added this month to the Ghost 0.5The thing is I would like to design a theme for Ghost and NodeBB with this integration in mind
-
@Feomathar the problem right now is that the Ghost API isn't exactly finalized/available for public consumption (heck, there isn't even any official documentation available ), which may make things a bit difficult to implement/mantain.
@psychobunny, I forgot to ask if contributions to the plugin are welcome, so I just assumed that it being on GitHub and public means that I can spam you with PRs :shipit:
-
I have to look into the API, I haven't gotten up to speed with 0.5 just yet. As @fuzzmz says as well, I'm a little bit wary of jumping headfirst because I know I'm probably going to have to refactor things again a month from now
I forgot to ask if contributions to the plugin are welcome
If you're enjoying it I can even just give you the repo if you promise to continue developing on it but otherwise yeah of course contributions are welcome. Thanks for the new feature
-
Hi...
Its loading a url that doesnt exist
agiletesters . com . br/comments/get/7/0
i tried to change the plugin to get the url agiletesters.com.br / topic / 45 / get / 0 but it seems its looking for a topic id doesnt exist.. (embed.min.js)
( i got 2 posts.. one that had the comments working and the other that i didnt created the post on forum )
Any clues?
update.. crap.. cache..
and API problem on ghost{"type":"error","message":"Please Sign In","status":"passive"}
-
Right now the plugin doesn't work with Ghost's 0.5x but only 0.4x - I'll be looking into this later in the week but atm just a little bit busy with things Hopefully downgrading Ghost for now will help
-
Also looking into the Ghost 0.5 compatibility, but considering my knowledge of JS/NodeJS is pretty slim it might take some time. In any case, if I find anything I'll submit a pull request and update the thread here.
The problem comes mainly from the lack of an official Ghost API (well, it exists but not documented or officially released) so no bugs can be logged against it. For example, retrieving post information should be doable without having to authenticate as an admin, but right now it returns that error.
So far I've got a hackish solution to authenticating against the Ghost API and retrieving the token, but it involves hardcoded admin credentials. The next step is to pass that token as an auth header when asking for the post information.
I've got the source up on GitHub on the ghost_0.5_auth branch so any tips/info/PRs are welcome.