Quote:
Originally Posted by SemperFideles
I'm sorry magnus to bother you if you covered it previously. I tried searching for the term I was using.
When I click on Today's Posts, the results display not only the title of all the threads (if I click on the thread titles I'm taken to the first post). But, each thread listing also contains a clickable icon to "View Last Post".
Thus, it seems that the search results are, in fact, returning the Thread ID and Post ID of bost the first and last posts for each thread in the list. I'm not sure I understand, then, when you say that it doesn't contain "necessary information" to display anything other than the first post.
When I click on a particular forum for instance, it seems like the only thing I see are the thread title (which I can click on for the first post) and a clickable icon to "View Last Post". Thus, like search results, the forum listing seems to contain thread id and post id for each thread.
Why, on the one hand, does the forum listing contain the information needed while, on the other, the search results do not?
|
There's no (easily) available way to pull the first unread postid within search. So, to prevent accidental breakage, search results were restricted to firstpostid. Yes, they can display lastpostid. It was just simpler, at the time, to just force forstpostid. My logic was that someone searching was looking for something specific, and generally, that information would be found in the first post.
If you want lastpostid results within search, edit the
Make changes to 'threadbit' template plugin.
FIND:
PHP Code:
if (THIS_SCRIPT == 'search')
{
$postidtype = 'firstpostid';
$titlephrase = $vbphrase['first_post'];
}
REPLACE WITH:
PHP Code:
if (THIS_SCRIPT == 'search')
{
$postidtype = 'lastpostid';
$titlephrase = $vbphrase['last_post'];
}
This will only work for firstpostid and lastpostid. It will not work for the first unread post.