[nodebb-plugin-ns-awards] NS Awards, Give Medals!
-
- Don't paste content of
awards_profile.tpl
, but include it in your theme template. So, somewhere inprofile.tpl
, add this code:<!-- IMPORT partials/awards_profile.tpl -->
- You should edit initial template of your theme, not compiled one. Initial template could be found, in node modules directory, example for Vanilla:
nodebb/node_modules/nodebb-theme-vanilla/templates/account/profile.tpl
- After restart everything should be Ok
- Don't paste content of
-
@Nicolas said:
- Don't paste content of
awards_profile.tpl
, but include it in your theme template. So, somewhere inprofile.tpl
, add this code:<!-- IMPORT partials/awards_profile.tpl -->
- You should edit initial template of your theme, not compiled one. Initial template could be found, in node modules directory, example for Vanilla:
nodebb/node_modules/nodebb-theme-vanilla/templates/account/profile.tpl
- After restart everything should be Ok
Thank you. Now a new problem:
- Don't paste content of
-
Don't know how you did reach such result
Did you update template with simple import? -<!-- IMPORT partials/awards_profile.tpl -->
, because It looks like you have copied content ofawards_profile.tpl
toprofile.tpl
... -
Version 1.2.0
New version is available.
Introduced settings to ACP:
Now you can show awards in topic view:
-
Did you activate it?
I have developed this plugin on 0.7-dev -
@Nicolas said:
Did you activate it?
I have developed this plugin on 0.7-devI have activated it and the routes are there. Aside from the header, sidebar, breadcrumb etc. there's just nothing there. Not a single error showing up in the logs or the browser's console.
I'm currently running 0.7 Stable.
-
Update: /awards does have the
<div id="awards">
in it, but its only child is the breadcrumb.@Nicolas The ACP page being empty may be a result of the script in https://github.com/NicolasSiver/nodebb-plugin-ns-awards/blob/master/public/templates/admin/plugins/awards.tpl being commented out?
-
Did a clean
npm install
again and re-installed/activated the plugin. /admin/plugins/awards still empty. Changed the plugin load order to load this plugin first instead of last. Still nothing.The network tab in the inspector shows a file with the URL /src/admin/plugins/awards.js is requested but completely empty (not 404, just empty and 200 OK), does that have anything to do with it?
-
-
You should use general section for such questions
$ sudo apt-get install -y python-software-properties $ sudo add-apt-repository -y ppa:rwky/redis $ sudo apt-get update $ sudo apt-get install -y redis-server
If you have Ubuntu, It will update to latest redis.
-
Maybe It's another problem related to
redis
?
Number of records extracted correctly (you have 2 grants in user's profile), but there is no payload/data for this records:- no award data
- no grant data
- no awarded by data
Do you have access to NodeBB console logs?
Try to visit account page, and check in this moment - logs. Do you have any errors or warnings?
As a second option, try NodeBB setup with MongoDB. Will you have all these issues with mongo also?