• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

[Solved] Using the Active Users in Thread

Scheduled Pinned Locked Moved NodeBB Development
10 Posts 2 Posters 140.6k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • trevorT Offline
    trevorT Offline
    trevor Plugin & Theme Dev Anime Lovers GNU/Linux
    wrote on last edited by trevor
    #1

    <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.

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #2

    Are you on latest? Active users block shouldn't be inside the posts block.

    1 Reply Last reply
    0
  • trevorT Offline
    trevorT Offline
    trevor Plugin & Theme Dev Anime Lovers GNU/Linux
    wrote on last edited by trevor
    #3

    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.

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #4

    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.

    1 Reply Last reply
    0
  • trevorT Offline
    trevorT Offline
    trevor Plugin & Theme Dev Anime Lovers GNU/Linux
    wrote on last edited by trevor
    #5

    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. 😏

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #6

    That might be something we can fix by modifying the javascript code. The selector is probably using the postbar class too which is not really necessary.

    1 Reply Last reply
    0
  • trevorT Offline
    trevorT Offline
    trevor Plugin & Theme Dev Anime Lovers GNU/Linux
    wrote on last edited by trevor
    #7

    -_-' Dang. Well that limits flexibility here.
    I'll have to find that selector in the topic.js

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #8

    I will do it don't worry 😄

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #9

    https://github.com/designcreateplay/NodeBB/commit/3fe9bdc24cf59eadfcd54107fda9be577dc6aab7 should do the trick.

    1 Reply Last reply
    1
  • trevorT Offline
    trevorT Offline
    trevor Plugin & Theme Dev Anime Lovers GNU/Linux
    wrote on last edited by
    #10

    Works nicely! Thanks @baris

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development