I updated to v1.3.0 and now I'm getting a different error when trying to visit the forum
TypeError: Cannot read property 'loggedIn' of undefined at helpers.displayMenuItem (/home/myuser/nodebb/public/src/modules/helpers.js:20:44) at checkConditionalHelpers (/home/myuser/nodebb/node_modules/templates.js/lib/templates.js:269:76) at parse (/home/myuser/nodebb/node_modules/templates.js/lib/templates.js:424:15) at parseTemplate (/home/myuser/nodebb/node_modules/templates.js/lib/templates.js:133:14) at Object.templates.parse (/home/myuser/nodebb/node_modules/templates.js/lib/templates.js:119:11) at /home/myuser/nodebb/node_modules/templates.js/lib/templates.js:169:30 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)SOLVED Get users Link for header menu
-
Hey! How is it possible to get the username for a link in the header menu?
And how do I know such things in the future? I also looked in the .tpl file and tried {username} but it does not seem to work here.
Looking forward! Kind regards, Pascal.
-
If you want to send someone to one of their own user pages, use
/me/{page}
. For instance, https://community.nodebb.org/me/bookmarks redirects to/user/{your username}/bookmarks
. Try it out. -
If you want to send someone to one of their own user pages, use
/me/{page}
. For instance, https://community.nodebb.org/me/bookmarks redirects to/user/{your username}/bookmarks
. Try it out. -