News:

Wondering if this will always be free?  See why free is better.

Main Menu

Search Button Tweak

Started by SaniOKh, June 15, 2005, 05:23:53 AM

Previous topic - Next topic

SaniOKh

Link to Mod

My first lousy MOD :)

Many users like me think tht the SEARCH form on the top of the page is useless... honestly, how often do you make researches?

What does this MOD do? It removes (puts in comment) the SEARCH form and converts the SEARCH button in SEARCH+ button. That's all it does. But it's a bit more comfortable like this.

EDIT: I tested it only with 1.04, but I don't know if it works with other versions of SMF.

Ben_S

Theres an option in Admin > Edit Features and Options to disable simple search which should be the prefaired method of making the search button goto advanced.
Liverpool FC Forum with 14 million+ posts.

SaniOKh

Whoops!
So this MOD is purposeless, as I can see :D

Cheese-Burger

Just chop out this bit of code
<form action="', $scripturl, '?action=search2" method="post" style="margin: 0; margin-top: 7px;">
<b>', $txt[182], ': </b><input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="', $txt[182], '" style="width: 8ex;" />&nbsp;
<a href="', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a>
<input type="hidden" name="advanced" value="0" />';

// If we're on a certain board, limit it to this board ;).
if (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

echo '
</form>


Job done  :D I must admit, i never much cared for the form and it`s button.
Hate code. Love burgers

SaniOKh

I prefer making such kind of this reversible :p

Cheese-Burger

I can understand totally. It needed to be done, i think the search form looked ugly.
Hate code. Love burgers

Chan Kong-sang

Quote from: Ben_S on June 15, 2005, 03:35:15 PM
Theres an option in Admin > Edit Features and Options to disable simple search which should be the prefaired method of making the search button goto advanced.
MY board is freshly installed but this is not working, for me. Therefore this:
Quote from: SaniOKh on June 15, 2005, 04:37:32 PM
Whoops!
So this MOD is purposeless, as I can see :D
is not useless! I'll try it at 1.0.5.

Advertisement: