I also had the same problem, checked the config.json 、 admin/settings/general#site-logo、nginx,both set correctly。Also reset the logo and restart , don't know how to solve it, please help me, thanks
image
Nodebb is using express for the API, right?
Link Preview Image hyper-expressHigh performance Node.js webserver with a simple-to-use API powered by uWebsockets.js under the hood.. Latest version: 6.16.0, last published: 15 hours ago. Start using hyper-express in your project by running `npm i hyper-express`. There are 12 other projects in the npm registry using hyper-express.
faviconnpm (www.npmjs.com)
My company just did some performance testing for our own API, and this package blew express away. It was a drop-in replacement for us.
If I wanted a function that strips certain words from the .content p (post) fields (removes them at DB level), what would be the best way to achieve this? I am pulling an RSS feed that contains text I'd like to remove (this is a private site I am running designed to work as a security feed), and I'd rather have the URL pretty formatted, but of course, it will not render because of the other text on the same line.
Any ideas?
Thanks
Hi,
I have noticed that the number of hits changes, for example for individual visitors in the last week or the last month. Here are two screenshots that were taken within 24 hours. As you can see last week shows 4k less users than one day before. Can anyone explain this?
cc8cf2cf-0815-45f1-9a63-1c17fefb4309-grafik.png
1ad5ad4d-ef42-4db1-b9d1-480d8be45135-421e48ba-258f-40be-a03c-8065ee2dddc9-grafik.png
An update from last night brings some additional logic to the title generation of topics from the fediverse.
Previously if a title was provided in the name property, that was used as the topic title.
While that hasn't changed (and is the strongest signal for a topic title), not all fediverse content contains titles. Specifically, Mastodon posts do not require or even have a space to put a title in.
For those cases, we fall back to generating one based on the content. We literally grabbed the first 128 characters or so, and added an ellipsis to the end.
While that worked okay as a stopgap, it meant that a lot of topics ended up with really long titles — not ideal.
The new logic tries to grab the first line of text (either the first <p> or line), and from there, the first sentence, using some naive regular expressions.
While still not a proper alternative to... you know... specifying a title, it's better than nothing I suppose!
I wonder if other fediverse softwares implement title generation logic like this...
Full-text searching for NodeBB using Meilisearch. Contribute to oplik0/nodebb-plugin-meilisearch development by creating an account on GitHub.
faviconGitHub (github.com)
This plugin allows you to use Meilisearch as search backend instead of the database or Solr (see this topic for why some want to switch)
InstallationInstall via plugins page in the ACP or run this command in NodeBB folder:
npm install nodebb-plugin-meilisearch Configuration install this plugin via ACP or by running npm install nodebb-plugin-meilisearch Activate in the plugins page (note: make sure dbsearch plugin is disabled) Rebuild and restart NodeBB Check that the plugin successfully connected to Meilisearch and adjust the connection settings in /admin/plugins/meilisearch if necessary. Meilisearch should start indexing all posts as soon as it connects for the first time, but if that didn't happen you can start reindexing from the ACP page Adjust other search settings as you see fit. Defaults should be good enough for most use cases though. Notes This plugin requires a Meilisearch instance or the same server or somewhere else your NodeBB instance can access This plugin conflicts with other search plugins and will not work if nodebb-plugin-dbsearch is active While it should work fine, note that it's still not well tested. User beware 🙂Hello, first of' thanks for the amazing work !
For the context: I'm a junior developer from France, so excuse my english (and my limited understanding of everything lol). I was looking for a software alternative to build a forum RPG. I just installed NodeBB on Ubuntu 20 (Focal) working on WSL 2. I'm using redis and want to write plugin using typescript.
It would be great to have a guide version of the Quickstart plugin in typescript !
I know its possible to write plugin in typescript, the emoji plugin does that. But it would save me so much time to have a guide that explain the extra step we need to do in order of compiler and make it work on NodeBB.
Here's my questions tho:
Is it in the roadmap team of NodeBB to document how to write plugin in typescript? Did the team plan to write a typescript version of NodeBB?Although it would be great to have some more advanced example right in the documentation on how to do something and what are the step to make it work.
Like here : https://community.nodebb.org/topic/16994/how-do-i-add-custom-user-fields-to-my-theme
Like "if I want to add/ change something, I have to think of the scope of this features and what's need to be modify in other file to be working properly". Or at least, say it in the documentation a little bit more straightforward. So that beginner will understand that first sight. But I think examples are more worthy than tons of words.
Is it possible for beginner to contribute on the documentation to make it more specific and understandable for beginners, or is it a documentation for more experienced developers and a choice of the team (and don't want to change that)?
Is it because from a plugin to another, things might be working so differently that it's not worthy to do a more detailed documentation ?
Because people might be wanted to write plugin over time, mutualisation of knowledge would be great, so that might simplified the process of each developer trying to write plugin have to go throw investigations to understand how NodeBB works before even start to develop the actual plugin.
For example: How to interact with the database explain in this answer: https://community.nodebb.org/topic/17657/best-way-to-store-plugin-data-in-database-in-context-of-compatibility/2?_=1714543873650 for me this should be in the documentation.
In conclusion, I feel like in general people agree that it's difficult to start writting plugin without investigate and dive in the structure file of the source code. I'm willing to help on that make it easier to really understand how NodeBB works for developer. So that anyone not familiar with the source code can start almost immediately customization. :emo:
Hi!
I'm using NodeBB 1.17.1 running behind nginx reverse proxy.
All is good enough except one thing: sometimes link to forum logo for example in account confirmation message is malformed and starts with
http://localhost:4567/assets/...Instead of
https://mydomain.tld/assets...How to fix the issue?
What do you think about moving the entire NodeBB view to React? And yes, the view layer is separated from the server and everything communicates via the API. Creating styles in ReactJS is much more modern and exciting 😄
I may regret creating this topic but here goes.
If you experience a bug or other unexpected behavior while using NodeBB and its related ActivityPub integration, please post it here so it can be tracked and resolved.
No formal process as of yet, and we're still at pre-alpha so expect many things to be broken or unavailable 😅
When developing a nodebb plugin, is it possible to develop and deploy plugin with typescript and then compile it with js?
I have also roughly checked the nodebb core source code, and I expect that there will be no major problems if I deploy the plugin using js build after developing ts. However, is there any experience or advice on developing and distributing the nodebb plugin using ts?
Link Preview Image Eventual migration to TypeScript@julian I think it might be possible with some build tooling magic... Importing plugins using CJS is as you mentioned the easy part - await import() works bo...
faviconNodeBB Community (community.nodebb.org)
Link Preview Image Adding TypeScript-support to your Node.js projectMany Node.js projects will reach a level of complexity where we'll often find ourselves wondering... Tagged with node, typescript, javascript, tutorial.
faviconDEV Community (dev.to)
Link Preview Image Node.js, require.main === moduleIn Node.JS document, I found a sentence said When a file is run directly from Node.js, require.main is set to its module. That means that it is possible to determine whether a file has been run
faviconStack Overflow (stackoverflow.com)
Link Preview Image require.main.require imports do not work · Issue #19117 · microsoft/TypeScriptTypeScript Version: 2.6.0-dev.201xxxxx From: microsoft/vscode#35489 (comment) Code const myModule = require.main.require('./file.js') Run go to definition on myModule Expected behavior: Goes to defintion of myModule Actual behavior: Noth...
faviconGitHub (github.com)
Greets All:
Previously only used Redis but bringing up some new forums what will likely have sizable user base. Seems:
Redis may be phased out at some point These forums will be much busier than my Redis based.Hence I am looking at alternatives. Note PostgreSQL support got committed. Kudos to the folks responsible for that. I am a seasoned systems engineer/admin and neither intimidate me, although I've only "played/tested" w/Mongo and never used in production.
Given the above, would those familiar, preferably with each, please share pros and cons of their experiences and any other relevant insights w.r.t. current NodeBB?
TIA-- o/
Can I install and use a custom plugin theme I developed myself on the nodebb hosting plan?
On the hosting plan admin page, there seems to be no way to install plugins that are not prepared in the plugin list by nodebb.
Hello there,
after some time i want to take a second attempt to start a successful forum.
My idea was the following: A forum that allows for uncomplicated communication of ideas and allows users to sell their ideas to other foum users.
I set up my page with the help of a friend: my forum
I didnt take into account the problems to get the ball rolling; means I have no users
Note that there is no payment method right now, it is prettmuch only a normal forum.
Now to what i have planned to be the "second attempt" version:
In the region where i want to start, there is a company called Tobit that developed a software named "chanys".
One reason for me to use it is the adaption in my region, id guess atleast 70% of the people in a distance of 20 km have this app on their smartphone.
It is also adapted further i think they have serveral million downloads of their app.
It has imo also alot of features that will be helpful to my project for example:
-Accounting
-verification
Note: the "cayns" project is also open source.
"Cayns" offers also a website building tool to easily implement their features "chanys".
My easy hack (that describes my lvl of programming skills) would be to do an iframe onto my forum ^^.
I know thats really bad (and it doesnt work without changing settings).
What are other ways to make a better MVP?
Thank you!
There have been some scattered discussions I've seen over the past year that mention that @[email protected]'s WordPress ActivityPub plugin federates their blog posts out as an as:Note, and that the only reason this is done is because Mastodon only treats as:Note (and as:Question) as a first-class object and relegates anything else to a fallback handler that takes a short snippet of the content, and shows a link back to the original source, thus losing any in-app benefits (boosts, replies, etc.)
Whether this is actually true or not, I do not know. So that's why I'd like to ask Mattias — or anybody else with some context — here.
For reference:
as:Article: Represents any kind of multi-paragraph written work. as:Note: Represents a short written work typically less than a single paragraph in length. as:Page: Represents a Web Page.I have also noticed that Lemmy, perhaps out of principle, sends out an as:Page for new generated content, and only the replies federate out as as:Note. It has unfortunately led to some assertions that Lemmy's federation is "broken", even though it is arguably not the case.
@[email protected], care to weigh in?
I don't even blame Mattias for opting to send everything out as as:Note.
End of the day right now it doesn't matter how Mattias or Nutomic represent their higher-level collection of data, because Mastodon is the largest implementor and neither they — nor anyone else I know of, for that matter — treat anything that's not as:Note or as:Question specially.
But that ought to change. The question is how, but this WG is not at the point where we start throwing around decrees and making up standards.
What's important to me right now is what the landscape looks like right now, and why that is the case.
N.B. The discussion here will eventually make its way to online real-time discussion at one of the future WG meetings.
Are nodebb + nextjs compatible?
When developing nodebb custom plugin or custom theme, is there a way to make nextjs compatible?
reactjs is client side rendering, and nextjs is SSR, so when considering seo, it must be developed with SSR.
These days, many of the web developers being hired use nextjs as a basis for development, so we are also developing web using nextjs.
Of course, I know how to use bootstrap + jquery tpl express. But these days, people who are beginners in web development are more familiar with nextjs.
Hi,
Are there any plugins that would allow users to attach files to posts, and allow me to store them locally on the server for other users to access? I run a developer oriented site, so the files would usually be zips, gzs etc.
I assume one of the various 'upload' plugins would take care of half the problem, but they all seem to be for 'S3' or 'CF' which I assume are commercial cloud outfits that would charge for storage, while I'm trying to do all this on the ultra cheap, ie: free!
Bye,
Mark
A New User Warning Points system would be great if added. This way mods can assign warning points which will be visible by everyone so that they get to know there own warning points or others warning points. This way a proper warning track and visibility to users may be offered.
Plugin for adding Award System on your board: it could be medals, or it could be very special ranks, etc. It's a good instrument to engage users on your board, and It's another instrument for gamification of your board.
I hope this plugin will be helpful for you 😉
Install npm install nodebb-plugin-ns-awards Links Plugin Issues Changelog Features Overview, pre-releaseAll components will be improved overtime. It's just very first steps 😉 If you have ideas, don't hesitate to share them.
Create AwardsScreen Shot 2015-05-02 at 8.22.59 PM.png
Overview them in ACPScreen Shot 2015-05-02 at 8.24.27 PM.png
Give Medals!Screen Shot 2015-05-02 at 8.24.50 PM.png
Overview all awards at yourboard.com/awardsScreen Shot 2015-05-02 at 8.26.18 PM.png
Extend user's profilesScreen Shot 2015-05-02 at 8.26.48 PM.png
Hi,
We have successfully deployed NodeBB on 1 machine with 3 NodeBB processes on the same machine at different and using nginx to load balance between the 3. We are using MongoDB as the database, and have also setup redis for inter-process communication.
Now we plan to add another machine to further increase user capacity. Both machines will have 3 NodeBB processes each. We have the following questions:
Do we start the NodeBB processes on the machine 2 and have the same redis server in the config so the processes can communicate? Do we set isCluster to true? How do we make a MongoDB replica? Do we add the IPs of both mongo instances in the config file of nodebb on both machines?Any help will be appreciated. Thanks!
What is Best Option for Running Nodebb forever?
PM2 SystemdA place to talk about whatever you want
Stay tuned here to hear more about new releases and features of NodeBB!
Need help with installing or configuring NodeBB? Look here.