I think i will use websockets, thanks for the advice. At moment i'm using callbacks only because can't do different.
Probably async/await will be available from the next version (I've read that too).
[Solved] Using the Active Users in Thread
<div class="thread_active_users active-users inline-block"></div>
Does not work anymore where I have it positioned which is OUTSIDE the
<!-- BEGIN posts -->. This has worked before, but now, IDK what was changed.
I believe I am missing something here...
It works when I put it within the
<!-- BEGIN posts -->block.
Are you on latest? Active users block shouldn't be inside the posts block.
Yessir, I'm on the latest. And it should be inside (or should I say within) the posts block.
This is how it works here on Lavender below the first post on the posts-bar.
Ahh gotcha, make sure your tpl files have this check https://github.com/designcreateplay/NodeBB/blob/master/public/templates/topic.tpl#L157. Without that each post has a postbar underneath which causes the active users to stop working.
Ohhh okay, got it. Thanks @baris !
Well really what I am saying is that now I am forced to put the browsing users in the postbar, as opposed to before I was able to put it anywhere.
-_-' Dang. Well that limits flexibility here.
I'll have to find that selector in the topic.js
I will do it don't worry
Works nicely! Thanks @baris