PDA

View Full Version : Navbar Search Form/Input Box


Chris-777
30 Apr 2008, 19:04
Updated version of my older mod here (http://www.vbulletin.org/forum/showthread.php?t=147076), fixed for the new security token feature.

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.

Note that simply clicking the search button with no query will bring you to the default search page.

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:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Add directly after, replacing the colored text with your domain/forum path to search.php



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Note that the bold text is what's new for 3.7.

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.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Screenshot:http://www.sevenstring.org/chris/vbmod_searchbox.jpg

This will be considered beta until I have it running with 3.7 for awhile to ensure there are no other hidden issues.

sunrunner_pei
30 Apr 2008, 20:06
Just installed, and I wanted to note that the link for 'form action' has to be updated to reflect your own forums URL. Other than that, great job!

cafenetland
30 Apr 2008, 21:26
installed.

digicom
01 May 2008, 10:57
installed Thanks:up:

Defkalion
01 May 2008, 12:16
nice mod. Is it possible to put also a second box that does the tag search?

Jasem
01 May 2008, 12:20
Thank you very much :)

VNFriends
01 May 2008, 15:42
thanks so much :D

chimaira
05 May 2008, 16:13
Thanks, addded this to my sidebar :)

XnaMe
05 May 2008, 21:03
Our records show that you have already registered under the name of Admin. If you have lost your password, click here (http://themobilebay.com/forum/login.php?do=lostpw). If you would like to modify your profile, click here (http://themobilebay.com/forum/profile.php?do=editprofile).

What's wrong with this?

chimaira
10 May 2008, 22:39
http://img363.imageshack.us/img363/4610/95212138pp1.jpg
Having this problem, How do i get rid of that arrow



No problem, fxied it

powerful_rogue
15 May 2008, 15:06
How come I didnt get a little arrow to do the advance search?:p

J.kay
22 May 2008, 18:10
How come I didnt get a little arrow to do the advance search?:p

quote

dvbusuario
02 Jul 2008, 16:14
Nice mod, Install!

but how change method="post" to "only titles"?

ByB
19 Nov 2008, 12:32
:)Installed thank you very good

momo2
23 Nov 2008, 03:04
very nice, worked on 3.7.4 with no problem, if there is a way a text saying search in side and as soon your mouse hit the box make it clear ? that type the search ?