[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget)
-
Because AFAIK disqus comments lives on the actual blog page itself; it doesn't publish the OP to a forum (ie. Disqus isn't actually a forum software but a commenting software).
The changing parts are the mechanism for pulling markdown/html from the blog's API and submitting it to NodeBB to publish. Should be straightforward to that part for other blog software I just need the time
-
@psychobunny said:
Does the Custom Design upgrade let me edit HTML?
No. The Custom Design upgrade allows you to edit fonts, colors, and CSS only. You can change the appearance of a theme, but not its HTML markup or PHP code.Yeah you're right, sorry. You'd have to host it yourself. Why not host your WP and NodeBB on the same server?
If WP version will be ready I will try to create an own hosted copy of the current blog, however never tried install an maintain WP before, but it coulld be an good chalange
-
If you really want to a self-hosted WP blog and you can afford $5/month for a Cloud server, I could help you set one up.
-
@planner Thanks. I'm currently using digitalocean's droplets. It is cheap, reliable, fast, and has good additional features like daily backup, and snapshot.
-
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
-
@psychobunny Tried adding this but when I click the publish button on my ghost blog nodebb crashes. this is what gets spat out from nodebb.
/var/nodebb/node_modules/redis/index.js:535
throw err;
^
TypeError: string is not a function
at Object.Topics.post (/var/nodebb/src/topics.js:90:11)
at /var/nodebb/node_modules/nodebb-plugin-blog-comments/library.js:96:11
at /var/nodebb/src/database/redis.js:317:4
at try_callback (/var/nodebb/node_modules/redis/index.js:532:9)
at RedisClient.return_reply (/var/nodebb/node_modules/redis/index.js:614:13)at HiredisReplyParser.<anonymous> (/var/nodebb/node_modules/redis/index.js:2
66:14)
at HiredisReplyParser.EventEmitter.emit (events.js:95:17)
at HiredisReplyParser.execute (/var/nodebb/node_modules/redis/lib/parser/hir
edis.js:43:18)
at RedisClient.on_data (/var/nodebb/node_modules/redis/index.js:488:27)
at Socket.<anonymous> (/var/nodebb/node_modules/redis/index.js:82:14) -
This looks awesome. It would be great if users could connect their blogs to the forum in this way where it automatically double posts and comments are shared across platforms. Tumblr uses disqus, as do a lot of websites. It's an interesting setup, but obviously having it connect back to a shared forum rather than just accumulating a post count across random comments sections is a big step up.
This is what the disqus looks like on the 'topic' page. It looks very similar. Every disqus applies for a shortname, like you would a client ID, for each website you want to set up comments for. What I don't understand from looking at the nodebb version of this is, how do you designate what nodebb user relates to the OP, and are you supposed to post on the forum first, then the blog, vice versa, does one automatically post after the other? I dont have ghost so I can't see how it works.
<div id="disqus_thread" class="disqus"></div> <script type="text/javascript"> var disqus_shortname = '{text:Disqus Shortname}'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); </script> <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
-
I'm not sure if I fully get what you're saying, but for example @ http://blog.nodebb.org/widgets-system/
If you were logged into community.nodebb.org, you'd be able to comment there. If not or you were a new user, there are login/register buttons that open up a popup to our community site, lets you authenticate, and then lets you comment straight on the blog itself.
If you were to start your own blog, my sessions are not shared with yours, ie. if I was logged into nodebb community and I went to your blog, I'd still have to register on your site either via your forum or via the auth popup. (I'm assuming Disqus is similar as well?)
-
@psychobunny Any update on the crash I was having?
-
yeah its been fixed sorry if I forgot to report back! pls
npm install nodebb-plugin-blog-comments
or./nodebb upgrade
(fix courtesy of @baris )
-
hmm, just did a git pull and then ./nodebb upgrade and tried to publish comments again and got this error;
error: [app] Encountered Uncaught Exception: string is not a function
TypeError: string is not a function
at Object.Topics.post (/var/nodebb/src/topics.js:92:11)
at /var/nodebb/node_modules/nodebb-plugin-blog-comments/library.js:96:11
at /var/nodebb/src/groups.js:133:6
at /var/nodebb/src/database/redis.js:317:4
at try_callback (/var/nodebb/node_modules/redis/index.js:532:9)
at RedisClient.return_reply (/var/nodebb/node_modules/redis/index.js:614:13)at HiredisReplyParser.<anonymous> (/var/nodebb/node_modules/redis/index.js:2
66:14)
at HiredisReplyParser.EventEmitter.emit (events.js:95:17)
at HiredisReplyParser.execute (/var/nodebb/node_modules/redis/lib/parser/hir
edis.js:43:18)
at RedisClient.on_data (/var/nodebb/node_modules/redis/index.js:488:27)
error: [app] Could not restart server. Shutting down. -
okay, @baris just informed me he fixed a different plugin and not this one. Sorry! 0.3.x to 0.4x = tons of breaking changes in the next few weeks, all of us are going to try hard to keep our plugins and themes up to date in time for the next release
What happened recently is the topics.create function signature changed to just accept a hash of topic data input, so I'll have to update my plugin to reflect that change as well.
-
@psychobunny
Dont worry i'm not sure what i'm saying here either. lol. i dont fully understand how this plugin works.
As far as how Disqus works, I do know because i use it quite frequently. All comments sections are connected to one another across all websites, so you only have one login, one running post count, and one running count of how many times all your posts have been upvoted. When you post on your blog, disqus reads the title of your post and creates a new comments thread titled by default, "Blog Title - post title" What it doesnt do is record the op, or post it to a forum.... which is what i hope this plugin does/will do in the future.Anyway, I think this would be an awesome plugin if all users on, for instance, the community.nodebb.com, could then go and put a community.nodebb.com-related comments section on their NodeBB dev blog.... And even for it to automatically post that blog post to the community.nodebb.com forum under an appropriate category. To me this makes a lot of sense. The folks most likely to comment on a NodeBB-related blog ARE the nodebb community and vice versa, so you want to connect those two together. I mean, how many people have GIVEN Up using forums because they wanted to just start their own blog instead? Maybe like 90% of the entire blogosphere, considering forums are where most of them started. If you combined the comments sections you'd get ALLLLL of those people back on forums, at the same time driving more active commenters to their own blog.