No it goes in library.js since it's a server side hook. And you need to add the corresponding entry in plugin.json.
// library.js myPlugin.filterMiddlewareRender = async (hookData) => { hookData.templateData.user = await user.getUserData(hookData.req.uid); return hookData; }; //plugin.json "hooks": { "filter:middleware.render": "filterMiddlewareRender" ... }nodeBB setup {windows}
-
Hello community,
I'm currently in the process of hosting the nodeBB forum for personal use however I yet to get it up and working. I followed the documentation correctly however when installing said dependences within the gitshell and cloning, it doesn't seem to work. Any help of any kind would be appreciated.
Kind Regards,
jheisen
-
@jheisen We can try to help if you give more details of the issue like any error messages instead of "it doesn't seem to work"
-
@pichalite Indeed, I'm sorry for not being more direct.
From following these docs: https://docs.nodebb.org/en/latest/installing/os/windows8.html
npm install
node app.js --setup
node app.js^ Don't seem to work, before you ask Yes I've installed all the dependent software...
Kind Regards,
Jack
-
@jheisen post the errors you get.
-
@jheisen try installing Node6 instead of the old version in the docs. Then try using cmd instead of PowerShell.