From a07161a1dc537d87cdf2bd79d6e44bbbffdb19fb Mon Sep 17 00:00:00 2001 From: Stefan Brannfjell Date: Sun, 8 Sep 2013 20:51:02 +0200 Subject: [PATCH] Forum search optimised Fixed date bug in characterprofile.php --- engine/function/users.php | 2 +- forum_search.php | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/engine/function/users.php b/engine/function/users.php index 20d4501..bddeab5 100644 --- a/engine/function/users.php +++ b/engine/function/users.php @@ -834,7 +834,7 @@ function user_character_list($account_id) { // Make lastlogin human read-able. if ($characters[$i]['lastlogin'] != 0) { - $characters[$i]['lastlogin'] = date(config('date'),$characters[$i]['lastlogin']); + $characters[$i]['lastlogin'] = getClock($characters[$i]['lastlogin'], true, false); } else { $characters[$i]['lastlogin'] = 'Never.'; } diff --git a/forum_search.php b/forum_search.php index 220462e..943e8fb 100644 --- a/forum_search.php +++ b/forum_search.php @@ -3,6 +3,21 @@ // Search CONFIG $searchResults = 30; // How many max search results +/* Below HTML CODE = Plugin you can put anywhere in Znote AAC where you want search. +

Search forum

+
+ + + +
+*/ function stripBBCode($text_to_search) { $pattern = '|[[\/\!]*?[^\[\]]*?]|si'; $replace = '';