[nodebb-plugin-reputation-rules] Reputation Rules Plugin for NodeBB
-
@phenomlab - Yes, I was just looking at that now.
There is a console
Uncaught ReferenceError: require is not defined
at <this line of reputation-rules.tpl>.There was also a problem with the emoji plugin, but I deactivated that for the time being. I don't know if it was interconnected.
(v2.8.12)
-
Since nbb 2.x we don't use requirejs so embedding javascript into templates like that isn't supported, it needs to be a module defined in plugin.json and a separate javascript file. Take a look at https://github.com/NodeBB/nodebb-plugin-quickstart/blob/master/static/lib/admin.js for a sample.
-
@TheBronx - Before you do anything, let me try to make sure my system is set up correctly. Now I am getting a console error
error loading admin/plugins/reputation-rules
. I am wondering if the plugin failed to install correctly (although reinstallation didn't seem to help). -
@BrotherGlaucon try a rebuild
-
@phenomlab - Yes, I have tried rebuilding, reinstalling, removing other plugins, and switching to v2.x.
@baris - I do get an error related to <this thread>, but I am not able to locate the config.json file. Has this changed since 2018?
-
Looks like settings in ACP have changed since last release as @baris pointed out
Unfortunately thenodebb-plugin-quickstart
that serves as example/documentation wasn't enough to have the ACP completely working. Settings are no longer empty when I reload that page, but if I navigate somewhere else and then go back to the plugin settings they are empty. No idea why.
I also found this: https://community.nodebb.org/topic/16958/how-do-i-create-a-settings-page-for-my-plugin
But it again points out to the quickstart plugin and that plugin throws errors, it doesn't work in NodeBB 3.1.6So I could not fix this issue, which is pretty annoying considering how basic this is for a plugin. That's all the time I had, sorry.
-
Merged the pull request. Didn’t check if working. If you want to take care of the plug-in you cam have it as we don’t have developers to continue with it
-
@phenomlab published
@nodebb/[email protected]
it's compatible with nodebb 3.2.0, which is coming very