Because I'm an idiot I had to flushdb (redis --- delete db). How do I create new admin user in command line (or in notepad, or whatever lol)???
@deathfortress run ./nodebb setup from your nodebb folder.
It will detect you don't have an admin account and ask you to make another.
@deathfortress ahh, you negated to mention that bit. Pretty sure the interactive setup at node app.js should do the same thing.
Full documentation here, I've not used windows for nodebb, so if that doesn't work, then @psychobunny will be able to point you in the right direction. It's his guide.
ive found this post, but i dont understand how to get a csrf token
How can we get notification if someone create a new topic .Because its a big problem now. There must be some way
To get the current post, in the context of the button click, use the data-pid selector.
var pid = $(this).closest('[data-pid]').data('pid');
Now for the current user, you would submit a socket or route call with your pid, and check server-side.
For sockets, you get socket.uid https://github.com/NodeBB/NodeBB/blob/8ea5c060f50d1231c3ae3f7cbf5b2fe23ecf51e6/src/socket.io/notifications.js#L10
For routes, you get req.uid https://github.com/NodeBB/NodeBB/blob/54c951cc816b83168083000ae3e08af6c07d4c73/src/controllers/user.js#L12
@baris Chrees! This really helps. 👍
@livey0u It is just a requirejs module so just require it.