Using wordpress with nodebb and login and comment



  • Hello everyone!

    I've been researching nodebb/discourse and trying to find the right solution to implement with wordpress. discourse seems to be complicated with install and it seems require more server resources but I think they have some of what I need to work with wordpress.

    Here is what I am looking for:
    -user register in wordpress http://www.example.com

    -user login with wordpress and automatically sign in to nodebb @ http://nodebb.example.com

    -visitors can comment on posts/articles at http://www.example.com and continue discussion on http://nodebb.example.com

    -ability to go to select old wordpress post/article, click save and generate topic for nodebb (or something similar)

    Can nodebb 0.5.1 handle this?



  • Yes & No. I'm not 100% on the authentication part, I don't believe anyone has as of yet linked the two together, however you could probably do it through some form of oAuth plugin for Wordpress, so I'd have to leave that to one of the @Developers to answer.

    A plugin you may find useful is nodebb-plugin-blog-comments, this basically turns NodeBB into your comment platform (similar to Disqus or Livefyre). So every post you make on your wordpress build, you will see an option to push it to your forum, this will activate the comments on your wordpress site. This automatically creates a topic in NodeBB (you can pick the category), any comments on the Wordpress site, appear in NodeBB, and vice versa.

    You can see an example of this:

    This is the blog post, and this is the discussion on NodeBBs Forums.



  • When I switched over to the wordpress article you linked, I noticed I am logged in and ready to comment. Curious to know what method was used to accomplish that since both sides are connected.

    After reading about nodebb-plugin-blog-comments, it's exactly what I'm looking for. You mentioned there is an option to push which is great! If I use nodebb on existing wordpress site, does that option appear for new posts or does it also apply to old post as well. What about old posts that already have comments?



  • @charles said:

    When I switched over to the wordpress article you linked, I noticed I am logged in and ready to comment. Curious to know what method was used to accomplish that since both sides are connected.

    It uses your NodeBB Login, so you could probably get away with not using Wordpress Accounts at all unless you have something else that requires Wordpress Access. If you log out from here, and access that link again, you will still see the comments, but you will be prompted to log in. Which will open NodeBBs login page in a new window, you then log in, that window closes and you're now authenticated.

    After reading about nodebb-plugin-blog-comments, it's exactly what I'm looking for. You mentioned there is an option to push which is great! If I use nodebb on existing wordpress site, does that option appear for new posts or does it also apply to old post as well. What about old posts that already have comments?

    Installation of the comments plugin is done by changing comments.php on your Wordpress theme, so all calls to your existing comments would be removed (the comments would still exist, but in your wordpress database not NodeBBs) this may sound complicated to explain, but you have a few options here. You could alter the code so that it displays both comment engines, then turn off commenting for wordpress, however your wordpress comments wouldn't be transferred to NodeBB. You could wait for nodebb-plugin-import-wordpress to be ready, and fork it so that it only transfers blog comments to the created topics, however your mileage would vary on that. As it's not been tried.

    The option to push is available if you're an Admin of both Wordpress and your Forum, or you can allow other sites not controlled by you to use your comment platform by making them a "publisher" in your forum groups. (They would be an Admin on their Wordpress site, and a publisher on yours) You can push any topics to NodeBB, new & old, and a new topic will be created.

    The plugin developer @psychobunny did mention that the plugin could do with some reworking, though he's unlikely to admit he said that. 😛


  • GNU/Linux Admin

    As far as I know, the code for blog comments has been reworked, and should be working fine for Wordpress 🙂



Suggested Topics

| |