diff --git a/config.php b/config.php index 0aed76a2..8572beff 100644 --- a/config.php +++ b/config.php @@ -113,12 +113,6 @@ $config = array( //'Some Quest Two' => 456, ), // quests list (displayed in character view), name => storage - // news page - 'news_limit' => 5, // limit of news on the latest news page - 'news_ticker_limit' => 5, // limit of news in tickers (mini news) (0 to disable) - 'news_date_format' => 'j.n.Y', // check php manual date() function for more info about this - 'news_author' => true, // show author of the news - // gifts/shop system 'gifts_system' => false, diff --git a/system/compat/config.php b/system/compat/config.php index fe7a2be9..ed24aaa1 100644 --- a/system/compat/config.php +++ b/system/compat/config.php @@ -23,6 +23,10 @@ $deprecatedConfig = [ 'outfit_images_wrong_looktypes', 'item_images_url', 'account_country', + 'news_author', + 'news_limit', + 'news_ticker_limit', + 'news_date_format', 'highscores_groups_hidden', 'highscores_ids_hidden', 'online_record', diff --git a/system/settings.php b/system/settings.php index fdacb017..f02243b0 100644 --- a/system/settings.php +++ b/system/settings.php @@ -564,6 +564,36 @@ Sent by MyAAC,
'type' => 'category', 'title' => 'Pages', ], + [ + 'type' => 'section', + 'title' => 'News Page', + ], + 'news_author' => [ + 'name' => 'News Author', + 'type' => 'boolean', + 'desc' => 'Show author of the news', + 'default' => true, + ], + 'news_limit' => [ + 'name' => 'News Limit', + 'type' => 'number', + 'min' => 0, + 'desc' => 'Limit of news on the latest news page (0 to disable)', + 'default' => 5, + ], + 'news_ticker_limit' => [ + 'name' => 'News Ticker Limit', + 'type' => 'number', + 'min' => 0, + 'desc' => 'Limit of news in tickers (mini news) (0 to disable)', + 'default' => 5, + ], + 'news_date_format' => [ + 'name' => 'News Date Format', + 'type' => 'text', + 'desc' => 'Check php manual date() function for more info about this', + 'default' => 'j.n.Y', + ], [ 'type' => 'section', 'title' => 'Forum'