Please open an issue on our github tracker, I am not sure if we should just remove the saving to user settings in the sort dropdown all together and move the sort settings to /user/<slug>/settings like everything else. Then you can change the sort order in every topic without effecting your settings. The setting used in the user page would be the default sort when you enter a topic.
Get UID
-
I'm trying to modify the shoutbox plugin a bit, so I can style own shouts differently. Therefore, I need the current users UID, so I can do something like
if (shout.fromuid === app.uid) { // add custom class in template }
Now I tried different variables which I saw at other points in the code (
app.uid
) or work in the developer console (app.user.uid
) But they are bothundefined
.Any hints on how to get the UID?
Disclaimer: I'm a noob with JS. But I learn, so bare with me
-
Inside of the client script... Anyway, I just restarted NodeBB and tried it again, it works fine now
Thank you!