 |
 |
 |
 |
Registered: 03/13/07
Posts: 26
|
|
|
 |
 |
 |
 |
|
 |
 |
 |
 |
#133773 - 12/28/02 03:20 PM
Re: "in reply to" missing in flat mode
|
Anonymous
Unregistered
|
quote: So, at some point earlier in the viewflat script you must already have already encountered that user and his/her userdata.
What if the thread takes more than one page to display, and the relevant post is on a previous page? I don't think the information would be available without additional queries, but I'd have to examine the code to verify that.
It might be worthwhile to add the extra queries in, and do a benchmark, just to see how much extra processing is really involved.
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#133774 - 12/28/02 04:04 PM
Re: "in reply to" missing in flat mode
|
Anonymous
Unregistered
|
Maybe a configurable option (similar to full / partial new post tracking). That way boards where load and speed is a concern could turn it off. I would think Classic Users wouldn't mind this, as it make it very similar to Classic's view. Josh Measurection.com Admin | ThreadsDev.com Moderator Register to see my How To/Site Help Library Forum at ThreadsDev.com. My threads 'tweaking' abilities are for hire.
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#133776 - 12/31/02 04:40 PM
Re: "in reply to" missing in flat mode
|
Anonymous
Unregistered
|
I wrote a modification that will add this back. It's here at threadsdev.com. You need to login/register to see it. Modify at your own peril. Be warned that it increases the number of queries. If you notice your board is slow, or you start to get "too many connections" SQL errors... then this would be the first thing I would remove. I have it set up 2 ways. One option adds 1 query per post (usually people view 10 posts per page). it offers a link, which opens in a new window to the users profile. So you can click, pop open a window, and see who posted it. The second step grabs the username and does the Re: Username thing.... it adds 2 queries per post. But if you must have this feature, and your server can handle it, and you aren't afraid of hacking, then give it a try. Josh Measurection.com Admin | ThreadsDev.com Moderator Register to see my How To/Site Help Library Forum at ThreadsDev.com. My threads 'tweaking' abilities are for hire.
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#133778 - 01/02/03 12:48 AM
Re: "in reply to" missing in flat mode
|
Anonymous
Unregistered
|
quote: I think the best way would be to add a new field to w3t_Posts. Lets call it B_ParentUserID  . Now we only need one extra query for each post and in combination with an cache-array to reduce the queries this could be a good solution.
What do you think?
That was exactly my theory. There would be no harm in storing the userNUMBER of the person you were replying to. Because that would never change
I made that suggestion to Rick at our development board a couple of days ago. We'll have to see what direction this goes in the next version.
Thanks.
Josh Measurection.com Admin | ThreadsDev.com Moderator Register to see my How To/Site Help Library Forum at ThreadsDev.com. My threads 'tweaking' abilities are for hire.
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
|
|