From be3db525786285905c4123d489e7b11fd59eb4d6 Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Wed, 21 Aug 2024 22:09:10 +0100 Subject: [PATCH 1/3] Lets start the journey of our new template from here, lots need to be done --- ui/ui/sections/header.tpl | 117 ++++++++++++++- ui/ui/user-ui/header.tpl | 298 ++++++++++++++++++++++++++++++++++++-- 2 files changed, 403 insertions(+), 12 deletions(-) diff --git a/ui/ui/sections/header.tpl b/ui/ui/sections/header.tpl index a75b6de3..565d498d 100644 --- a/ui/ui/sections/header.tpl +++ b/ui/ui/sections/header.tpl @@ -18,7 +18,118 @@ - From 8c206ba1f8b13233f09f35bad3acd9d45370ae81 Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Wed, 21 Aug 2024 22:20:06 +0100 Subject: [PATCH 2/3] fix user footer --- ui/ui/user-ui/header.tpl | 190 +++------------------------------------ 1 file changed, 11 insertions(+), 179 deletions(-) diff --git a/ui/ui/user-ui/header.tpl b/ui/ui/user-ui/header.tpl index d27e9a4d..0e422602 100644 --- a/ui/ui/user-ui/header.tpl +++ b/ui/ui/user-ui/header.tpl @@ -17,6 +17,7 @@ From 34f904ccc4a5374ddbd9f8a62d7f2bcd62526923 Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Thu, 22 Aug 2024 02:00:23 +0100 Subject: [PATCH 3/3] Add User Search Bar --- system/controllers/search_user.php | 21 +++++++ ui/ui/sections/footer.tpl | 26 ++++++++ ui/ui/sections/header.tpl | 96 +++++++++++++++++++++++++++++- 3 files changed, 140 insertions(+), 3 deletions(-) create mode 100644 system/controllers/search_user.php diff --git a/system/controllers/search_user.php b/system/controllers/search_user.php new file mode 100644 index 00000000..b3a04062 --- /dev/null +++ b/system/controllers/search_user.php @@ -0,0 +1,21 @@ +where_like('username', "%$query%") + ->find_many(); + + if ($results) { + echo ''; + } else { + echo '

' . Lang::T('No users found.') . '

'; + } +} else { + echo '

' . Lang::T('Please enter a search term.') . '

'; +} diff --git a/ui/ui/sections/footer.tpl b/ui/ui/sections/footer.tpl index 413e9cec..01cb6414 100644 --- a/ui/ui/sections/footer.tpl +++ b/ui/ui/sections/footer.tpl @@ -15,6 +15,32 @@ + + {if isset($xfooter)} {$xfooter} {/if} diff --git a/ui/ui/sections/header.tpl b/ui/ui/sections/header.tpl index 565d498d..8589dd72 100644 --- a/ui/ui/sections/header.tpl +++ b/ui/ui/sections/header.tpl @@ -18,8 +18,10 @@ -