PDA

View Full Version : 'Advanced' button for search



Champion of the Force
Oct 18th, 2001, 03:54:12 AM
... to replace the 'Click here for advanced search' text link:

http://www.knarma.f2s.com/Images/advanced.gif

I was thinking it could go right next to the 'Go' button, like most search engines display it.

Let me know what you think. :)

Next up - a new 'Post Reply' button for locked threads (to replace the single padlock).

TheHolo.Net
Oct 18th, 2001, 05:19:31 AM
I like the button, but am not certian I will be able to place it to the right of the go button in the simple search. HTML form behavior is not something I have total mastery of.

Q
Oct 18th, 2001, 08:54:24 AM
This is a very minor quibble, but just something that was bothering me: On the forum summary page, the search form and the text above it isn't really centered: It's off to the right. Any ideas why not? :) It seems to be fine once you enter an actual forum.

TheHolo.Net
Oct 18th, 2001, 08:58:00 AM
That is because its in a table(the center cell) between the board name and the welcome back text. This was done to help keep its placement from making the forum display page even longer in physical size than it already is.

Q
Oct 18th, 2001, 09:05:38 AM
Ahh... ok. Figured it was something like that.

BTW - I lined up the Advanced button next to the Go one, but the difference in dimensions makes it look a bit awkward.

<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr><td colspan="2" align="center" valign="bottom"><form action="search.php" method="post"><input type="hidden" name="s" value=""><input type="hidden" name="forumchoice" value="- 1" /><input type="hidden" name="searchin" value="subject" /><input type="hidden" name="searchdate" value="-1" /><input type="hidden" name="action" value="simplesearch" /><input type="hidden" name="booleanand" value="yes" /><input class="search" onFocus="this.value='';" type="text" name="query" value="Simple search for..." size="20" maxlength="150"/><input type="hidden" name="action" value="simplesearch"><input type="image" src="http://www.swforums.net/forum/images/go.gif" name="Submit" border="0" align="absbottom" alt="Single terms are most effective here. For more complex searches follow the search link above."> <a href=http://www.swforums.net/forum/search.php?s=>http://www.knarma.f2s.com/Images/advanced.gif</a></form></td></tr></table>

EDIT: tries a little table cell alignment (valign) to possibly make it look a bit better.

TheHolo.Net
Oct 18th, 2001, 09:10:46 AM
Inside the FORM element, duh. :x

Thanks. :)

Champion of the Force
Oct 18th, 2001, 07:31:56 PM
I tested the alignment of the button on my own computer before uploading - you've got to align it on the bottom like the 'Go' button (align=absBottom).

Apart from that, it should fit in ok - I had it measured against the 'Go' button whilst I was creating it.

Regarding the positioning of the Search field - could we perhaps have it aligned off to the far right like the Login fields? I've seen some other vB boards do it like that (eg. DVDTalk.com).

Champion of the Force
Oct 19th, 2001, 03:29:40 AM
:: looks up ::

Sweet. :)

Is it possible though to put some gap between the search field and the 'Go' button? At the moment the Go buton is right up against the search field, with the Advanced button a little of to the side. I've taken the code and added in an & n b s p so it looks like this:

<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr><td colspan="2" align="center"><form action="search.php" method="post"><input type="hidden" name="s" value=""><input type="hidden" name="forumchoice" value="- 1" /><input type="hidden" name="searchin" value="subject" /><input type="hidden" name="searchdate" value="-1" /><input type="hidden" name="action" value="simplesearch" /><input type="hidden" name="booleanand" value="yes" /><input class="search" onFocus="this.value='';" type="text" name="query" value="Simple search for..." size="20" maxlength="150"/><input type="hidden" name="action" value="simplesearch">&nbsp<input type="image" src="http://www.swforums.net/forum/images/go.gif" name="Submit" border="0" align="absbottom" alt="Single terms are most effective here. For more complex searches follow the Advanced link to the right."> <a href=http://www.swforums.net/forum/search.php?s=>http://thesithempire.clanpages.com/SWFans/advanced.gif</a></form></td></tr></table>

Just a minor detail. :)

On another note, I've noticed Ogre has been rearranging all the other buttons too. I think however that the original placement of them was the best - at the moment they look a bit squished up the top of the forum. Then again, this may be due to the placement of the search field, so I don't really know. :)

TheHolo.Net
Oct 19th, 2001, 05:25:17 AM
Taken care of. See Update thread.