My website idea...
-
Hi everyone, new to the forum. I am looking to integrate nodeBB into WordPress somehow. Please excuse my non-tech savviness. I am a rusty web developer who is trying to set up a new business.
I would like to eventually use the website I am setting up to sell courses so looking at the MemberPress route.
I would like a single sign-on so the forum can be logged onto easily.
I have shared web hosting at the minute (Hostinger) and I don't think nodeBB can be installed on it, I was going to put the nodebb software on an Ubuntu VPS.
I hope that makes sense, is it possible and am I completely thinking about this the wrong way?
-
You're on the right track!
For sso, you'll probably want to use the sso-wordpress plugin.
GitHub - julianlam/nodebb-plugin-sso-wordpress: Allows users to log in via a configured Wordpress account
Allows users to log in via a configured Wordpress account - julianlam/nodebb-plugin-sso-wordpress
GitHub (github.com)
-
@julian said in My website idea...:
You're on the right track!
For sso, you'll probably want to use the sso-wordpress plugin.
GitHub - julianlam/nodebb-plugin-sso-wordpress: Allows users to log in via a configured Wordpress account
Allows users to log in via a configured Wordpress account - julianlam/nodebb-plugin-sso-wordpress
GitHub (github.com)
Apologies for the delay in responding.
Ok great, so what's the best way to get the NodeBB forum to show under the normal "layout" of the website? Would it be best to try and code a header into the forum?
Would SSO be recognised for any login for the domain of the website? Does this pose any issues if the forum is hosted on a VPS?
You're probably going to ask why I don't host the website on the VPS at this point, I prefer the functionality of shared hosting lol.
-
Would SSO be recognised for any login for the domain of the website?
Not quite sure what you're asking here. The plugin lets you log in with your wordpress site's account (username/password). It will grant you access to an equivalent account on the forum, that's all.
Ok great, so what's the best way to get the NodeBB forum to show under the normal "layout" of the website?
Either you create your own child theme and add in the appropriate header/footer/branding (this is harder)
Or you can throw NodeBB into an iframe, although that's sub-optimal for a number of reasons.
-
@julian said in My website idea...:
Would SSO be recognised for any login for the domain of the website?
Not quite sure what you're asking here. The plugin lets you log in with your wordpress site's account (username/password). It will grant you access to an equivalent account on the forum, that's all.
Ok great, so what's the best way to get the NodeBB forum to show under the normal "layout" of the website?
Either you create your own child theme and add in the appropriate header/footer/branding (this is harder)
Or you can throw NodeBB into an iframe, although that's sub-optimal for a number of reasons.
Sorry I was afraid I couldn't explain it very well.
I mean, would you have to log in on the SSO on the shared server and also the WordPress membership site? Or would it just be recognised as it's under the same URL? https://domain.com/forum and https://domain.com (even though they are separate servers)
Best I learn how to put the header in again. If I'm using Elementor, does this make the process any easier that I'm not aware of?
-
@carim7 You would have to log in again, as they are separate sites and identities/sessions are kept separate from WordPress.
If you use Elementor, you could probably get pretty far forking nodebb-theme-community. It basically takes the elementor header and footer from nodebb.org and puts it in a NodeBB v2.x site.
It's not compatible with v3.x yet.
-
@julian said in My website idea...:
@carim7 You would have to log in again, as they are separate sites and identities/sessions are kept separate from WordPress.
If you use Elementor, you could probably get pretty far forking nodebb-theme-community. It basically takes the elementor header and footer from nodebb.org and puts it in a NodeBB v2.x site.
It's not compatible with v3.x yet.
Thanks a lot, now have to try and work out installing it all!
-
@julian said in My website idea...:
@carim7 You would have to log in again, as they are separate sites and identities/sessions are kept separate from WordPress.
If you use Elementor, you could probably get pretty far forking nodebb-theme-community. It basically takes the elementor header and footer from nodebb.org and puts it in a NodeBB v2.x site.
It's not compatible with v3.x yet.
Sorry, quick question which I think I know the answer to.
Is there a way to sync usernames and passwords from NodeBB to WP so that I can allow users to log in to WP using the same credentials?
I am going to be manually approving the sign-ups as this will be a closed forum, so social login isn't an option.