[nodebb-plugin-ns-awards] NS Awards, Give Medals!
@nicolas can't wait to check this out tomorrow.
Great work once again!
Where will these awards show up?
You can edit your theme to show awards.
Also, there is an ongoing conversation/feature request, to it will be possible to simplify the integration process.
awesome plugin it would be great if you add built in rewards support so using built-in rewards plugin we can rewards awards :p:
Great looking plugin but I'm struggling to get it working. I'm using the Vanilla theme.
Here's what I've done so far:
- Added awards_profile_flex.tpl and awards_topic.tpl to nodebb-theme-vanilla/templates/partials
- Added the "<!-- IMPORT partials/awards_profile_flex.tpl -->" line to nodebb-theme-vanilla/templates/account/profile.tpl
- Added the "<!-- IMPORT partials/awards_topic.tpl -->" to nodebb-theme-vanilla/templates/topic.tpl
- Given a user an award
- Restarted NodeBB
Nothing showing on the profile page or on any posts. Inspecting the html shows no reference to any of the elements in the templates.
What am I missing?
I'm not sure if restart triggers template recompile.
When you changing templates for your theme, you have to recompile them.
try to stop forum, build static assets (
./nodebb build), and start it again:
"Restart" as hit from the ACP will, yes
@Nicolas Please add a feature of awarding if some task is achieved like a first post or first upvote or some reputation gained.
Also if some award is given we can have the option to add few reputation to the user's account.
The plugin was not designed to handle triggers to do award assignments. But with the latest version, it's possible to write a plugin which can do it.
@Nicolas Thank you for your work!
Does it work for nodebb 1.7.4? This plugin looks impressive! and is it possible to add the award as follows (below the user's image)?
@nicolas is this plugin working with 1.9.0 node bb?
@nicolas amazing plugin I just give an idea about user defined awards as well.. so that other users can also give rewards to another users and followers... That way the names and the creativity of the Awards will be in finite because based on the number of users. And it will no longer be dependent of admin's soul creativity
@faizanzahid yes its working. Just getting this error randomly when creating polls sometimes.
@nicolas can you please tell me what exactly changes i have to do on my profile.tpl page and post page if i want to show rewards ? u mentioned about CSS classes, but where exactly do i put it and how, can u give an example plz?
We are using persona theme.
node_modules/nodebb-theme-persona/templates/account/profile.tpl，I paste it there.. does not work?
@sharonyue did you run
./nodebb buildand restart after making the edit?
./nodebb start. Nothing happens.
But I can enter the award in the API, and
BTW, do I need to copy them there?
copy awards_profile_flex.tpl and awards_topic.tpl to nodebb-theme-vanilla/templates/partials
What theme are you using? That where you need to copy the templates to and modify the templates in.
Thank you. Yes, I confirm that I need to copy
templates/partialsfolder then it works.
New version is available.
- Changed NodeBB compability to work with NodeBB v1.11.0