|
Viewing Single Post From: Add Quick Search Anywhere
|
|
Eureka
|
Dec 15 2007, 01:03 AM
|
- Posts:
- 402
- Group:
- Members
- Member
- #256
- Joined:
- Dec 1, 2007
|
- Fission
- Dec 15 2007, 12:28 AM
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 areaReplace 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. Suggestion: rather than have them put the boardurl, couldn't you just do it for them?
- Quote:
-
<form method="post" action=main_url+"search/?c=1"> <div> <input type="text" size="20" value="" name="q"/> <button type="submit">Search</button> </div> </form>
|
|
|