mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 03:09:22 +02:00
Forum search optimised
Fixed date bug in characterprofile.php
This commit is contained in:
parent
19b8b0af5d
commit
a07161a1dc
@ -834,7 +834,7 @@ function user_character_list($account_id) {
|
|||||||
|
|
||||||
// Make lastlogin human read-able.
|
// Make lastlogin human read-able.
|
||||||
if ($characters[$i]['lastlogin'] != 0) {
|
if ($characters[$i]['lastlogin'] != 0) {
|
||||||
$characters[$i]['lastlogin'] = date(config('date'),$characters[$i]['lastlogin']);
|
$characters[$i]['lastlogin'] = getClock($characters[$i]['lastlogin'], true, false);
|
||||||
} else {
|
} else {
|
||||||
$characters[$i]['lastlogin'] = 'Never.';
|
$characters[$i]['lastlogin'] = 'Never.';
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,21 @@
|
|||||||
// Search CONFIG
|
// Search CONFIG
|
||||||
$searchResults = 30; // How many max search results
|
$searchResults = 30; // How many max search results
|
||||||
|
|
||||||
|
/* Below HTML CODE = Plugin you can put anywhere in Znote AAC where you want search.
|
||||||
|
<h1>Search forum</h1>
|
||||||
|
<form action="forum_search.php" method="get">
|
||||||
|
<select name="type">
|
||||||
|
<option value="1">Title</option>
|
||||||
|
<option value="2">Post</option>
|
||||||
|
<option value="3">Author (threads)</option>
|
||||||
|
<option value="4">Author (posts)</option>
|
||||||
|
<option value="5">Latest Posts</option>
|
||||||
|
<option value="6">Latest Threads</option>
|
||||||
|
</select>
|
||||||
|
<input type="text" name="text" placeholder="Search string">
|
||||||
|
<input type="submit" value="Search">
|
||||||
|
</form>
|
||||||
|
*/
|
||||||
function stripBBCode($text_to_search) {
|
function stripBBCode($text_to_search) {
|
||||||
$pattern = '|[[\/\!]*?[^\[\]]*?]|si';
|
$pattern = '|[[\/\!]*?[^\[\]]*?]|si';
|
||||||
$replace = '';
|
$replace = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user