Browse Source

Add board search to index page

pull/40/head
discomrade 3 years ago
parent
commit
3477266f9e
  1. 3
      inc/config.php
  2. 7
      templates/index.html

3
inc/config.php

@ -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);

7
templates/index.html

@ -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">

Loading…
Cancel
Save