![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||||||||||||
[How to: VB4] Change Default Advanced Search Tab
![]() Developer Last Online: Feb 2021 ![]() ![]() ![]()
Many of my forum members are older folks (like me) and I like to make things as simple as possible for them. Currently, when you click Advanced Search, the default search tab is "Search Multiple Content Types." Since 99% of my members are only interested in searching "Posts", I wanted to make the "Search Single Content Type" the default tab so they don't get confused about which "content types" to select. If you want to change your default Advanced Search Tab to "Single Content Type", here is what you do:
1.) Make sure you are in debug mode so you can see the "MASTER Style" Template in admincp. To do this, edit your /includes/config.php file and change this:
to this:
NOTE: Be sure to change it back when you are done with this mod. Then in the "navbar" template, under the Navigation / Breadcrumb Templates (in the MASTER Style): Find this code:
and change it to this:
All you are doing here is adding "search_type=1" following the {vb:raw session.sessionurl_q} IMPORTANT: If you are running VB 4.2.2 you will notice that the "?" is missing from here
so it looks like this:
If you don't see the "?" after "search.php" be sure to add it, otherwise it will not work. I don't know why they took out the "?" in 4.2.2, but it seems that did, so make sure you add it back if necessary. Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Boolean Search as Default in Advanced Search Options | Neutral Singh | vBulletin 3.5 Template Modifications | 6 | 12 Apr 2006 06:01 |
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 16:04.