Reimplement overboard

This commit is contained in:
Zankaria 2024-01-27 12:48:22 +01:00
parent 2efd67ef85
commit ea99ddc6f6
2 changed files with 119 additions and 8 deletions

View file

@ -763,14 +763,19 @@ function mod_view_catalog($boardName) {
$settings['title'] = 'Catalog';
$settings['use_tooltipster'] = true;
$catalog = new Catalog($settings);
echo $catalog->build($boardName, true);
if (openBoard($boardName)) {
echo $catalog->build($boardName, true);
} else {
error("The overboard(s) mod catalog hasn't been implemented yet");
}
}
function mod_view_board($boardName, $page_no = 1) {
global $config, $mod;
if (!openBoard($boardName)){
if (in_array($boardName,array_keys($config['overboards']))){
if (in_array($boardName, array_keys($config['overboards']))){
$type = $config['overboards'][$boardName]['type'];
require_once("templates/themes/$type/theme.php");
global $mod;