I know this post is kinda old but look up https://docs.mongodb.com/getting-started/node/aggregation/ That is if you have it being stored to mongodb.
Joykiller
Posts
-
Retrieve select info of all users in database. -
Plugin/Questions To get startedSo I've been using nodebb for a little while but never got into the coding of a plugin for it.
I've been working on a side project for a while using nodejs, (I'm learning still.) but I have it working and writes to a mongodb for persistence. I am looking at making a new page for displaying that info. Can anyone help me with links or helpful hints on how to get started?
I assume I'd need to do it in a plugin, any help would be appreciated thanks.
-
[nodebb-plugin-poll] Poll plugin@Schamper said in [nodebb-plugin-poll] Poll plugin:
@Danny-McWilliams not a bug, very much intentional but I suppose it'd be better if this was shown somewhere.
Good work mate I used to use this plugin before but stopped. I think this is the only voting plugin out there for nodebb, that i'm aware of at least.
-
[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget)@psychobunny Are you still supporting this?
-
"Failed login attempt, please try again. Invalid User Data" when attempting login as admin@AOKP said:
@MarximusMG basically it should work as non-root, however I would try running it as root, just to be sure.
Use sudo su, to gain root privileges.
Ahhhhhhh! Teaching kids bad manners, you should setup a new user, and load it from under that user. Only need to install redis/mongo/node/npm etc from root. Rest of the users added to the system should be able to use it without issue as long as they have it within their own file structure/ownership.
As to the Error obviously this is still an issue in redis. Is redis working?
Try this in SSH: redis-cli pingIt should return with a pong if its up. Otherwise check error logs to find out why redis isn't running properly systemctl etc.
What version of redis is installed? -
Discussion: NodeBB Plugins/Themes section@pichalite said:
@Joykiller NodeBB only displays plugins that are compatible with your install in the ACP plugins page. What's the point in having a revision check on install?
NodeBB has no control over plugins you install manually with NPM. The only thing they can do is warn you on NodeBB startup and they do that already.
hmm ok, mis-read what you posted first time. I didn't know you couldn't have a check function with npm. I guess you could still have a don't run plugin in the nodebb through ACP till admin is notified of incompatibility. none the less the whole point of this opinion post was about giving a place that shows a list of current node apps on the website. Didn't know at the time the ACP displayed the only viable compatible versions of the plugins.
-
Discussion: NodeBB Plugins/Themes section@julian said:
The plugins/themes category is really more of a developer oriented area anyway, and is definitely "hacker-focused"... meaning if someone installs a plugin and it explodes NodeBB, at least they have the knowledge to rollback/uninstall.
The problem is NodeBB is quickly become easier for non-developers to use (not "simple" yet, but getting there)... the downside is these users while ambitious, definitely do not have the requisite background to recover when NodeBB can't handle an incompatible plugin.
I thought I wrote a blog post about it... maybe I didn't. Time to write one now!
Fair enough, Just think that all the new users will search forums before looking on git or some other location. So yeah a post would be helpful as long as that post is not lost in the sea either. Which is why I thought a small quick page would be pretty helpful for these newer users to nodebb. (Theres already posts talking about this specific thing Looking for x plugin by some people right now in recent topics.)
-Edit-
I guess for newer users because obviously you want to support them, maybe have a revision check on the install of the plugin with an arg to skip? I duno just random thoughts.Countless new install posts by new users been going on in tech support areas with really simple mistakes and I'm sure it will only grow.
-
Discussion: NodeBB Plugins/Themes section@julian said:
@baris said:
not sure if there is one that returns all compatible plugins for a specific version.
Yup, it's here: https://packages.nodebb.org/api/v1/plugins?version=0.9.2
NodeBB calls it when you browse to the plugins page in ACP.
So I assume those are the plugins that are valid to work with that version of nodebb? I still think on a new user perspective it might be a good idea to have a front end link with a filter search. Something I'm sure you or @psychobunny would whip up pretty quickly.
Might help with newer users finding plugins to use, instead of wading through a sea of posts in search.
Like i said just my opinion, just think it might be a good option for newer users to nodebb.
@Jesse-Pulfer said:
@Joykiller We have a plugin that is very similar to Xenforo's resource manager: https://github.com/NodeBB/nodebb-plugin-asset-manager
It allows admins to upload different file types to be downloaded
@pichalite @Jesse-Pulfer Thats cool, but I was meaning more along the lines of linking for users to see valid working plugins/themes for the current node. A simple page that parses the above link with a filter would be great imo. Would help find active working plugs/themes much easier.
-
Discussion: NodeBB Plugins/Themes section@frissdiegurke said:
Maybe a connection-plugin between the NBBPM and a subcategory of plugins & themes per minor release could be realized.
I imagine something like this (fully automated, intervall check of NBBPM changes):
plugins/ by-release/ 0.8.0/ "xyz 0.1.4" (nodebb-plugin-xyz topic, contains description of its README) 0.9.0/ "xyz 0.1.8" (nodebb-plugin-xyz topic, ...)
If breaking changes are done purely with minor version updates (AFAIK with very few exceptions they did in the past) this should provide all compatibility info needed.
Maybe a route like https://packages.nodebb.org/api/v1/list?version=0.9.0 (broken link) with appropriate announcement would fit for now. If there exists such a route it just needs the proper announcement @psychobunny @baris Should be easy to be realized.
I just thought a list on a page with current plugins/themes with their revision pulled from the by-release sounds like a good option with a filter so people can search it. Often times the search function on the forums is bloated by keywords that dont relate to the search topic.
-
NPM Timing Out on NodeBB dependencies installI was having some issues with NPM a few days ago which was timing out, but was a issue with ports due to my firewall setup. So check to make sure git port is not being blocked.
Also could be an issue with the way your cloning. Was having issues cloning from another git like gitlab vs github, turns out the git:// git:link was the issue try adding that to the front if using SSH cloning.
-
issues installing Nodebb on Debian 8This might be just me, but I wouldn't be loading that under root directory. Create a new user and use that for nodebb location under home location. As to nodebb not showing up. What does your nodebb config, and nginx config look like? I don't know what you mean by debian comes with nginx already. Sure might be in the repo but shouldn't come installed, Unless a script you ran installed it for you.
-
[Solved] Help getting it to workYou gotta change your NGINX config to match the home directory for that domain's files. If you cant figure it out post your NGINX config file here.
-
Errors Search and Email@Defaultuser I'm not entirely sure this is the case but humor me.. Do you get any errors on the page if you inspect? If so what are they? Maybe your nginx config isn't looking in the right directory?
-
Error when starting NodeBB (Error parsing your configuration file)@MarximusMG said:
{
"url": "http://community.domain.com",
"secret": "",
"database": "redis",
"port":"4567",
"bind_address":"0.0.0.0", //new
"redis": {
"host": "127.0.0.1",
"port": "6379",
"username": "",
"password": "***",
"database": "0"
},"use_port":"false", //don't forget this setting
}
try
{ "url": "http://community.domain.com", "secret": "***", "database": "redis", "port":"4567", "bind_address":"0.0.0.0", "redis": { "host": "127.0.0.1", "port": "6379", "username": "***", "password": "***", "database": "0" } }
As Pichalite also mentioned. then repost log.
-
Discussion: NodeBB Plugins/Themes sectionI love NodeBB, It's quick fast easy to use. Problem is, most if not all the plugins & themes listed all over these forums are not compatible with the current version (This is obviously because development changes rapidly.), and most of all hard to find.
@administrators Should look at creating a Download manager section. Sort of similar to how Xenforo has it with "Resources." Then have the Plugin/Theme dev's post their git's/images/links/zip's in that area which is categorized with the nodebb build that it was made on.
It would go along way for keeping the forum clean, plugin discussions in the appropriate areas and categories etc. Just a random thought/suggestion, thanks for listening to my shitty opinion
-
issues installing Nodebb on Debian 8I'm running Debian 8, Mongo 3.2.1, Redis-server 3.0.6, Nodejs v0.12.9, npm 2.14.9 Everything seems to be running perfectly.
If your having issues you prob want to post logs so people can help understand the main fault.
-
Issues trying to setup NodeBB with MongoDB on DigitalOcean[solved]@ZenOokami said:
I don't think it was Mongodb's user or db being the issue ._.
Pretty sure "host identifier" has something to do with either nodebb or mongo's hosting setup, but I think it was that of NodeBBon the second time it wasn't accepting my webInstaller settings - not through the command line.
But thanks.
I wasn't talking about host identifier, I was talking about how to set up using auth and managing your DB's.
You having connection issues you should post all your logs, including nodebb, nginx configurations etc.
You said:
double colon in host identifier
Most likely issue with having a wrong syntax with the config.
-
How to deal with DDos attack?@AOKP said:
@Joykiller... Windows....
OVH improved enormously in the past years and thanks to an attractive pricing and good service (except you use Kimsufi) they are getting more and more popular.In the end everyone has to decide it by himself.
Yeah I know, I wish all game developers would use linux binaries for their game servers but nope. I will also not run them under wine because usually most don't work with it, the ones that do usually end up losing like huge performance vs windows box.
-
How to deal with DDos attack?@AOKP Oh yeah heard of them, used them for a month or so didn't really find them that appealing, imo. I honestly use a Gaming server provider mainly because they hardened them selves over the years due to kids DDoSing servers. Their support is top notch, literally 1-2 min ticket responses even at like 2 am. They have an amazing SLA. While on a Tier 1 backbone, 20000-50000 Mbps bandwidth ports. Oh yeah and one of my main reasons, free windows 2008/2012 license. (But mainly only use that for game servers hah.)
-
[nodebb-widget-discord] Discord Server Widget@AbelRavyn You still supporting this?
Would be interesting to integrate this into the profiles of the user.
Was looking into this too, maybe adding it to communicate with that api to ban users if they are banned from nodebb on the voip as well. But prob should wait till official api comes out though prob could port it easily enough.