Add board search to index page

This commit is contained in:
discomrade 2021-09-28 09:36:14 +00:00
parent 191c7a5c66
commit c35c6a5dbe
2 changed files with 10 additions and 0 deletions

View File

@ -1727,6 +1727,9 @@
// Enable the search form
$config['search']['enable'] = false;
// Enable search in the board index.
$config['board_search'] = false;
// Maximal number of queries per IP address per minutes
$config['search']['queries_per_minutes'] = Array(15, 2);

View File

@ -68,6 +68,13 @@
{% if config.home_link %}
| <a href="{{ config.root }}">Home</a>
{% endif %}
{% if board.uri %}
<form style="display:inline" action="/search.php">
| <input type="text" name="search" placeholder=" /{{ board.uri }}/ search">
<input type="hidden" name="board" value="{{ board.uri }}">
<input type="submit" value="Search">
</form>
{% endif %}
<hr />
<form name="postcontrols" action="{{ config.post_url }}" method="post">