diff --git a/css/global.css b/css/global.css index d16277b..a2e063d 100644 --- a/css/global.css +++ b/css/global.css @@ -115,6 +115,17 @@ hr { clear: both; } +.catalogpost { + display: inline-block; + vertical-align: top; + overflow: hidden; + white-space: nowrap; + text-align: center; + text-overflow: ellipsis; + min-width: 100px; + padding: 0px 3px 3px; +} + .login { text-align: center; } diff --git a/inc/defines.php b/inc/defines.php index b4054c4..8a4bc74 100644 --- a/inc/defines.php +++ b/inc/defines.php @@ -43,6 +43,9 @@ if (!defined('TINYIB_WORDBREAK')) { if (!defined('TINYIB_TIMEZONE')) { define('TINYIB_TIMEZONE', ''); } +if (!defined('TINYIB_CATALOG')) { + define('TINYIB_CATALOG', true); +} if (!defined('TINYIB_DBMIGRATE')) { define('TINYIB_DBMIGRATE', false); } diff --git a/inc/functions.php b/inc/functions.php index bec65de..d948560 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -240,8 +240,8 @@ function writePage($filename, $contents) { } function fixLinksInRes($html) { - $search = array(' href="css/', ' src="js/', ' href="src/', ' href="thumb/', ' href="res/', ' href="imgboard.php', ' href="favicon.ico', 'src="thumb/', 'src="inc/', 'src="sticky.png', 'src="lock.png', ' action="imgboard.php'); - $replace = array(' href="../css/', ' src="../js/', ' href="../src/', ' href="../thumb/', ' href="../res/', ' href="../imgboard.php', ' href="../favicon.ico', 'src="../thumb/', 'src="../inc/', 'src="../sticky.png', 'src="../lock.png', ' action="../imgboard.php'); + $search = array(' href="css/', ' src="js/', ' href="src/', ' href="thumb/', ' href="res/', ' href="imgboard.php', ' href="catalog.html', ' href="favicon.ico', 'src="thumb/', 'src="inc/', 'src="sticky.png', 'src="lock.png', ' action="imgboard.php', ' action="catalog.html'); + $replace = array(' href="../css/', ' src="../js/', ' href="../src/', ' href="../thumb/', ' href="../res/', ' href="../imgboard.php', ' href="../catalog.html', ' href="../favicon.ico', 'src="../thumb/', 'src="../inc/', 'src="../sticky.png', 'src="../lock.png', ' action="../imgboard.php', ' action="../catalog.html'); return str_replace($search, $replace, $html); } diff --git a/inc/html.php b/inc/html.php index b37bd80..1a9cdc8 100644 --- a/inc/html.php +++ b/inc/html.php @@ -503,7 +503,7 @@ function buildPage($htmlposts, $parent, $pages = 0, $thispage = 0) { $pagelinks .= ($pages <= $thispage) ? "