From fe9a8a1074c7a8aba4a92086a95c92bb20e60af3 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 17 Mar 2011 23:49:28 +1100 Subject: [PATCH] Custom links in the board list --- inc/config.php | 5 +++-- inc/display.php | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/inc/config.php b/inc/config.php index 66c9c00f..640999ac 100644 --- a/inc/config.php +++ b/inc/config.php @@ -410,12 +410,13 @@ $config['always_noko'] = false; // Boardlinks - // You can group, order and place the boardlist at the top of every page, using the following template. + // You can group, order and place the boardlist at the top of every page, using the following template. //$config['boards'] = Array( // Array('a', 'b'), // Array('c', 'd', 'e', 'f', 'g'), // Array('h', 'i', 'j'), - // Array('k', Array('l', 'm')) + // Array('k', Array('l', 'm')), + // 'status' => 'http://status.example.org/' //); ?> \ No newline at end of file diff --git a/inc/display.php b/inc/display.php index 7f10a597..086171c4 100644 --- a/inc/display.php +++ b/inc/display.php @@ -27,7 +27,11 @@ if(is_array($board)) $body .= ' [' . doBoardListPart($board, $root) . '] '; else { - $body .= ' ' . $board . ' /'; + if(($key = array_search($board, $list)) && gettype($key) == 'string') { + $body .= ' ' . $key . ' /'; + } else { + $body .= ' ' . $board . ' /'; + } } } $body = preg_replace('/\/$/', '', $body);