diff --git a/inc/defines.php b/inc/defines.php
index 7138151..882360f 100644
--- a/inc/defines.php
+++ b/inc/defines.php
@@ -13,6 +13,9 @@ define('TINYIB_WORDBREAK_IDENTIFIER', '@!@TINYIB_WORDBREAK@!@');
if (!defined('TINYIB_LOCALE')) {
define('TINYIB_LOCALE', '');
}
+if (!defined('TINYIB_BOARDTITLE')) {
+ define('TINYIB_BOARDTITLE', '');
+}
if (!defined('TINYIB_MANAGEKEY')) {
define('TINYIB_MANAGEKEY', '');
}
diff --git a/inc/html.php b/inc/html.php
index 6bb0f16..b681886 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -4,6 +4,14 @@ if (!defined('TINYIB_BOARD')) {
}
function pageHeader() {
+ if (TINYIB_BOARDTITLE != '') {
+ $title = TINYIB_BOARDTITLE;
+ } else if (TINYIB_BOARDDESC != '') {
+ $title = TINYIB_BOARDDESC;
+ } else {
+ $title = 'TinyIB';
+ }
+
$js_captcha = '';
if (TINYIB_CAPTCHA === 'hcaptcha' || TINYIB_MANAGECAPTCHA === 'hcaptcha') {
$js_captcha .= '';
@@ -12,7 +20,7 @@ function pageHeader() {
$js_captcha .= '';
}
- $return = <<
@@ -23,10 +31,7 @@ function pageHeader() {
-
-EOF;
- $return .= TINYIB_BOARDDESC . <<
+ $title
@@ -36,7 +41,6 @@ EOF;
$js_captcha
EOF;
- return $return;
}
function pageFooter() {
diff --git a/settings.default.php b/settings.default.php
index cd55b9d..1eb846d 100644
--- a/settings.default.php
+++ b/settings.default.php
@@ -28,7 +28,8 @@ define('TINYIB_MODPASS', ''); // Moderators only have access to delete (
// Board description and behavior
// Warning: Enabling reCAPTCHA will cause all visitors to be tracked by Google. See https://nearcyan.com/you-probably-dont-need-recaptcha/
define('TINYIB_BOARD', 'b'); // Unique identifier for this board using only letters and numbers
-define('TINYIB_BOARDDESC', 'TinyIB'); // Displayed at the top of every page
+define('TINYIB_BOARDDESC', 'TinyIB'); // Displayed below logo in page headers
+define('TINYIB_BOARDTITLE', ''); // Title of board pages. When blank, defaults to TINYIB_BOARDDESC (when set) or "TinyIB"
define('TINYIB_ALWAYSNOKO', false); // Redirect to thread after posting
define('TINYIB_CAPTCHA', ''); // Reduce spam by requiring users to pass a CAPTCHA when posting: simple / hcaptcha / recaptcha ['' to disable]
define('TINYIB_MANAGECAPTCHA', ''); // Improve security by requiring users to pass a CAPTCHA when logging in to the management panel: simple / hcaptcha / recaptcha ['' to disable]