[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget)
-
@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.
-
@nodecode said:
@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.
Okay, I think I've found the error. The posts were not loaded into the forum, therefore, returns the URL http://sub.example.org/comments/get/XXX/0 "502 Bad Gateway", and sets, unlike the plugin is written, no Access-Control-Allow-Origin header.
-
So now that the permissions system is more or less rocking, does this mean something like this will be possible?
Blog Commenting Engine Feature ยท Issue #2 ยท psychobunny/nodebb-plugin-blog-comments
originally posted by @a5mith at NodeBB/NodeBB#1244 Continuing on from http://community.nodebb.org/topic/810/nodebb-plugin-blog-comments-blog-commenting-engine-ghost-wordpress-widget#7785 at some point, it would be great to integrate node...
GitHub (github.com)
-
@julian Don't know how I missed your post here.
Would it be possible for a plugin to check what group a user is in? Similar to the if isAdmin currently. Or is this what you were referring to?
My plan is to have a group, with everyone who can post using this plugin inside that group. (Once it supports multiple sites)
-
@julian No idea.
The plan was to have multiple Wordpress powered sites using my forum as a comments platform, anyone in a certain group could use the comments system on their site. It's going back to this post that I made back when it only supported Ghost.
@psychobunny liked the idea and was added as an issue on github.
-
Okay so just to recap, I've updated this plugin:
you can add multiple blogs to your forum. You can have all blogs posting to one category, or you can set a unique category for each separate blog.
Also, it doesn't have to be of the same blog type, so you can do WP and Ghost, for example.
It now supports:
- Multiple blogs
- Allow users in a
publishers
group to gain access to publishing rights
-
Hmm, are you logged in as admin on your NodeBB? Also check your console when you refresh your WP article, and let me know if you run into any errors