From 2c78d8cb65ab7c57489f0ccc2bb6a5b6c7fdccfd Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Thu, 31 Oct 2024 10:06:16 -0700 Subject: [PATCH] Add some classes and cleanup for search.php. --- Rocksolid_Light/common/themes/style.css | 9 ++++++ Rocksolid_Light/rocksolid/search.php | 40 +++++++++++-------------- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/Rocksolid_Light/common/themes/style.css b/Rocksolid_Light/common/themes/style.css index cfc4d1e..34a1294 100644 --- a/Rocksolid_Light/common/themes/style.css +++ b/Rocksolid_Light/common/themes/style.css @@ -1125,6 +1125,15 @@ table.np_results_table { font-size: 0.8em; } +.search_hide_posts { + margin-top: 0; + margin-bottom: 0; + text-decoration: none; + color: var(--color-text); + font-family: Arial, Helvetica, sans-serif; + font-size: 0.7em; +} + /* search sort toggle */ .np_search_sort_toggle { margin-top: 0; diff --git a/Rocksolid_Light/rocksolid/search.php b/Rocksolid_Light/rocksolid/search.php index eefa532..3dad661 100644 --- a/Rocksolid_Light/rocksolid/search.php +++ b/Rocksolid_Light/rocksolid/search.php @@ -34,20 +34,18 @@ if ((! isset($_POST['key']) || ! password_verify($CONFIG['thissitekey'], $_POST[ // Block poster if (isset($_COOKIE['mail_name'])) { if (isset($_REQUEST['data'])) { - echo '
'; - echo ''; - echo ''; - echo ''; - echo ''; + echo '
'; echo ''; - echo ''; + echo '
Hide posts by ' . $_GET['terms'] . '
'; - echo '
'; + echo ''; + echo ''; + echo ''; + echo ''; echo ''; if (isset($_GET['data'])) { echo ''; } echo ''; - echo ''; // Password confirmation echo ''; echo '
Hide posts by ' . $_GET['terms'] . '
Enter your password: '; @@ -161,16 +159,16 @@ if (isset($search_group)) { echo '

'; echo '' . basename(getcwd()) . ' / '; echo 'search results for: ' . $_POST['terms'] . '

'; - echo ''; + echo ''; + echo '
'; // Newsgroups button (hidden) echo ''; echo '
'; - echo ''; echo ''; - echo ''; echo '
'; + echo ''; } -echo ''; +echo '
'; echo '
'; echo '
'; @@ -462,17 +460,14 @@ function display_search_tools($home = true) echo '' . $search_group . ' / '; } echo 'search'; - echo ''; + echo ''; + echo '
'; if (isset($search_group)) { $searching = $search_group; } else { $searching = $config_name; } - echo ''; - echo ''; - echo ''; - echo ''; + echo ''; echo ''; echo ''; if (! isset($_REQUEST['data'])) { @@ -527,9 +522,7 @@ function display_search_tools($home = true) echo 'Message-ID'; } - echo ''; - echo ''; - echo ''; + echo ''; if (isset($search_group)) { echo ''; } @@ -537,9 +530,10 @@ function display_search_tools($home = true) if (isset($_REQUEST['data'])) { echo ''; } - echo ''; + echo ''; + echo ''; echo ''; - echo '
'; - echo '
Searching ' . $searching . 'Searching ' . $searching . '
'; + echo '
'; } function highlightStr($haystack, $needle)