4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: mightyaf on April 14, 2005, 09:51:27 PM
-
I would like my visitors to use the search box right on my front page outside the 4images gallery. I am using PHP I tried to use the same code found in search_form.html inside the default template folder but that does not work. I am looking for the simple search code, not the Advanced search. I searched the forums but can't find the code. All help is appreciated. :?:
-
so what happend if u create same search form as in default template and use action="4images/search.php" in it?
-
Ater trying it out step by step, I got it to work. Here is the code, simple but to some not easy.
<form method="post" action="4images/search.php">
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1">
<table width="100%" border="0" cellpadding="4" cellspacing="0">
<tr>
<td colspan="2" valign="top" class="head1"> </td>
</tr>
<tr>
<td valign="top" class="row1">
</td>
<td class="row1" valign="top">
<input type="text" name="search_keywords" size="40" class="input" />
<br />
<input type="checkbox" name="search_new_images" value="1" />
Search only within the past 14 days </td>
</tr>
<tr>
<td class="row1"> </td>
<td class="row1">
<input type="submit" value="Search" class="button" />
</td>
</tr>
</table> </td>
</tr>
</table>
</form>
Thanks V@no for the help.
-
but to some not easy.
I had fate in you ;) :)