Skip to main content
Topic: Threaded View (Read 9718 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Threaded View

(Transferred from here.)

Now that MyBB et al. are removing the Threaded View from the core and many people are stating that they'll miss it, maybe ElkArte should add it?
-

Re: Threaded View

Reply #1

If there's a need. I think I can count on one hand how many people I've seen ask for this feature over the years using SMF. But first you have to find someone who wants it, and can start working on it. :)
Success is not the result of spontaneous combustion, you must set yourself on fire!

Re: Threaded View

Reply #2

Maybe most people have never used it, else they'd know its advantages. :D
-

Re: Threaded View

Reply #3

Quote from: forumsearch0r – Maybe most people have never used it, else they'd know its advantages. :D

I'm pretty sure people have heard of sites like reddit and can see how horrible it is to read it. :D
Success is not the result of spontaneous combustion, you must set yourself on fire!

Re: Threaded View

Reply #4

Me use MyBB since many years. Threaded View never come to be deployed. Will not be missed.
It is not worth the trouble.

Re: Threaded View

Reply #5

yep, agree.. "Threaded view" would require lots of changes..
1) modify the database structure in order to reflect replies to Messages
2) rewrite (and duplicate) the template.
3) modify the topic / message actions (merge, split and such stuff) -> move reply x to reply y inside a single topic and such things.

I think the MyBB folks do have a good reason why it was removed.
Thorsten "TE" Eurich
------------------------

Re: Threaded View

Reply #6

Quote from: TE – 1) modify the database structure in order to reflect replies to Messages

Add one int column.

Quote from: TE – 2) rewrite (and duplicate) the template.

Just extend the existing one. You do that all the time.

Quote from: TE – 3) modify the topic / message actions (merge, split and such stuff) -> move reply x to reply y inside a single topic and such things.

Why? It already does what it should.
-

Re: Threaded View

Reply #7

Not to sound like a dick, but if it is that easy, do it.

Some big questions which arise immediately: if you have 10 posts per page, what if a post has 1000 sub-posts? If you do ?msg=X where X is a threaded message, you have to get all of its parents and children. Do threads have multiple levels? How do you find all of those levels?

Re: Threaded View

Reply #8

Quote from: groundup – Not to sound like a dick, but if it is that easy, do it.

I'm short on time. Maybe later.

Quote from: groundup – if you have 10 posts per page, what if a post has 1000 sub-posts?

Use collapse/expand functionalities.

Quote from: groundup – If you do ?msg=X where X is a threaded message, you have to get all of its parents and children. Do threads have multiple levels? How do you find all of those levels?

Recursion.
-

Re: Threaded View

Reply #9

A recursive query? So a thread with 100 levels would result in at least 100 queries. Of course that is extreme and you would probably want to have some setting to limit the number of levels. Still, say you set that to 10. You are then adding 10 queries to that page. It would be per level since you would get the first level, then do SELECT ... FROM messages WHERE id_parent IN($parents);

Even if with collapse/expand, you are getting all of those queries. Unless it uses AJAX to get the rest of them? I am pretty sure that Elk follows the SMF model of all functionality working with JS turned off, so that wouldn't work.

Re: Threaded View

Reply #10

Quote from: groundup – Elk follows the SMF model of all functionality working with JS turned off, so that wouldn't work.

The German heise community has threaded views with pagination without JavaScript IIRC.
-

Re: Threaded View

Reply #11

Then if you have a post with 1000 sub posts you need to get those 1000 sub posts. Unless the posts per page is applied to the sub posts. Then your pagination needs to be rewritten.


Re: Threaded View

Reply #13

Huh? You only need one query to get the posts on the page. Without looking it is something like "SELECT ... FROM messages WHERE id_topic = $topic AND id_msg > $id_msg_start AND approved = 1 LIMIT $posts_per_page"

Re: Threaded View

Reply #14

Precisely. Now what is your point?
-