hi how can I put the search bar on the homepage above all threads?
On the *homepage* where there are boards, or on the list of topics, above the topics? Or both?
Should the search box have all the same filters it currently does?
I would like to put the search bar just above the top thread list
ex: (https://i.postimg.cc/m2f8s1yc/Immagine.png)
and secondly I would like to improve the search method but this could be done after I moved the block
You didn't answer my question but this can't be done without you answering my questions.
only there are boards homepage
And what theme are you using?
this:
https://custom.simplemachines.org/themes/index.php?lemma=2631
So there's nothing to remove from the index.template.php of the theme, and you'll need to modify the theme's BoardIndex.template.php (the Aqua one, not the Curve one)
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
// Show some statistics if stat info is off.
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
echo '
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 10px auto 20px auto; text-align: center;">
<input type="text" name="search" class="input_text">
<input type="submit" name="submit" value="Go" class="button_submit">
</form>';
// Show some statistics if stat info is off.
it works thank you very much ;) ;)... if I wanted to add a writing next to the box to the left how can I do?
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
echo '
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 10px auto 20px auto; text-align: center;">
My text goes here: <input type="text" name="search" class="input_text">
<input type="submit" name="submit" value="Go" class="button_submit">
</form>';
// Show some statistics if stat info is off.
thanks a lot man ;) work
if I want to lengthen the search bar?
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
echo '
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 10px auto 20px auto; text-align: center;">
<input type="text" name="search" class="input_text" size="50">
<input type="submit" name="submit" value="Go" class="button_submit">
</form>';
// Show some statistics if stat info is off.
thanks, last thing if you want to highlight the edge of the box look in red is it possible?
<input type="text" name="search" value="" class="input_text" size="50" style="border: 2px red solid"/>
thanks a lot ;)