[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget)
-
Wordpress integration is finally here Check out the repo for setup instructions. Go for a test drive on my blog:
-
You've just stolen Baris' 1 million internets from the tags.
May have a look at forking this when groups and their permissions come into play. seems relatively simple to allow this for anyone in a group. Hopefully.
-
ahah I forgot to add that tags are fully supported, so your WP tags get transferred to NodeBB as well
-
Really nice! What happens to existing WP comments?
-
@planner Hello again!
I imagine they're replaced completely, so existing comments are just hidden (although if the post had comments before, it'll still be reflected in the "x comment(s)" in your theme.
I imagine the comments are also not persisted to WP-database, so if you disconnect
blog-comments
, your comments are removed as well. -
Yup pretty much as @julian said. Someone theoretically could write an importer, but if I'm honest it's going to be a job and a half figuring out how to import disqus, muut, and vanilla WP comments
although if the post had comments before, it'll still be reflected in the "x comment(s)" in your theme
Currently, I've figured out the comments count for the individual posts themselves. For the home page, I'll set up an API in the future to figure out the comment count
-
what commenting platform are you using? I'm definitely going to build those importers but after I get the rest of my TODOs out of the way
-
@psychobunny said:
what commenting platform are you using?
WP vanilla commenting system.
Btw, when did we lose the post edit feature?
Edit: Ok, so we did not lose it completely, but what is the time limit on it, and is it configurable?
-
That might have been fixed already, sorry missed this message
Also how would posts be imported without the comment users having an account? Unless you could merge the WP userbase with NodeBB?
Yeah I guess we could make all of them "anonymous". Writing a WP importer might be a lot easier than writing one for your average forum software, now that I think about it
-
@psychobunny
awesome!
Good work, i will testing it. =] -
@psychobunny said:
Yeah I guess we could make all of them "anonymous".
Rather than making all anon, would it be possible to use the names they used to post?
-
Yeah, I figure the right way to go about it is -
Every user that posted will have submitted their username and email (likely). We could email all of those users, and create a deactivated account for them. If they verify via email, activate their account. The only catch is if that username already exists on your forum...
-
Is there any special requirements for Nginx to get this working? When post request is made to https://community.ag-aus.org/comments/publish, I get an 502 error.
-
hey, did you remember to set up the blog's URL in the ACP? Also, what version of NodeBB are you running?
-
@julian there is no error in NodeBB as Nginx just drops the 502 error, the request seems not to make it to Node.. which is really weird. I mean the article wont actually publish to NodeBB from the blog. SO I can't exactly test any comments yet.
@psychobunny yes, I setup the blogs URL and category ID. And running v4.3.
When I try and simulate the request, I get a 403 {
"error" : "Forbidden"
}out of express.
All is well! had some JSON issues getting the blog deets, once I got that right it worked!
-
@psychobunny said:
Wordpress integration is finally here Check out the repo for setup instructions. Go for a test drive on my blog:
For me, the WordPress integration does not work. e.g.:
WordPress: example.com
NodeBB: sub.example.com
Console: XMLHttpRequest cannot load http://sub.example.com/comments/get/XXX/0. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://example.com' is therefore not allowed access.I'll try to add the 'Access-Control-Allow-Origin' header with nginx.