0.1.1 • Published 10 years ago

nodebb-plugin-events v0.1.1

Weekly downloads
3
License
BSD-2-Clause
Repository
github
Last release
10 years ago

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

npm.io npm.io

0.1.1

10 years ago

0.1.0

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago