Collapse/Expand Thread on 02/12/2003 02:10 PM CST
Links-arrows 1
Reply Reply
Andy, I came up with a better idea, and hopefully one easier to code.

I keep suggesting we have an "ignore thread" link but all the possibilities just make it more cumbersome. So, instead, I have a better idea than that one.

Add two links that are auto-stamped to each post, same as "ignore author" and "email author". One is "expand thread" and the other is "collapse thread". It would be a simple(?) JScript function which searches the subject lines of all posts on that page for matching subject lines and expanding/collapsing them as requested.

Also, a shortcut for doing the deed would be using the click() method to simply trigger the link already there (on the author's name) for expanding/collapsing individual posts. Basically, check each post to see if its subject line matches and its current condition does NOT match the requested one (expanded/collapsed) ... if both conditions are true, then click() the associated link and move on to the next.

That way if you want an "ignore thread" feature, you just collapse it. But tomorrow, the thread is back in case you want to see if anything's changed (but a simple click makes it vanish again if so desired). Also, one could set their main BBS options to opening pages with all posts collapsed, open posts one by one, and if they see a thread they want to read, just click one link to expand all posts in that thread and scan the page to read only those posts which are open. Then a single click on "collapse thread" puts them back to a list of post names only.

Possible?

~~~Krin
Reply Reply