$ cnpm install nodebb-plugin-events
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.
npm install nodebb-plugin-events
/* * 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);
Copyright © npmmirror.com | 浙ICP备15033595号-63 |