Threaded views?
-
I specifically wanted the discussions in my forum to be aesthetically pleasing - but at the same time, allow users to turn a new "threaded" view on or off depending on their preferences.
Here's the result of a few hours work using
jQuery
and customCSS
Enjoy
https://sudonix.org/assets/demo-threading.mp4
EDIT - if the video doesn't work for you (seems a little sporadic, and when it does, it bursts out of the DIV), then go to
https://sudonix.org/topic/569/threading-support-for-nodebb/11
-
New code released for the threaded views - available here
https://sudonix.org/topic/569/threading-support-for-nodebb/31
Video here
-
@phenomlab When a topic is threaded, what happens to post order? e.g. if I reply to one of the top branches, does my reply show up near the top?
The re-ordering issue (especially in the context of fully supporting infinite load and pagination) is what makes doing this in core hard.
-
@julian said in Threaded views?:
The re-ordering issue (especially in the context of fully supporting infinite load and pagination) is what makes doing this in core hard.
Yes, I haven't attempted this yet. This would be a serious manipulation of the DOM elements too.
-
@julian Exactly. It's just not feasible and would cause significant strain even with lazy loading. It's why I've opted for 2nd best, which is the "cosmetic" route meaning certain posts (for example, your own, and
topic-owner
) stand out.