Customizing SMF > Modifications and Packages
Search Button Tweak
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.
SaniOKh:
Whoops!
So this MOD is purposeless, as I can see :D
Cheese-Burger:
Just chop out this bit of code
--- 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;" />
<input type="submit" name="submit" value="', $txt[182], '" style="width: 8ex;" />
<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>
--- End code ---
Job done :D I must admit, i never much cared for the form and it`s button.
SaniOKh:
I prefer making such kind of this reversible :p
Navigation
[0] Message Index
[#] Next page
Go to full version