PDA

View Full Version : Need help changing search ALL to search TITLES


z0diac
09-03-2009, 12:00 AM
I have a custom search box under my top banner image:

http://forum.icedogfans.com/index.php

The navbar text for this entire stats bar is below. Can anyone tell me what needs to be changed, so that when someone does a search, it searches text in TITLES ONLY ? Right now it's searching entire post.

Navbar code for the search/stats bar:

<!-- stats bar -->
<form action="search.php?do=process" method="post">
<div class="tborder" style="padding:$stylevar[cellspacing]px; border-top-width:0px">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr align="center">
<td style="background: #000000;">
<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]" />
<span style="color: white">Search: <input type="text" class="bginput" name="query" size="10" tabindex="1001" /></span>&nbsp;
<span style="color: white">Photos Online: </span> <span style="color: red">$navstats[totalimages]</span> <span style="color:

white">($navstats[filesonline] local, $navstats[externalimages] linked)</span>&nbsp;
<span style="color: white">DL's: </span> <span style="color: red">$navstats[filesdownloaded]</span>
<span style="color: white">Posts: </span> <span style="color: red">$navstats[totalposts]</span>
<span style="color: white">Thread Views: </span> <span style="color: red">$navstats[threadviews]</span>
<span style="color: white">On Now: </span> <span style="color: red">$navstats[totalonline]</span></td>
</tr>
</table>
</div>
</form>
<!-- / stats bar -->

--------------- Added 1251940000 at 1251940000 ---------------

EDIT: I think I found out how!

<input type="hidden" name="titleonly" value="1" />

needed to be added.

I'm so proud of myself at the moment. I know no php. 'just found that by a google search then searching the code on that page. 'Tried it and it seems to be working :) :)