![]() |
Release: Toggle Search Results between Posts + Threads
1 Attachment(s)
Author: Dock
Description:This is a really, really, simple template modification. It basically adds the ability to choose whether to see the search results as posts or threads. I wanted to add this because I found it annoying using the 'simple search', but then realising I wanted to see posts instead of threads. I realise that it's possible to click on the 'Searched for' text to go back to the search page, but this is nicer IMO :) I don't know whether this is useful for anyone. EDIT: 1.1 - I changed the code so that it recognises whether it is on threads or posts, and offers to toggle to the other view. EDIT: 1.2 - I fixed the code so that it doesn't show on the getnew page. In the 'SEARCH-FORUMS' template, search for: Code:
Search took <b>$searchtime</b> seconds. Code:
Search took <b>$searchtime</b> seconds. |
Notes:
This hack will also show up on the "search within this thread" results, but clicking either of the links will make no change to the current page. I should probably try to find a conditional to make it disappear for that page too. |
I was wondering if anyone could help me to finish this hack. I still have problems with this code appearing within the 'search this thread' results. I've tried <if condition="$search[searchthread]"><else /> and <if condition="$search[searchthreadid]"><else /> and a wealth of others, but I can't see to find any way to turn off this hack on the 'search this thread' page. :( Can anyone help?
|
All times are GMT. The time now is 12:35 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|