PDA

View Full Version : I Want help with Search Function


Cobra-J82
12-30-2010, 12:35 AM
I have this Search Box on my Forumhome
Its a customised one

So basically it only searches for User names


How can I change it to search for all forum like a normal quick search

thanks

This is the code:
<!-- ##### MEMBER SEARCH & RIGHT MENU ##### -->
<div align="left" style="padding-top:0px;padding-bottom:0px;padding-right:300px;">

<if condition="$show['popups'] AND !$show['usergroup']">
<form class="tmenu" 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" />
<input type="text" class="bginput inlineimg" name="ausername" size="50" value="$ltr" title="$vbphrase[username]" /><input type="image" class="inlineimg" src="http://www.wassoufbook.com/fanclub/images/styles/new_facebook/images/buttons/search_button.gif" value="Submit" alt="Submit"/>
</form>
</if>
<!-- ##### /MEMBER SEARCH & RIGHT MENU ##### -->

metalguy639
12-31-2010, 05:27 PM
Have not tried it but possibly this will work as the code you need. you may need to edit/tweak it a bit for your site.

<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<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="$vbphrase[go]" tabindex="1004" /></div>

like I said I did not test it, but its the standard code for the search box so it should pull from all threads/forums/posts etc.

Cobra-J82
01-04-2011, 09:50 PM
Thanks for the help
I did some tweeks to it to look exactly like the design I wanted
Works great :)

metalguy639
01-04-2011, 10:15 PM
No problem, glad to have helped.