• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

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

Scheduled Pinned Locked Moved NodeBB Plugins
356 Posts 71 Posters 236.8k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Peter-Zoltan KeresztesP Offline
    Peter-Zoltan KeresztesP Offline
    Peter-Zoltan Keresztes
    replied to psychobunny on last edited by
    #254

    @psychobunny said in [nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget):

    I have no idea how this would have worked for you prior to the upgrade, unless you modified this line while trying to debug your code. This ought to fix it though.

    Actually this line was

    nbb.url = 'https://z0z0.me/comments';
    
    1 Reply Last reply
    0
  • psychobunnyP Offline
    psychobunnyP Offline
    psychobunny
    wrote on last edited by
    #255

    Yeah, that should work too. Any luck?

    1 Reply Last reply
    0
  • Peter-Zoltan KeresztesP Offline
    Peter-Zoltan KeresztesP Offline
    Peter-Zoltan Keresztes
    wrote on last edited by
    #256

    Did the change but no luck at all.

    301 Moved Permanently

    favicon

    (prntscr.com)

    Here the comments should show up.

    1 Reply Last reply
    0
  • psychobunnyP Offline
    psychobunnyP Offline
    psychobunny
    wrote on last edited by
    #257

    Aha. Change

    <a id="nodebb/comments"></a>

    to

    <a id="nodebb-comments"></a>

    For posterity, see ghost.js in this PR: https://github.com/psychobunny/nodebb-plugin-blog-comments/pull/52/files

    1 Reply Last reply
    0
  • Peter-Zoltan KeresztesP Offline
    Peter-Zoltan KeresztesP Offline
    Peter-Zoltan Keresztes
    wrote on last edited by
    #258

    Bingo, that was it. Thanks a lot for your help

    1 Reply Last reply
    0
  • psychobunnyP Offline
    psychobunnyP Offline
    psychobunny
    wrote on last edited by psychobunny
    #259

    Apologies, I meant: https://github.com/psychobunny/nodebb-plugin-blog-comments/pull/48/files

    And, it seems like in ghost.js that's the only thing you need to change anyways, so that's OK.

    EDIT: Awesome 👍

    1 Reply Last reply
    0
  • Peter-Zoltan KeresztesP Offline
    Peter-Zoltan KeresztesP Offline
    Peter-Zoltan Keresztes
    wrote on last edited by Peter-Zoltan Keresztes
    #260

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

    <span id="nodebb-comments-count"></span> Comments

    also I have put into the partials/loop.hbs

         <span id="nodebb-comments-count"></span> Comments
    

    to show the number of comments in each posts but this is all I can see:

    301 Moved Permanently

    favicon

    (prntscr.com)

    1 Reply Last reply
    0
  • JoykillerJ Offline
    JoykillerJ Offline
    Joykiller GNU/Linux
    wrote on last edited by
    #261

    Necroing - @psychobunny you going to ever update this to newest version of ghost / nodebb?

    1 Reply Last reply
    1
  • psychobunnyP Offline
    psychobunnyP Offline
    psychobunny
    wrote on last edited by
    #262

    hey @Joykiller I'm quite certain this works with the latest version of NodeBB as we are using this currently on our forum: https://blog.nodebb.org/v1-5-0-a-long-awaited-release/

    May not be up to date with the latest version of Ghost though, so that might be the issue here. It's come up pretty recently that we should consider upgrading our blog to latest, and when that happens I'll certainly make sure that the plugin works with it 😄

    JoykillerJ Juan G.J 2 Replies Last reply
    1
  • J Offline
    J Offline
    Jay Shaffstall
    wrote on last edited by
    #263

    I have a possibly unusual use case that shows I probably don't understand how NodeBB integration is working with this plugin. I'm on Wordpress.

    Here's what I thought happened: the plugin uses the Wordpress article id to use to create a new NodeBB topic with that same id when the Publish button is pressed. Afterward, since the topic already exists, you see the posts and comment form instead of the Publish button.

    My use case is that the topic already exists (it was created in NodeBB) and I'm trying to tie a Wordpress post to it. I'm using the general approach and setting nodebb.articleID to the NodeBB topic id.

    What I expected was to see the comment box and current posts in that topic. What I'm seeing instead is the Publish button.

    Am I misunderstanding how things should be working?

    JoykillerJ 1 Reply Last reply
    0
  • JoykillerJ Offline
    JoykillerJ Offline
    Joykiller GNU/Linux
    replied to psychobunny on last edited by Joykiller
    #264

    @psychobunny said in [nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget):

    hey @Joykiller I'm quite certain this works with the latest version of NodeBB as we are using this currently on our forum: https://blog.nodebb.org/v1-5-0-a-long-awaited-release/

    May not be up to date with the latest version of Ghost though, so that might be the issue here. It's come up pretty recently that we should consider upgrading our blog to latest, and when that happens I'll certainly make sure that the plugin works with it 😄

    Cool, I'll be waiting there has been alot of changes in Ghost lately.

    1 Reply Last reply
    0
  • JoykillerJ Offline
    JoykillerJ Offline
    Joykiller GNU/Linux
    replied to Jay Shaffstall on last edited by
    #265

    @jay-shaffstall said in [nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget):

    I have a possibly unusual use case that shows I probably don't understand how NodeBB integration is working with this plugin. I'm on Wordpress.

    Here's what I thought happened: the plugin uses the Wordpress article id to use to create a new NodeBB topic with that same id when the Publish button is pressed. Afterward, since the topic already exists, you see the posts and comment form instead of the Publish button.

    My use case is that the topic already exists (it was created in NodeBB) and I'm trying to tie a Wordpress post to it. I'm using the general approach and setting nodebb.articleID to the NodeBB topic id.

    What I expected was to see the comment box and current posts in that topic. What I'm seeing instead is the Publish button.

    Am I misunderstanding how things should be working?

    You need to click the publish button before comment box shows up.

    J 1 Reply Last reply
    0
  • J Offline
    J Offline
    Jay Shaffstall
    replied to Joykiller on last edited by
    #266

    You need to click the publish button before comment box shows up.

    What does the publish button do, exactly? I had been assuming it created the topic in NodeBB. But if the topic already exists, what does publish do?

    1 Reply Last reply
    0
  • J Offline
    J Offline
    Jay Shaffstall
    wrote on last edited by Jay Shaffstall
    #267

    I confirmed on a test site that clicking the button does create a new topic, so clearly I am not understanding what the Javascript articleId variable really is doing.

    Can anyone shed any light on that? I can cope with the button creating the topic, but I do need to know what role the articleId plays in the process. I'm using this plugin to power comments on virtual pages, pages that don't actually exist as separate Wordpress pages, so I don't have a post id to use.

    Does the articleId need to be a unique value? Must it be an integer? What's the legal range of it?

    Edit: For anyone doing something similar to what I'm doing, here are the answers:

    The articleId must be unique, the plugin establishes a mapping between it and a new topic id. There does not appear to be a way to tie a Wordpress article to an existing topic.

    The articleId does not need to be an integer, as long as you use quotes it can be any string. It's solely used to find the topic id in NodeBB.

    So if you're using it like I am, for virtual pages that don't actually exist in Wordpress, you can safely coexist with comments on normal Wordpress pages by using an alphanumeric unique id for the virtual articleIds.

    1 Reply Last reply
    0
  • A Offline
    A Offline
    asyung
    replied to psychobunny on last edited by
    #268

    @psychobunny

    I'm using Nodebb 1.6.1

    I installed via npm install nodebb-plugin-blog-comments.
    I have logged into the ACP and activated the plugin. However when I go to Plugins->Blog Comments, I get this message in the nodebb log:

    23/10 23:18:20 [11464] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run ./nodebb reset -p PLUGINNAME to disable it.

    • nodebb-plugin-blog-comments

    23/10 23:18:20 [11464] - info: Routes added
    23/10 23:18:20 [11464] - info: NodeBB Ready
    23/10 23:18:20 [11464] - info: Enabling 'trust proxy'
    23/10 23:18:20 [11464] - info: NodeBB is now listening on: 0.0.0.0:4567
    23/10 23:18:26 [11464] - error: /assets/templates/comments/admin.js
    Error: ENOENT: no such file or directory, open 'C:\Temp\NodeBB\build\public\templates\comments\admin.tpl'

    If I copy and paste "comments" folder from:
    C:\Temp\NodeBB\node_modules\nodebb-plugin-blog-comments\public\templates
    To:
    C:\Temp\NodeBB\build\public\templates

    Then I can the access blog-comments. However I do not know if this is a proper solution as I am unable to get things to work so far.

    Is there a test I can do to see if the plugin is setup correctly?

    I'm trying to use just a javascript front end to display comments.

    Your help is appreciated. Thank you!

    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #269

    Did you try running ./nodebb build before copying over the templates?

    1 Reply Last reply
    0
  • KyleTryonK Offline
    KyleTryonK Offline
    KyleTryon
    wrote on last edited by
    #270

    Hoping this is still good 👍 Looks like there's a recent commit though so 😁 . I have a need for another plugin that integrates with GhostCMS so I hope this will be able to help me see how to do that as well. Thank you! If I can figure this all out I promise to release the plugin.

    1 Reply Last reply
    2
  • The WormsT Offline
    The WormsT Offline
    The Worms GNU/Linux
    wrote on last edited by
    #271

    After upgrade, i have this message :

          warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it.
    * nodebb-plugin-blog-comments
    
    1 Reply Last reply
    0
  • Juan G.J Offline
    Juan G.J Offline
    Juan G.
    replied to psychobunny on last edited by Juan G.
    #272

    @psychobunny wrote:

    It's come up pretty recently that we should consider upgrading our blog to latest, and when that happens I'll certainly make sure that the plugin works with it

    I've just seen that the official NodeBB Development Blog has been upgraded to Ghost 1.21, and NodeBB comments are working on it.

    So I've installed it with the current Ghost and NodeBB, and it works.

    1 Reply Last reply
    0
  • Sea AnsleyS Offline
    Sea AnsleyS Offline
    Sea Ansley
    wrote on last edited by
    #273

    I'm trying to get this installed now on my Wordpress for https://digitalnomad.blog ... the JSON API recommended originally years ago, hasn't been updated in 3+ years. No comments in the support there, and says it may not be compatible with recent / coming Wordpress installations.

    Will this nodebb plugin work with other WP JSON API plugins, such as JSON Content Importer - https://wordpress.org/plugins/json-content-importer/

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development