![]() |
|
|
Mod Options |
Navbar Search Form/Input Box with Advanced Options Dropdown Details »»
|
|||||||||||||||||||||||||||
|
Navbar Search Form/Input Box with Advanced Options Dropdown
Developer Last Online: May 2013
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:
Add directly after:
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.
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:
Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
No members have liked this post.
|
|||||||||||||||||||||||||||
Similar Mod
|
||||
| Mod | Developer | Type | Replies | Last Post |
| Navbar Search Form/Input Box | Chris-777 | vBulletin 3.7 Template Modifications | 15 | 20 May 2010 18:35 |
| Boolean Search as Default in Advanced Search Options | Neutral Singh | vBulletin 3.5 Template Modifications | 6 | 12 Apr 2006 06:01 |
| Comments |
|
#2
|
||||
|
||||
|
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. No members have liked this post.
|
|
#3
|
||||
|
||||
|
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.
It'll remove the text, and there will just be a blank, zero sized table cell in it's place.
__________________
![]() No members have liked this post.
Last edited by Chris-777 : 13 May 2007 at 02:49. |
||||
|
#4
|
||||
|
||||
|
Excellent! Installed and waiting for a way to rid myself completely of the Search link while maintaining the arrow.
No members have liked this post.
|
|
#5
|
|||
|
|||
|
The dropdown doesnt work
![]() No members have liked this post.
|
|
#6
|
||||
|
||||
|
In which browser? I've tested it in IE, FF, Maxthon and Opera.
__________________
![]() No members have liked this post.
|
|
#7
|
||||
|
||||
|
Updated this to submit the full query (see first post).
__________________
![]() No members have liked this post.
|
|
#8
|
||||||||
|
||||||||
|
The search box works just fine... but the dropdown arrow isn't working.
![]() One change i'd like to suggest tho... Instead of:
I used:
No members have liked this post.
|
||||||||
|
#9
|
||||
|
||||
|
What does this change in code do?
No members have liked this post.
|
|
#10
|
||||
|
||||
|
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.
No members have liked this post.
|
||||
|
#11
|
|||
|
|||
|
In order to accept POST request originating from this domain, the admin must add this domain to the whitelist.
I get the above. No members have liked this post.
|
|
#12
|
||||
|
||||
|
Did you strip the original search, or just remove the phrase?
__________________
![]() No members have liked this post.
|
|
#13
|
||||
|
||||
|
If you are running 3.7 RC4 or above, you will need to add the following colored code:
__________________
![]() No members have liked this post.
|
||||
|
#14
|
|||
|
|||
|
Thanks Chris, nice mod.
Installed! ![]() No members have liked this post.
|
|
#15
|
|||
|
|||
|
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 No members have liked this post.
|
![]() |
«
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 09:45.










