nodebb-plugin-events

0.1.1 • Public • Published

Topic Events plugin for NodeBB

Catches events such as topic pinned/unpinned, locked/unlocked, and moved. Adds a small notification inline within the thread, with the moderator's picture, username, brief description of the event, and timestamp.

Installation

npm install nodebb-plugin-events

Adding custom events in your own plugin

Server side:

/*
*  eventType: topic / user
*  typeID: tid or uid
*  eventName: only the most recent of this will be recorded, the previous will be deleted
*  eventData: things that you want to pass along to your template
*/
plugins.fireHook('action:event.add', eventType, typeID, eventName, timestamp, eventData);

Screenshots

Package Sidebar

Install

npm i nodebb-plugin-events

Weekly Downloads

0

Version

0.1.1

License

BSD-2-Clause

Last publish

Collaborators

  • psychobunny