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