
02-13-2004, 06:18 AM
|
 |
|
|
Join Date: Dec 2001
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by WetWired
The purpose of this hack is to provide missing information to linear view mode users and to help your linear mode users and your threaded mode users to get allong better. What this hack does is display the title and author of the post that each post is in response to. I got the idea from a board I visit that used to be UBB Threads, though my choice of presentation is a bit different.
See the attached screenshot for an example of how this can look. The hack itself only provides the additional items in $post, so it is up to the templates exactly how it looks. (The changes I used are included as an example in the hack instructions)
This hack has been tested on vB3.0.0RC4 and vB3.0.0RC2.
It adds 1 query to showthread in linear mode, and adds 1 additional query in linear mode for each consecutive layer of deleted parents of posts displayed on a page. (If a displayed post is a reply to a deleted reply to an undeleted reply to a deleted reply to an undeleted post, 2 total queries are added to showthread, but if a displayed post is a reply to a deleted reply to a deleted reply to a deleted reply to an undeleted post, 4 total queries are added to showthread. If both examples are displayed in the same page, only 4 total queries are added to showthread.)
This hack changes one file, requires no queries, and requires changes to one template.
Please click the install button above if you install this hack.
Please leave any questions about the hack in this thread, I will answer them whenever I get the chance (probably about once a week after the first week).
|
Instead of referring to "Untitled post", try referring to post numbers?
|