Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SaniOKh on June 15, 2005, 05:23:53 AM

Title: Search Button Tweak
Post by: SaniOKh on June 15, 2005, 05:23:53 AM
Link to Mod (http://mods.simplemachines.org/index.php?mod=154)

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.
Title: Re: Search Button Tweak
Post by: 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.
Title: Re: Search Button Tweak
Post by: SaniOKh on June 15, 2005, 04:37:32 PM
Whoops!
So this MOD is purposeless, as I can see :D
Title: Re: Search Button Tweak
Post by: Cheese-Burger on June 16, 2005, 05:13:44 AM
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.
Title: Re: Search Button Tweak
Post by: SaniOKh on June 16, 2005, 12:36:18 PM
I prefer making such kind of this reversible :p
Title: Re: Search Button Tweak
Post by: Cheese-Burger on June 16, 2005, 12:38:57 PM
I can understand totally. It needed to be done, i think the search form looked ugly.
Title: Re: Search Button Tweak
Post by: Chan Kong-sang on August 12, 2005, 04:37:22 PM
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.