• 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 231.3k 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.
  • JoykillerJ Offline
    JoykillerJ Offline
    Joykiller GNU/Linux
    wrote on last edited by
    #242

    @psychobunny Are you still supporting this?

    1 Reply Last reply
    0
  • GiggiuxG Offline
    GiggiuxG Offline
    Giggiux
    wrote on last edited by
    #243

    Does this plugin work with latest version of Ghost and NodeBB?

    Peter-Zoltan KeresztesP 1 Reply Last reply
    0
  • Peter-Zoltan KeresztesP Offline
    Peter-Zoltan KeresztesP Offline
    Peter-Zoltan Keresztes
    replied to Giggiux on last edited by
    #244

    @Giggiux yes it does.

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

    Does this plugin works with the latest version of nodebb? After I have upgraded the nodebb to 1.1.0 I can no longer see the comments on my blog. However they are still there in the nodebb.

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

    Yes, it's working on this site: https://blog.nodebb.org/nodebb-v1-1-0-release/

    AFAIK no hooks or anything related to publishing and commenting have changed since the last minor version

    Peter-Zoltan KeresztesP 2 Replies Last reply
    0
  • Peter-Zoltan KeresztesP Offline
    Peter-Zoltan KeresztesP Offline
    Peter-Zoltan Keresztes
    replied to psychobunny on last edited by
    #247

    @psychobunny Interesting. Any idea why suddenly after updating the nodebb all the comments from my ghost ware gone? I mean on the Ghost site cause I can still see them in the nodebb.

    1 Reply Last reply
    0
  • Peter-Zoltan KeresztesP Offline
    Peter-Zoltan KeresztesP Offline
    Peter-Zoltan Keresztes
    replied to psychobunny on last edited by
    #248

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

    anything related to publishing and commenting have changed since the

    Any suggestion on how to debug it to eventually make it show up on the ghost posts?

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

    Can I have any help on making this working again? I have done everything what it is in the documentation and it's not working since I have upgraded to v1.1.0 and I had to add proxy_set_header X-Forwarded-Proto $scheme; to the nginx. `

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

    Any errors in the browser console?

    Peter-Zoltan KeresztesP 1 Reply Last reply
    0
  • Peter-Zoltan KeresztesP Offline
    Peter-Zoltan KeresztesP Offline
    Peter-Zoltan Keresztes
    replied to psychobunny on last edited by
    #251

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

    Any errors in the browser console?

    No errors only this warning:

    6/8 19:11 [19025] - 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
  • Peter-Zoltan KeresztesP Offline
    Peter-Zoltan KeresztesP Offline
    Peter-Zoltan Keresztes
    wrote on last edited by
    #252

    Here is my posts.hbs related to this plugin on the ghost side:

    74             <a id="nodebb/comments"></a>
    75             <script type="text/javascript">
    76             var nbb = {};
    77             nbb.url = 'z0z0.me/comments'; // EDIT THIS
    78 
    79             (function() {
    80             nbb.articleID = '{{../post.id}}'; nbb.title = '{{../post.title}}';
    81             nbb.tags = [{{#../post.tags}}"{{name}}",{{/../post.tags}}];
    82             nbb.script = document.createElement('script'); nbb.script.type = 'text/javascript'; nbb.script.async = true;
    83             nbb.script.src = nbb.url + '/plugins/nodebb-plugin-blog-comments/lib/ghost.js';
    84             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(nbb.script);
    85             })();
    86             </script>
    87             <script id="nbb-markdown" type="text/markdown">{{{../post.markdown}}}</script>
    88             <noscript>Please enable JavaScript to view comments</noscript>
    

    and here is the nginx config related to this:

    location ^~ /comments  {
    	proxy_set_header X-Real_IP $remote_addr;
    	proxy_set_header X-Forwarded-Proto $scheme;
    	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    	proxy_set_header Host $http_host;
    	proxy_set_header X-Nginx_Proxy true;
    	proxy_pass http://comments_upstream;
    	proxy_redirect off;
    	proxy_http_version 1.1;
    	proxy_set_header Upgrade $http_upgrade;
    	proxy_set_header Connection "upgrade";
    }
    
    1 Reply Last reply
    0
  • psychobunnyP Offline
    psychobunnyP Offline
    psychobunny
    wrote on last edited by psychobunny
    #253

    This line

    nbb.url = 'z0z0.me/comments';

    Make it

    nbb.url = '//z0z0.me/comments';

    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.

    Peter-Zoltan KeresztesP 1 Reply Last reply
    0
  • 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

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