@Telokis True. But the conditional as written is how I want it to behave, because the behavior is for the user, not the admin.
c.k. lester
Posts
-
Do NOT Show "Log in to post" Button If User Can't Post to that Category -
Do NOT Show "Log in to post" Button If User Can't Post to that CategoryIt's as simple as this: if only admins can post to the category, don't show the "Log in to post" button. Show, instead, "Log in to view" or somesuch.
If(only_admins) { "Log in to read" } else { "Log in to post" };
In fact, if you'll tell me where the code is to draw that button, I can probably do this myself.
-
Do NOT Show "Log in to post" Button If User Can't Post to that CategoryOr maybe make it say, "Login to view..."
-
Do NOT Show "Log in to post" Button If User Can't Post to that CategoryIt looks like if a guest is viewing a category that CANNOT be posted to by even registered members, that the button shows, "Log in to post." How do I get rid of that button for categories that registered users can't post to?
I mean, it would be stupid to show that button and have my user click it, log in, then realize they can't post to the category.
The highlighted message below the button doesn't need to show either ("There are no topics in this category. Why don't you try posting one?").
-
What URL to Use for SSOIs the answer obvious, and you're just ignoring the dumb question, or does nobody really know?
-
Error: Cannot find module 'passport-oauth'@julian I get the "Congrats! So far so good -- please see server log for details" message, but when I comment out the two lines (as suggested), I get this error:
EXECABORT Transaction discarded because of previous errors.
I have no idea what that means.
After further research, it seems to be an error caused by redis running out of memory.
After increasing the available RAM for my server to 1GB, I'm still getting this error.
After increasing swapfile size to 4GB, I'm still getting this error.
-
What URL to Use for SSOIf my user is on our main site, what does the URL look like for them to enter the community/forum already logged in?
https://community.mysite.com/[what-goes-here-so-nodebb-automatically-logs-the-user-in?]
-
Error: Cannot find module 'passport-oauth'@PitaJ Your suggested solution has worked for me. So, now NodeBB is running with the sso-oauth plugin activated. Thank you!
On the login screen, I get a prompt for "Alternative Logins," but I want to set it up so that any login happens on the MAIN site. I'm assuming it will work like this:
- User is on community site.
- User clicks "Login"
- User redirected to main site for login.
- User logs in.
- User redirected back to community site, with credentials.
- User is logged in to community site.
Is that how it's going to work at this point?
-
Error: Cannot find module 'passport-oauth'@PitaJ said in Error: Cannot find module 'passport-oauth':
@c.k.-lester run
npm ls passport-oauth
. Try runningrm -rf node_modules/nodebb-plugin-sso-oauth
then runningnpm install nodebb-plugin-sso-oauth
.What is your distribution method? You shouldn't be committing the
node_modules
folder to your distribution repo if that's what you're doing.The only repo in node_modules/ is nodebb-plugin-sso-oauth. I'm pulling it from my forked repo, which the NodeBB docs tell me to do. I probably misunderstood something.
I will attempt to fix it with your instructions above.
Thank you!
-
Error: Cannot find module 'passport-oauth'OK, I've attempted to install "passport-oauth" and encounter this error:
$ npm install passport-oauth npm ERR! Linux 4.4.0-66-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "passport-oauth" npm ERR! node v6.10.1 npm ERR! npm v3.10.10 npm ERR! path /home/forge/community.ttgn.com/public/node_modules/nodebb-plugin-sso-oauth npm ERR! code EISGIT npm ERR! git /home/forge/community.ttgn.com/public/node_modules/nodebb-plugin-sso-oauth: Appears to be a git repo or submodule. npm ERR! git /home/forge/community.ttgn.com/public/node_modules/nodebb-plugin-sso-oauth npm ERR! git Refusing to remove it. Update manually, npm ERR! git or move it out of the way first. npm ERR! Please include the following file with any support request: npm ERR! /home/forge/community.ttgn.com/public/node_modules/npm-debug.log forge@breezy-waterfall:~/community.ttgn.com/public/node_modules$
Can anybody help me with this?
-
Error: Cannot find module 'passport-oauth'I'm trying to
node app
, but getting the errorError: Cannot find module 'passport-oauth'
First, why is it missing? Everything else works. Is that module required by the sso-oauth plugin?
How would I go about installing that module? Something like,
npm install passport-oauth
? -
How Much Customization Required for the SSO Plugin?I'm trying to activate the SSO-OAUTH plugin and running into errors. One of them occurs because of this line in the plugin source, library.js:
var authenticationController = module.parent.require('./controllers/authentication');
The
./controllers/authentication
file is being referenced inlibrary.js
, which is in~/mysite/public/node_modules/nodebb-plugin-sso-oauth
, so... NOT at that path! It's actually at~/mysite/public/src/
.So, do I need to modify any and all references to files/folders in the plugin? I expected most of them to be relatively accurate.
Thank you!
-
What Does the SSO Plugin Expect for Oauth2?I'm trying to do some Oauth2 integration, and I need to know what a few of these variables are expecting in this part of the code:
oauth2: { authorizationURL: 'https://mywebsite.com/oauth/authorize', <-- Does that look right? tokenURL: '[WHAT GOES HERE?]', clientID: 'CLIENT-ID', clientSecret: 'THE-SECRET' }, // what might userRoute look like?! userRoute: '' // This is the address to your app's "user profile" API endpoint (expects JSON)
Thank you!
-
[Solved] Error During Install of NodeBB to DigitalOcean: Cannot find module 'nconf'I increased the size of my swap file. Solved.
-
[Solved] Error During Install of NodeBB to DigitalOcean: Cannot find module 'nconf'Oh. It's saying
Killed
after annpm install
. I bet that's a clue.I thought it just meant it was finished. heh.
It can't finish the install...?
-
[Solved] Error During Install of NodeBB to DigitalOcean: Cannot find module 'nconf'@pichalite Hmmm. You might be right. But I would have sworn on a sacred text that I had done that!
OK, but I did it now. And it gets further after I do the
node app --setup
And now I'm getting the error message below. Should I start over with a clean install? I haven't messed things up beyond saving, have I?!
>> community$ node app --setup 22/3 02:08:59 [13955] - info: NodeBB v1.4.5 Copyright (C) 2013-2017 NodeBB Inc. 22/3 02:08:59 [13955] - info: This program comes with ABSOLUTELY NO WARRANTY. 22/3 02:08:59 [13955] - info: This is free software, and you are welcome to redistribute it under certain conditions. 22/3 02:08:59 [13955] - info: 22/3 02:08:59 [13955] - info: NodeBB Setup Triggered via Command Line Welcome to NodeBB! This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed. Press enter to accept the default setting (shown in brackets). module.js:328 throw err; ^ Error: Cannot find module 'express-session' at Function.Module._resolveFilename (module.js:326:15) at Function.Module._load (module.js:277:25) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at /var/www/nodebb/community/src/database/redis.js:7:16 at Object.<anonymous> (/var/www/nodebb/community/src/database/redis.js:169:2) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12)
-
[Solved] Error During Install of NodeBB to DigitalOcean: Cannot find module 'nconf'I've done a few "npm install ..." for nconf, then winston, and now it's asking for jimp.
How many of these things am I going to have to install? Is there a step I missed that installed all these already?
-
[Solved] Error During Install of NodeBB to DigitalOcean: Cannot find module 'nconf'Attempting to install according to the instructions here: https://www.blogsynthesis.com/install-nodebb-on-digitalocean/
Having run
node app --setup
I get this error:
module.js:328 throw err; ^ Error: Cannot find module 'nconf' at Function.Module._resolveFilename (module.js:326:15) at Function.Module._load (module.js:277:25) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object.<anonymous> (/var/www/nodebb/community/app.js:22:13) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Function.Module.runMain (module.js:442:10)
Can someone please help me finish this install? Thank you!
-
Structure and Functionality for Public and Private Forums@rod Yeah, the request is appropriate. In fact, people will be invited to groups. There won't be a lot of requesting to join at first...
I figure this is the functionality I want:
- When a user signs up on my site, create the forum (NodeBB) account. (Is that necessary?) This will give the user on-site messaging with other users.
- When the user creates a group on my site, create the associated group forum. Set user as owner/admin.
- Allow other users to join that group by invitation from the owner.
- When a user closes his account, close the forum group and archive all material.
- When a user leaves a group on my site, disconnect them from the associated forum as well.
I'm wondering if Muut would be better for this kind of functionality...
Any and all opinions requested and appreciated!