• 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 235.9k 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.
  • phenomlabP Online
    phenomlabP Online
    phenomlab
    replied to phenomlab on last edited by
    #321
    This post is deleted!
    1 Reply Last reply
    0
  • phenomlabP Online
    phenomlabP Online
    phenomlab
    replied to <baris> on last edited by
    #322

    @baris @julian does this plugin still work on NodeBB 1.19.3 ? I've not published an article for some time (last one was before the 1.19.3 upgrade which worked fine). I now get

    813631fb-1286-4d02-92b9-279b641bf42d-image.png

    No publish to NodeBB button, and certainly no comments

    Any ideas ? All previously created posts seem to work fine. As a test, I created a new text only simple post, and that does not work either - same issue.

    phenomlabP 1 Reply Last reply
    0
  • phenomlabP Online
    phenomlabP Online
    phenomlab
    replied to phenomlab on last edited by
    #323

    @baris @julian any thoughts please ? Would really like this to work

    julianJ 1 Reply Last reply
    0
  • julianJ Online
    julianJ Online
    julian GNU/Linux
    replied to phenomlab on last edited by
    #324

    @phenomlab yes, it should still work, we still use it for our blog, which is on WordPress now (as of late last year)

    What version of the plugin?

    phenomlabP 1 Reply Last reply
    0
  • phenomlabP Online
    phenomlabP Online
    phenomlab
    replied to julian on last edited by
    #325

    @julian Latest version available.

    phenomlabP 1 Reply Last reply
    0
  • phenomlabP Online
    phenomlabP Online
    phenomlab
    replied to phenomlab on last edited by
    #326

    @julian @baris this is still an issue for me in the sense that the error message remains the same as in my previous post.

    I'm curious if anyone else can reproduce this, or is experiencing a similar issue ?

    julianJ 1 Reply Last reply
    0
  • julianJ Online
    julianJ Online
    julian GNU/Linux
    replied to phenomlab on last edited by
    #327

    @phenomlab Hmm... can you access the blog comments config page in the ACP? If it doesn't exist, then it suggests the plugin isn't running or didn't start up properly...

    phenomlabP 1 Reply Last reply
    0
  • phenomlabP Online
    phenomlabP Online
    phenomlab
    replied to julian on last edited by phenomlab
    #328

    @julian yes, the page works. Previously created blog articles with comments are being displayed. As an example, if you look at https://content.sudonix.com and review any articles apart from the latest (about gradients and colors - this is the only one that doesn't work) you'll see what I mean.

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #329

    Can you post the output of db.objects.findOne({_key: "blog-comments"});

    phenomlabP 1 Reply Last reply
    0
  • phenomlabP Online
    phenomlabP Online
    phenomlab
    replied to <baris> on last edited by phenomlab
    #330

    @baris response seems to be NULL

    Also, I attempted to perform a complete reset

    db.objects.deleteMany({ _key: "blog-comments" });

    Which resulted in

    { "acknowledged" : true, "deletedCount" : 0 }

    Something doesn't look right here. I'd expect the delete statement to be more than 0 ? The existing blog post comments are also still intact.

    barisB 1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    replied to phenomlab on last edited by
    #331

    @phenomlab Are you on the correct database? If db.objects.findOne({_key: "blog-comments"}); is NULL none of the blog comments should work. That object holds a mapping from blog id to topic id on nodebb side.

    phenomlabP 1 Reply Last reply
    0
  • phenomlabP Online
    phenomlabP Online
    phenomlab
    replied to <baris> on last edited by
    #332

    @baris Sorry. My fault. I forgot to select the NodeBB database 😕

    See below

    db.objects.findOne({_key: "blog-comments"});
    {
            "_id" : ObjectId("619b94d1bd1e82aef790fb9e"),
            "_key" : "blog-comments",
            "61768dda84686c09dddd1ef2" : 132,
            "6176a31a84686c09dddd1f0d" : 133,
            "6179569c84686c09dddd1fa7" : 134,
            "6176d2ca84686c09dddd1f95" : 135,
            "6176d21884686c09dddd1f88" : 136,
            "6176c0f684686c09dddd1f73" : 137,
            "6176bd7e84686c09dddd1f59" : 138,
            "6176b78f84686c09dddd1f22" : 139,
            "61768e6f84686c09dddd1efa" : 140,
            "61768ad984686c09dddd1eea" : 141,
            "617689a484686c09dddd1ebf" : 142,
            "6176893584686c09dddd1eb6" : 143,
            "6176873384686c09dddd1eae" : 144,
            "61a8ac37c2aaf679e63d3336" : 152,
            "61a8add7c2aaf679e63d3346" : 153,
            "61a8b08ac2aaf679e63d335d" : 154,
            "61a8b14fc2aaf679e63d336b" : 155,
            "61a8b842c2aaf679e63d337b" : 156,
            "61a8cd79c2aaf679e63d338e" : 157,
            "61a8d13ac2aaf679e63d339d" : 158,
            "61a8d1bec2aaf679e63d33ac" : 159,
            "61a8d29bc2aaf679e63d33c6" : 160,
            "61a8d318c2aaf679e63d33da" : 161,
            "61b35c493606679963e1d2fb" : 167,
            "61b38b413606679963e1d30b" : 168,
            "61b3a0e93606679963e1d38c" : 169,
            "61b3a1fe3606679963e1d3a0" : 170,
            "61b3a40d3606679963e1d3b0" : 171
    }
    
    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #333

    So the blog comment with the error has the id 6219049e2afd527be4dcf698 and it isn't in the blog-comments mapping. Which means the link between the blog post and topic id is broken. If you get the topic id for that blog post and add it manually to blog-comments it should be fixed.

    phenomlabP 2 Replies Last reply
    0
  • phenomlabP Online
    phenomlabP Online
    phenomlab
    replied to <baris> on last edited by
    #334

    @baris Thanks, but I'm not totally familiar with MongoDB syntax. Could you provide an example ?

    1 Reply Last reply
    0
  • phenomlabP Online
    phenomlabP Online
    phenomlab
    replied to <baris> on last edited by
    #335

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

    So the blog comment with the error has the id 6219049e2afd527be4dcf698 and it isn't in the blog-comments mapping. Which means the link between the blog post and topic id is broken. If you get the topic id for that blog post and add it manually to blog-comments it should be fixed.

    Actually, let's step back a bit here. It's "broken" because I was unable to establish the link in the first place. I created a new blog post just now, and that behaves the same way. So it's not "missing" - it was never there in the first place!

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #336

    When you publish a blog post there should be a button to publish it to the forum AFAIK. This code should execute https://github.com/psychobunny/nodebb-plugin-blog-comments/blob/master/library.js#L159-L171 and create a topic in nodebb and link the blog post to the nodebb topic. You can put some console.logs in that function to see if it gets executed. If the new blog post is missing from blog-comments object it is likely the blog post wasn't published to nodebb or there was an error when publishing it.

    phenomlabP 2 Replies Last reply
    0
  • phenomlabP Online
    phenomlabP Online
    phenomlab
    replied to <baris> on last edited by
    #337

    @baris Yes, this is how it used to work, and now suddenly, it doesn't 😞

    1 Reply Last reply
    0
  • phenomlabP Online
    phenomlabP Online
    phenomlab
    replied to <baris> on last edited by phenomlab
    #338

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

    When you publish a blog post there should be a button to publish it to the forum AFAIK.

    The issue here is that there is absolutely nothing. It's blank. If you inspect the HTML, you can clearly see the DIV, but it's contents are empty despite the JS being also included. So, the upshot here is that it's not possible to even post ! Below is an example

    c180756d-43b8-4907-8e77-52a5464858d7-image.png

    You'll see the DIV is there, but there, but you can't do anything 😕

    Now compare this to one that does work without issue...

    f3eda19f-a78d-4be8-a4a9-ecede11a99e8-image.png

    1 Reply Last reply
    0
  • phenomlabP Online
    phenomlabP Online
    phenomlab
    wrote on last edited by phenomlab
    #339

    Ok, so after reading up a bit, I took the plunge and created the key association using the below steps

    • Created a new post in NodeBB, and then recorded the ID (in this case, 244)
    • Logged into MongoDB and ran the below update statement

    db.objects.update({"_id" :ObjectId("619b94d1bd1e82aef790fb9e") },{$set : {"6219049e2afd527be4dcf698":244}});

    • This created the association between the blog post, and the NodeBB post, and now it seems to work as intended, although creating the post manually seems to add a phantom comment which doesn't actually exist

    c3dfc8c0-8ad2-4205-913c-c570ff5942d7-image.png

    There is clearly an issue with this plugin. It works, but only if you actually create the association manually in the database, which of course isn't optimum. In my testing, this plugin seems to think the association already exists so doesn't ask you to create the link, which leads to having to complete the steps above.

    In this case, I'm using Nodebb 1.19.3 and Ghost version: 4.34.3

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #340

    Do you see https://github.com/psychobunny/nodebb-plugin-blog-comments/blob/master/public/templates/comments/comments.tpl#L79-L91 the publish markup when there is no association?

    phenomlabP 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