Thank you, I didn't try that approach, instead, I realized I can change the settings directly from the code. So I'm baking in my settings into my plugin and setting them in the init.
Ludvig Janiuk
Posts
-
Can I load arbitrary ACP settings from a file? -
Can I load arbitrary ACP settings from a file?@PitaJ Ahh... Yeah this was looking fine, but I've encountered a problem with exporting the local login setting. Earlier it was in the config object, but now that has been obsoleted and it's a "group privilege". I find the database structure of groups and their privileges a big confusing. Do you think you could help me figure out how to export that general setting in the current situation?
-
NodeBB v1.10.2 released.@Rusdy-MT It seems to me like they have revamped this option. It's now some kind of "group privilege" now. You can toggle it under ACP -> Manage -> Privileges. This came out of nowhere for me as well...
-
Can I load arbitrary ACP settings from a file?Alright, thanks.
-
Can I load arbitrary ACP settings from a file?Hmm, I guess that would be the way then. Are the ones in the config object also plugin options, or only general ones?
-
Can I load arbitrary ACP settings from a file?I'm trying to set up a staging environment, but a lot of my setup depends on my settings. I don't want to have to duplicate them every time I change something. Is there a way to sync all ACP, perhaps in a file?
Edit: I also want to sync the installed plugins, but I can already do that with package.json.
-
On what branch to write PR's?Ok, I'll do that. Thank you!
-
On what branch to write PR's?Hi, I'd like to submit a PR as a feature request for NodeBB. Should I do it on the latest versioned branch, or on master, or...?
-
How do I change the GDPR consent text on new registration?Well, there are language files in /public/language. The GDPR text is, as far as I remember, sourced from a few of these entries (the language files are JSON files with a prase identifier, and translation). So if you want to change the wording, you would have to modify these files in your clone of the repo.
Not sure if this is the "best way" since they might be overwritten when you pull the next version (could someone with more knowlede than me confirm this?) but that's a git issue that you should be able to handle once you get to updating.
For example, I see three entries in the file "/public/language/en-US/register.json" that start with "gdpr_". There are probably others but this is a good place to start. Just search those language files for the exact wording.
Also note that to chnag eit you would have to change all of the languages, but if english only is enough for you, that is easier.
-
Setting Up Generic CORS (settings "Origin: *")Yeah, don't worry, it's not urgent and when I'm setting the specific host URL for my client it works. I just realized that looking at the code, setting "*" will not work. However, I also see now that you added '...Origin-regex' in the latest update, so I guess that is a fine workaround.
-
Setting Up Generic CORS (settings "Origin: *")Re: CORS Setup
The referenced thread mentions the ACP settings as the way of setting the CORS-related headers. However, when I look at the code behind these settings, it seems Access-Control-Allow-Origin is treated a bit differently than advertised. It checks every option there for a match with the requester, and only then appends that header.
Doesn't this create a problem if I want my forum to be api-accessible from anywhere? If I set that setting to
"*"
(wildcard), the result is that this header is never sent, because no incoming domain equals"*"
.Is this a bug or is there something I'm missing?
-
Pull Swedish translation pls?Ok great! I see them now. Think I read somewhere I needed to ping you. Nevermind!
-
Pull Swedish translation pls?Hi, I just translated all strings* in swedish on transifex. Could you please pull those translations in? I'd like to have the swedish translation available for my users.
Best regards, Ludvig
*Except the adming pages - any page admin in sweden would know english
-
How to specify dependency on other plugins?Hi folks, I'm developing some custom plugins for NodeBB and one is dependent on the other being installed. How would I specify this kind of dependency? I know that dependencies on npm is specified as usual in package.json, but would what work in my case, since I want the forum to have the nodebb plugin installed?
What I mean is, I'm doing module.parent.require and not just require. Would package.json/dependencies still work with that, or is there another better way?
Best regards, I find NodeBB to be really awesome.