Welcome Guest [Log In] [Register]
Viewing Single Post From: Add Quick Search Anywhere
Fission
Member Avatar
I am really awesome
[ *  *  * ]
Preview, it is to the right and right underneath the submenu.

This adds a search box anywhere you put it.

Quote:
 

<form method="post" action="boardurl/search/?c=1">
<div>
<input type="text" size="20" value="" name="q"/>
<button type="submit">Search</button>
</div>
</form>


Replace this with the size of the search input area

Replace this with the url of your board, up to the point after the name. For instance, http://s1.zetaboards.com/Burning_Sand_Inferno/ would be valid, while http://s1.zetaboards.com/Burning_Sand_Inferno/online/ would not.

You can switch around these two lines:

Code:
 

<input type="text" size="20" value="" name="q"/>

<button type="submit">Search</button>


Depending on where you want the button and text box, relative to each other.

Yes, I know this is all part of the default ZetaBoards code, but it is quite useful.

I will get a testing board up soon, but for now it's an active board. Preview is now a test board.
Edited by Fission, Dec 15 2007, 01:17 AM.
Offline Profile Quote Post
Add Quick Search Anywhere · User Created Codes