If they have no posts they are considered a new user, so until one of their queued posts is accepted all their posts will go to the post queue. If you are not using reputation make sure Reputation required to bypass post queue is set to 0 or lower.
Can I have a plugin send notifications that are not topic related?
-
I want to send a notification to a group when a certain event is triggered. This notification is not related to any new topic or mention.
For example, I want to send a notification to the admin group when a new user is registered and the nodebb-plugin-newuser-approval plugin is active.
-
Yeah just create the notification with
notifications.create
then usenotifications.pushGroup
and pass the notification object.notifications.create({ nid: 'plugin:new_user:' + theiruid, // a unique notification id bodyShort: 'a new user is waiting approval' path: 'admin/plugins/approval', //clickin the notification will take user to this link from: theiruid // this will cause the new users image to appear with the notification }, function(err, notification) { if (err) { return callback(err); } notifications.pushGroup(notification, 'administrators', callback); });
-
@baris you should detect whenever anything is going to
/admin/...
and automatically open it in a new tab. -
@pichalite looking at the code, that shouldn't be happening. Hmmm...
-
@pichalite Try with https://github.com/NodeBB/NodeBB/commit/f89741636cdad244d38bf2c8dca52054f65c335c
Let me know if that works.
Suggested Topics
-
-
-
How can I trigger "page ready" via jQuery?
Moved Unsolved NodeBB Development
-
-
Copyright © 2023 NodeBB | Contributors