[vBulletin] Simple Search Bar that can be added anywhere you'd like.

Status
Not open for further replies.

Exel

Active Member
2,074
2008
543
100
This is a search modification that can be added pretty much anywhere in your templates, I'd recommend maybe in the navbar or in the header like we have over at Elite-Source. :)

Screeny:
6159329747.png


Code:
Code:
<form id="searchfunction" style="margin: 0px; padding: 0px;" action="search.php?do=process" method="post">

<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

<input maxlength="100" name="query" style="border: 1px solid white; color: #0089AF; font-family: Arial, Helvetica, sans-serif; width: 200px; height: 15px; font-size: 11px; font-weight: bold; padding-top: 2px; padding-bottom: 2px; background: #ffffff;" value="" />

<input type="submit" value="Search" name="Search" />

</form>
Note that you can change the font color in the white by editing this HTML color in the code: #0089AF

You can also change what the button 'Search' says by editing this:
<input type="submit" value="Search" name="Search" />
to for example;
<input type="submit" value="Search" name="Elite-Search" />
 
3 comments
Doesnt work on vb4.

This one works for vb4:
<form id="searchfunction" style="margin: 0px; padding: 0px;" action="search.php?do=process" method="post">

<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />

<input maxlength="100" name="query" style="border: 1px solid white; color: #0089AF; font-family: Arial, Helvetica, sans-serif; width: 200px; height: 15px; font-size: 11px; font-weight: bold; padding-top: 2px; padding-bottom: 2px; background: #ffffff;" value="" />

<input type="submit" value="Search" name="Search" />

</form>
 
Status
Not open for further replies.
Back
Top