[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget)



  • @psychobunny said:

    You'd need your own hosted WP (I'm assuming you can't modify the template's source code on their hosted service, can you?)

    Some part could be modified (eg. headers, and CSS). I not sure this is enough.


  • Admin

    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?



  • Why couldn't this be an all in one plugin package? Kind of like the Disqus plugin?


  • Admin

    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



  • Disqus comments live on Disqus - they only "sync" to the blog if you want them to. It wouldn't be hard to have a plugin push the post to an "api" of sorts (ie nodebb) via plugin, though.



  • @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 ๐Ÿ™‚



  • @jtarjanyi

    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.



  • Would doing a user database sync be possible? So that you could like accounts between ghost and nodeBB instead of checking if someone's an admin of both?


  • Admin

    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)


  • Admin

    Hey @sp4rkr4t, we're aware of the issue, we'll fix it up sometime today I think...



  • Excellent news. ๐Ÿ‘



  • 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>
    

  • Admin

    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?


  • Admin

    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.


  • Admin

    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.



  • Ok then, I'll go back to waiting patiently ๐Ÿ™‚


 

| |