PDA

View Full Version : Combining the forum, blogs, groups, and memberlist searchform into one


Taragon
01-10-2010, 10:21 AM
Currently I'm trying to combine these four vB3.8.x searchforms into one
<!-- begin forum search form -->
<form 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="exactname" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="forum" tabindex="1004" /></div>
</form>
<!-- end forum search form -->
<!-- begin blog search form -->
<form action="blog_search.php?$session[sessionurl]do=dosearch" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="dosearch" />
<input type="hidden" name="quicksearch" value="1" />
<div><input type="text" class="bginput" name="text" size="25" tabindex="2003" /><input type="submit" class="button" value="blog" tabindex="2004" /></div>
</form>
<!-- end blog search form -->
<!-- begin group search form -->
<form action="group.php?$session[sessionurl]do=grouplist" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="dofilter" value="1" />
<div><input type="text" class="bginput" name="filtertext" size="25" value="$filters[text]" /><input type="submit" class="button" value="group" /></div>
</form>
<!-- end group search form -->
<!-- begin memberlist search form -->
<form action="memberlist.php?do=getall" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="getall" />
<div><input type="text" class="bginput" name="ausername" size="25" value="$ltr" /><input type="submit" class="button" value="member" /></div>
</form>
<!-- end memberlist search form -->
As is they all work (on forumhome), but I'd like to use them as seen here at vbulletin.org, one input field, one dropdown menu, and one button.

Does someone perhaps know how to accomplish this best?