Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Navbar Search Form/Input Box with Advanced Options Dropdown Details »
Navbar Search Form/Input Box with Advanced Options Dropdown
Mod Version: 1.00, by Chris-777 (Member) Chris-777 is offline
Developer Last Online: Feb 2016 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.5 Rating: (1 vote - 4.00 average) Installs: 15
Released: 12 May 2007 Last Update: 13 May 2007 Downloads: 94
Not Supported Template Edits Is in Beta Stage  

This is a quick template mod that roughly emulates the search box here at vB.org, without the forum select dropdown.

I saw a few mods somewhat like it but none with the input box, and like many people here once vB.org released the new skin, I had to have the search box. So after a bit of coding and hacking around, here's the way I did it.

Time to Install: 2 Minutes
Difficulty: Easy
Template Mods: 1
Demo: http://www.sevenstring.org
Login: guest/guest (unregistered search is disabled)

AdminCP -> Style Manager -> Edit Templates -> navbar

Find:


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

Add directly after:


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

Optional: Remove the old search link from your navbar.

Simply comment out the search text, like so. I'm sure there's a better way to accomplish this, but that's how I pull it off on my site. Any input appreciated.


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


Screenshot on default style:



And on my own:


Update 1.01

I've changed this to be a bit more useful, as it will now submit the query itself to search.php. I had it setup differently, but I think more people would prefer it this way. If you've already installed, just replace the template code.

Update for 3.7 RC4 or Gold for security token

Add the colored code:


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

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	search_template_full.jpg
Views:	418
Size:	101.7 KB
ID:	64241  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Mini Mods Navbar Search Form/Input Box Chris-777 vBulletin 3.7 Template Modifications 15 20 May 2010 19:35
Boolean Search as Default in Advanced Search Options Neutral Singh vBulletin 3.5 Template Modifications 6 12 Apr 2006 07:01

Comments
  #2  
Old 12 May 2007, 19:27
eNforce's Avatar
eNforce eNforce is offline
 
Join Date: Aug 2004
Thanks, working on my board.

Question though!

Instructions for removing the old Search link from the navbar? Every time I try it removes the drop down arrow from your hack.
Reply With Quote
  #3  
Old 13 May 2007, 03:46
Chris-777's Avatar
Chris-777 Chris-777 is offline
 
Join Date: Jan 2006
Real name: Chris
Hm, I haven't looked into that because I prefer to keep the old link as well. I'll take a peek at it tomorrow and see what I can come up with, if someone else doesn't get it first.

Edit:

Actually, though probably not the cleanest way to do it, just comment out the existing search text.


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

It'll remove the text, and there will just be a blank, zero sized table cell in it's place.

Last edited by Chris-777; 13 May 2007 at 03:49.
Reply With Quote
  #4  
Old 13 May 2007, 06:34
The Bish's Avatar
The Bish The Bish is offline
 
Join Date: Sep 2006
Excellent! Installed and waiting for a way to rid myself completely of the Search link while maintaining the arrow.
Reply With Quote
  #5  
Old 13 May 2007, 09:30
soletrader soletrader is offline
 
Join Date: Jul 2006
The dropdown doesnt work
Reply With Quote
  #6  
Old 13 May 2007, 14:57
Chris-777's Avatar
Chris-777 Chris-777 is offline
 
Join Date: Jan 2006
Real name: Chris
In which browser? I've tested it in IE, FF, Maxthon and Opera.
Reply With Quote
  #7  
Old 13 May 2007, 15:37
Chris-777's Avatar
Chris-777 Chris-777 is offline
 
Join Date: Jan 2006
Real name: Chris
Updated this to submit the full query (see first post).
Reply With Quote
  #8  
Old 20 May 2007, 00:00
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
The search box works just fine... but the dropdown arrow isn't working.

One change i'd like to suggest tho...

Instead of:

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

I used:

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

Reply With Quote
  #9  
Old 20 May 2007, 00:08
The Bish's Avatar
The Bish The Bish is offline
 
Join Date: Sep 2006
What does this change in code do?
Reply With Quote
  #10  
Old 20 May 2007, 22:13
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
In case you ever move your forums, or whatever... it uses a variable to get the url of the search page instead of hard coding... just better coding, that's all.


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

Reply With Quote
  #11  
Old 21 May 2007, 00:45
marcsmith73 marcsmith73 is offline
 
Join Date: Jan 2007
In order to accept POST request originating from this domain, the admin must add this domain to the whitelist.

I get the above.
Reply With Quote
  #12  
Old 20 Jun 2007, 17:01
Chris-777's Avatar
Chris-777 Chris-777 is offline
 
Join Date: Jan 2006
Real name: Chris
Did you strip the original search, or just remove the phrase?
Reply With Quote
  #13  
Old 30 Apr 2008, 19:06
Chris-777's Avatar
Chris-777 Chris-777 is offline
 
Join Date: Jan 2006
Real name: Chris
If you are running 3.7 RC4 or above, you will need to add the following colored code:


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

Reply With Quote
  #14  
Old 26 May 2008, 19:12
glennybee glennybee is offline
 
Join Date: Feb 2008
Thanks Chris, nice mod.

Installed!
Reply With Quote
  #15  
Old 05 Aug 2009, 23:54
Tiberonmagnus Tiberonmagnus is offline
 
Join Date: Jan 2003
Anyone know how to add the pre-search wording in the field? Such as the blank search area would say "Search...." and when someone clicks in the field it erases so they can type in what they want to search for?

__________________
http://www.legionofsteel.org
Reply With Quote
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 20:54.

Layout Options | Width: Wide Color: