@phenomlab it seems like it kind of works, but the ads are intermittently showing and only on the front page, although I put the widget in the global header. My guess as it's something related to the google adsense code not being inside the head tag. I will keep exploring the option of using custom header and try to figure out how to detect the guest users in javascript.
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. -