View Full Version : Search drop-down has "Search just titles" also.
This template change will make the search drop-down menu on your forum have 2 boxes. One to search all posts (the current one), and one to search just thread titles.
Installation:
Open template 'navbar'.
Search for:
<form action="search.php" method="post">
Place after:
$vbphrase[post]:<br>
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="text" class="bginput" name="query" size="20" />$gobutton<br />
</form>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="search.php" method="post">
$vbphrase[title]:<br>
<input type="hidden" name="titleonly" value="1" />
Dont forget to click install!
FleaBag
07-27-2005, 11:13 PM
Sweet, am liking this a lot. Thanks for sharing.
Tony G
07-28-2005, 04:03 AM
Nice mod.
Could you please attach it as a .txt file rather than posting the instructions in the thread? It makes it easier for members to refer to your template modification if they need to re-install it for any reason in the future. :) Thank you.
Nice mod.
Could you please attach it as a .txt file rather than posting the instructions in the thread? It makes it easier for members to refer to your template modification if they need to re-install it for any reason in the future. :) Thank you.
done
sketch42
07-28-2005, 04:35 AM
can you add radio button to return threads or posts? :D
can you add radio button to return threads or posts? :D
Will try. (nice idea.)
FleaBag
07-28-2005, 11:16 AM
Ya know I am really liking this. This should be stock in vB I reckon. I'm going to add a search box for my gallery, link directory e.t.c. underneath it too.
Tony G
07-28-2005, 11:30 AM
done
Usually involves removing the code from the actual post, but eh that's good enough. :)
Usually involves removing the code from the actual post, but eh that's good enough. :)
Give people a choice. If they want to download something or not.
Tony G
07-28-2005, 12:02 PM
Yes, I understand that, I don't have any objections to it being in the post, just thinking out aloud. :)
Gizmo5h1t3
08-10-2005, 12:06 PM
doesnt seem to make any change in RC2...first hack that hasnt worked on here so far...
doesnt seem to make any change in RC2...first hack that hasnt worked on here so far...
It should work good on RC2. If you have more then one style, make sure you edited all of them.
turksengel
08-10-2005, 03:04 PM
can you do that search for username i mean searching someone's posts ?
Tony G
08-11-2005, 04:54 AM
If you want to search posts, you put your search request in the 'Post' box. If you want it to just searcg thread titles, put your search request in the 'Title' box.
Darat
02-23-2006, 09:16 AM
Could you add this to the forumdisplay template to add the option to the "Search this forum" dropdown?
BabyNameAddict
03-09-2006, 03:20 AM
Works flawlessly :)
rareclownfish
04-06-2006, 01:29 AM
Nice installed
rareclownfish
04-06-2006, 02:28 AM
Well It worked for a like a couple sec and them it's not there anymore. What could have happend?
Well It worked for a like a couple sec and them it's not there anymore. What could have happend?
Did you only install it in one style?
rareclownfish
04-06-2006, 02:44 AM
I olny have one
I olny have one
How did it disappear? You only see one option now?
rareclownfish
04-13-2006, 02:56 AM
I tried this again and now my search function is out of wack.
this is the error I'm getting ---href="search.php" accesskey="4" rel="nofollow">Advanced Search
I fied that prob, but can't get both to show up.
stinger2
01-30-2007, 09:36 AM
cool
yoyoyoyo
09-10-2007, 11:42 PM
any way to get this working in 3.6.8?
any way to get this working in 3.6.8?
Go look in my profile for the vb3.6 version.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.