From ed8fe6c27a39222604e65acdb09de27fd85fb0a2 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Mon, 22 Jul 2013 17:51:13 -0400 Subject: Option to check public ban message by default --- inc/config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/config.php b/inc/config.php index c2a68e6c..721cff41 100644 --- a/inc/config.php +++ b/inc/config.php @@ -860,7 +860,7 @@ // Number of news entries to display per page $config['mod']['news_page'] = 40; - // Number of results to dispaly per page + // Number of results to display per page $config['mod']['search_page'] = 200; // How many entries to show per page in the moderator noticeboard @@ -868,6 +868,8 @@ // Number of entries to summarize and display on the dashboard $config['mod']['noticeboard_dashboard'] = 5; + // Check public ban message by default + $config['mod']['check_ban_message'] = false; // Default public ban message $config['mod']['default_ban_message'] = 'USER WAS BANNED FOR THIS POST'; // What to append to the post for public bans ("%s" is the message) -- cgit v1.3 From 6ba8f3f7deb4ef68fe2a89ae24dabcd1d32ad3f7 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Mon, 22 Jul 2013 18:30:45 -0400 Subject: Add custom links to dashboard --- inc/config.php | 12 ++++++++++++ templates/mod/dashboard.html | 30 +++++++++++++++++++++--------- 2 files changed, 33 insertions(+), 9 deletions(-) (limited to 'inc') diff --git a/inc/config.php b/inc/config.php index 721cff41..987777ef 100644 --- a/inc/config.php +++ b/inc/config.php @@ -1089,6 +1089,18 @@ // Connection timeout, in seconds $config['purge_timeout'] = 3; + // Additional mod.php?/ pages (for developers). Look in inc/mod/pages.php for help. + //$config['mod']['custom_pages']['/something/(\d+)'] = function($id) { + // global $config; + // if (!hasPermission($config['mod']['something'])) + // error($config['error']['noaccess']); + // // ... + //}; + + // Add links to dashboard (will all be in "Other" category) + $config['mod']['dashboard_links'] = array(); + // $config['mod']['dashboard_links']['Something'] = '?/something'; + // Remote servers // http://tinyboard.org/wiki/index.php?title=Multiple_Servers //$config['remote']['static'] = array( diff --git a/templates/mod/dashboard.html b/templates/mod/dashboard.html index 619663f5..5f6585fc 100644 --- a/templates/mod/dashboard.html +++ b/templates/mod/dashboard.html @@ -102,17 +102,29 @@ {% if mod|hasPermission(config.mod.search) %} -
- {% trans 'Search' %} - -
    -
  • - {% include 'mod/search_form.html' %} -
  • -
-
+
+ {% trans 'Search' %} + +
    +
  • + {% include 'mod/search_form.html' %} +
  • +
+
{% endif %} +{% if config.mod.dashboard_links|count %} +
+ {% trans 'Other' %} + +
    + {% for label,link in config.mod.dashboard_links %} +
  • {{ label }}
  • + {% endfor %} +
+
+{% endif %} + {% if config.debug %}
{% trans 'Debug' %} -- cgit v1.3