View Full Version : Search on Forumhome
Sc0rp
11-02-2002, 07:07 PM
as this board and a lot of boards have.. that sweet search option on forumhome.. now I already got it this far:
<td align="right" width="50%" bgcolor="#13486D"><normalfont><b>Search $bbtitle !
<input type="text" class="bginput" name="query" size="35">
<input type="hidden" name="action" value="simplesearch">
<input type="submit" class="bginput" name="Submit" value="Search" accesskey="s">
</b></normalfont></td>
but when I click Search nothing happens.. so can someone gimme a hand with this please?:)
thanx:)
Erwin
11-02-2002, 07:31 PM
You're missing the <form> tags! :) You are using form commands but not telling the code where to go.
Use this code:
<form action="search.php" method="post">
<input type="hidden" name="searchuser" value="">
<input type="text" name="query" class="search">
<input type="hidden" name="forumchoice" value="-1">
<input type="hidden" name="searchdate" value="-1">
<input type="hidden" name="sortby" value="lastpost">
<input type="hidden" name="sortorder" value="descending">
<input type="hidden" name="beforeafter" value="after">
<input type="hidden" name="action" value="simplesearch">
<input type="hidden" name="titleonly" value="">
<input type="hidden" name="showposts" value="">
<input type="hidden" name="exactname" value="yes">
<input type="submit" class="bginput" name="Submit" value="Search" accesskey="s">
</form>
Sc0rp
11-02-2002, 09:08 PM
yeah worked fine :D thanks mate.. but for some reason there's a < br > at the end of it.. at least something that has the same effect as a br :(
Sc0rp
11-02-2002, 09:15 PM
well as I said for some reason it adds some kind of space at the end.. and now it looks fecked..
here's the code:
<!-- text -->
<table cellpadding="4" cellspacing="0" border="1" bordercolor="{tablebordercolor}" width="{contenttablewidth}" {tableinvisibleextra} align="center" bgcolor="{tableheadbgcolor}"><td><normalfont><font color="#FFFFFF"><b>Welcome to $bbtitle !!</b></font></normalfont></td>
<tr valign="top">
<td width="50%" bgcolor="{firstaltcolor}"><a href="javascript:window.location=window.location" oncontextmenu="return false;"><img src="{imagesfolder}/vb_bullet.gif" border="0" align="middle" alt="$bbtitle : Powered by vBulletin version $templateversion"></a>
<normalfont><b>$bbtitle</b></normalfont></td>
<td align="right" width="50%" bgcolor="{secondaltcolor}"><smallfont>$welcometext<br><b>$newposts</b></smallfont></font></td>
</tr>
$unregwelcomemessage
<tr valign="bottom">
<td width="50%" bgcolor="{secondaltcolor}"><smallfont>
Members: $numbermembers, Threads: $totalthreads, Posts: $totalposts<br>
Welcome to our newest member, <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid">$newusername</a>
</smallfont></td>
<td width="50%" bgcolor="{firstaltcolor}"><smallfont><form action="search.php" method="post">
<input type="hidden" name="searchuser" value="">
<input type="text" name="query" class="search">
<input type="hidden" name="forumchoice" value="-1">
<input type="hidden" name="searchdate" value="-1">
<input type="hidden" name="sortby" value="lastpost">
<input type="hidden" name="sortorder" value="descending">
<input type="hidden" name="beforeafter" value="after">
<input type="hidden" name="action" value="simplesearch">
<input type="hidden" name="titleonly" value="">
<input type="hidden" name="showposts" value="">
<input type="hidden" name="exactname" value="yes">
<input type="submit" class="bginput" name="Submit" value="Search" accesskey="s">
</form></smallfont>
</td></tr>
</table>
<table cellpadding="4" cellspacing="0" border="1" bordercolor="{tablebordercolor}" width="{contenttablewidth}" {tableinvisibleextra} align="center" bgcolor="white"><tr>
<td>
<!-- /text --><br>
$header
<br></td></tr></table>
<!-- /icons -->
$footer
</body>
</html></body>
</html>
and this is the pic for when you dont understand..
please help :(
Erwin
11-03-2002, 04:48 AM
In your code above, find:
<td width="50%" bgcolor="#F1F1F1"><smallfont><form action="search.php" method="post">
Change it to:
<form action="search.php" method="post"><td width="50%" bgcolor="#F1F1F1"><smallfont>
Then find:
</form></smallfont>
</td>
Change it to:
</smallfont>
</td></form>
This will get rid of the extra line. It happens with the <form> tags. I suspect you are not familiar with HTML. :)
Sc0rp
11-03-2002, 11:57 AM
like a glooooove!:D thanks a lot mate.. worked great :)
Erwin
11-03-2002, 06:16 PM
No problems! Glad to help. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.