Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

mudkipme/nodebb-plugin-trophies-updated

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trophy Plugin for NodeBB

This plugin lets you create reward badges for your users and manually add them to their user profile.

It was developed for use on 52Poké Forums.

Setup

First, install it to your NodeBB instance. You can do it from the admin interface or you can install it with

npm install nodebb-plugin-trophies-updated

from your nodebb install directory.

Plugin uses widget system, but intended to be displayed only on the user profile page. Therefore, you have to have a widget area in your theme, template file templates/account/profile.tpl to be more specific, in order display this widget.

For the Persona theme, I had to add following, around line 26:

<div widget-area="middle" class="text-center">
  <!-- BEGIN widgets.middle -->
  {{widgets.middle.html}}
  <!-- END widgets.middle -->
</div>

It's also needed to define the widget area in filter:widgets.getAreas hook.

{
  name: "Profile Middle",
  template: "account/profile.tpl",
  location: "middle"
}

You can also take a look at nodebb-theme-persona-52poke-forums.

Then, you can go to your admin panel and go hog wild.

License

MIT

Credits

This plugin is a fork of toxuin's original nodebb-plugin-trophies.

About

NodeBB: Custom award badges for your users!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 55.4%
  • Smarty 40.0%
  • Less 4.6%