Buttons below the search form

Started by artvolt, July 07, 2020, 05:28:18 AM

Previous topic - Next topic

artvolt

Please explain, how can place buttons below the search form.

SMF Forum - "Art Cafe" - https://art-cafe.info/

Looking

If there isn't a mod for it then you will have to edit your theme's index.template and insert the HTML for it.

artvolt

I understand. Where exactly to make corrections in HTML "index.template", in which line???
SMF Forum - "Art Cafe" - https://art-cafe.info/

artvolt

Dear forum programmers "simplemachines.org", please explain how to make such buttons under the search form as in this support forum. Where and what changes should be made in "index.template"?

SMF Forum - "Art Cafe" - https://art-cafe.info/

shadav

it is customary to wait 24 hours before bumping a topic (replying again)

and it would depend on what theme you are using

I'm going to assume you are using smf 2.0.17 and the default curve theme

so then
find
echo '
</div>
<div class="news normaltext">
<form id="search_form" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
<input type="text" name="search" value="" class="input_text" />&nbsp;
<input type="submit" name="submit" value="', $txt['search'], '" class="button_submit" />
<input type="hidden" name="advanced" value="0" />';

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

echo '</form>';

after add
echo '
YOUR CODE GOES HERE
';

obviously changing the YOUR CODE GOES HERE with your code

artvolt

SMF Forum - "Art Cafe" - https://art-cafe.info/

Advertisement: