I think the only option right now, is to embed that HTML in the custom pages html widget.
PitaJ
Posts
-
Can I upload an HTML file and use it as custom home page? -
Problem in UpgradeThe warnings you can ignore if you haven't encountered any other problems.
As for the menu thing, check this:
Chrome mobile update broke NodeBB menu
I personally have not been able to test since, as I have not received the Chrome update that some got today. A few users on my forums have reported that the ...
NodeBB Community (community.nodebb.org)
-
shall admin prevent users to add new tags in nodebb?Search "tags" in the ACP search bar. There should be an option to manage tags and only allow certain ones.
-
NodeBB can't upload image from my laptop but not from AWS serverThat's not quite the full error in the log you have there. Could you provide a little more context?
Have you checked that any upload-related settings are set up the same on both nodebbs?
What size of file are you uploading?
-
Chat UI Persona ThemeProvide a screenshot. Try running
./nodebb build
, restarting, and cleaning your cache. Try switching back to the default skin if you're currently using one. -
Post Index IDYeah so essentially what you want is to do is create an equals template helper, here are a couple resources from the past:
How can I print out a specific array entry in my template?
I'm trying to print out a specific custom variable value of mine in the account stats row. Specifically "customFields" is an array that contains a name/valu...
NodeBB Community (community.nodebb.org)
how to create and use a template helper
@mrazadar using require.main.require is what I recommend for plugins and themes
NodeBB Community (community.nodebb.org)
And the benchpress docs
benchpressjs/docs/readme.md at master · benchpressjs/benchpressjs
ultralight javascript templating framework. Contribute to benchpressjs/benchpressjs development by creating an account on GitHub.
GitHub (github.com)
-
Anchor links on another pageFile a bug report on GitHub. This is probably something we want to fix.
-
load Jquery?@loopynid if you put a script in the custom javascript section of the acp, then that script can immediately use jquery.
-
Edit CSS in realtime?Browser devtools provide actual real-time editing, I suggest making changes in browser and then applying them in code when you've got what you're looking for.
-
two domains on one forum?@אשר redirecting one site to another is a completely separate issue from NodeBB. Redirecting is supported by even the simplest web servers, and certainly any server capable of running NodeBB.
The screenshot is one of nginx, which is absolutely capable of redirecting one domain to another.
-
Noticing "Active Plugins" That Aren't Actually Installed?That list reflects the activated plugins on your forum, ignoring whether or not they are installed. You can fix it by disabling the plugins via running
./nodebb reset -p [plugin name]
for each plugin.In the future, make sure you disable the plugins before removing them.
-
Mixing up themesNot really, it would require essentially making a new theme to incorporate the different styles.
-
I have a query regarding the GPLv3 license of NodeBB and commercializing my final productIANAL this is my interpretation of the GPL. There are probably better summaries if you search for them.
-
You'd only have the open-source any modifications you make to the code of NodeBB core that is licensed under the GPL.
-
You're allowed to sell your product as long as you obey the terms in the GPL, including the above.
-
I believe so. Contact [email protected] for licensing information.
-
-
Error Msg@michael-pfaff it means that the server tried to find
build/public/templates/widgets/forumstats.tpl
but it wasn't there.This can occur if the build step wasn't run after activation of a plugin/widget/theme, or if it failed to copy the template file correctly, or if the plugin/widget/theme didn't have the file to begin with.
-
It is necessary to get the objects of the user group who made the post in one of the topicsWhat have you tried?
-
How to run a npm run script programaticallyThis isn't a forum for node.js help. It's the community forum for NodeBB, a node.js based forum software.
-
Error Msg@michael-pfaff well first, try
./nodebb stop && ./nodebb build && ./nodebb start
. Then you can try reinstalling the widget. -
the issue of benchpressjsFirst off, calling their work "terrible" is a really bad strategy if you're trying to get help from someone. I'll still help, because I like being helpful, but please don't act this way in the future.
#1. about Interpolation, benchpressjs does NOT allow to retrieve array by index, like this:
<h1>{localNews.topics[0].title}</h1>If you're trying to just get a specific single element of an array, you just put the number as the property name, like so:
<h1>{localNews.topics.0.title}</h1>
I see this isn't documented, so I'll open an issue to document this behavior.
#2, about helper function, I created one like this:
Benchpress.registerHelper('getByIndexInArray', function (arrayData, i) {
return arrayData[i];
});and call this helper function like this:
<h5>{getByIndexInArray(localNews.topics, 1)}</h5>But it seems like the index "i" can not be passed into the helper function, since in this helper function, I always got "i" as undefined.
Your helper is correct, it's how you're calling it that's the issue. Benchpress doesn't have numeric literals, it only has string literals. Putting just
1
in there is telling Benchpress to look up the property"1"
on the global object, and call the helper with that value (which is undefined in your case). Your helper will work if you call it like this instead:<h5>{getByIndexInArray(localNews.topics, "1")}</h5>
I will also add a note to document this behavior in the paths and helper section.
Issue is here: https://github.com/benchpressjs/benchpressjs/issues/89
-
Is there any way to use this with an existing userbase?Probably easier to do
GitHub - julianlam/nodebb-plugin-sso-oauth: NodeBB Plugin that allows users to login/register via any configured OAuth provider.
NodeBB Plugin that allows users to login/register via any configured OAuth provider. - julianlam/nodebb-plugin-sso-oauth
GitHub (github.com)
The most seamless user experience would be using
GitHub - julianlam/nodebb-plugin-session-sharing: Allows login sessions from your app to persist in NodeBB
Allows login sessions from your app to persist in NodeBB - julianlam/nodebb-plugin-session-sharing
GitHub (github.com)
-
Restrict creating new topic and blocking HTML posts for usersHow can I restrict users from creating New Topic? Only Admins and Moderators should be able to do that.
ACP > Manage > Privileges, then select each category from the dropdown at the top right and set the privileges accordingly.
I am heavily dependent on HTML for customizing posts, so how to restrict general users from using Markdown HTML. Can we use two different Reply solutions for users and Mods? I mean only Admin and Mods should use HTML in the posts.
Not yet, but there's an issue for this on the markdown plugin repo.
Is there any way to restrict quoting Admins or specific post?
I don't think so, but you can disable mentions notifications if you're having annoying notifications all the time.
Is there any way to start on shared hosting. I know till 2016 it was, NO, but anything changed after that?
The way Node.js (which is the platform that NodeBB runs on) works isn't really compatible with shared hosting.