Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[How to: VB4] Change Default Advanced Search Tab Details »
[How to: VB4] Change Default Advanced Search Tab
Mod Version: 1.00, by BasilFawlty (Designer) BasilFawlty is offline
Developer Last Online: Feb 2021 I like it Show Printable Version Email this Page

vB Version: 4.2.x Rating: (0 vote - 0 average) Installs: 3
Released: 01 Jan 2014 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and change it to this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

so it looks like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
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

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 16:04.

Layout Options | Width: Wide Color: