Jeremy D commited on 2011-10-27 16:35:52
Showing 3 changed files, with 4 additions and 1 deletions.
... | ... |
@@ -254,7 +254,7 @@ require_once($sourcedir . '/sd_source/SimpleDesk-SSI.php');]]></add> |
254 | 254 |
<add><![CDATA[ |
255 | 255 |
|
256 | 256 |
// Are we adding any SimpleDesk boards in? |
257 |
- if (!empty($modSettings['helpdesk_active']) && shd_allowed_to('access_helpdesk')) |
|
257 |
+ if (!empty($modSettings['helpdesk_active']) && empty($modSettings['shd_disable_boardint']) && shd_allowed_to('access_helpdesk')) |
|
258 | 258 |
{ |
259 | 259 |
global $sourcedir; |
260 | 260 |
require_once($sourcedir . '/sd_source/Subs-SimpleDeskBoardIndex.php'); |
... | ... |
@@ -186,6 +186,8 @@ $txt['shd_disable_tickettotopic'] = 'Disable "ticket to topic" options'; |
186 | 186 |
$txt['shd_disable_tickettotopic_note'] = 'Normally, it is possible to move tickets to topics and back again (except in Standalone mode), this option denies it for all users regardless of any permissions for it.'; |
187 | 187 |
$txt['shd_disable_relationships'] = 'Disable relationships'; |
188 | 188 |
$txt['shd_disable_relationships_note'] = 'Disable tickets from having "relationships" with each other, regardless of any permissions for it.'; |
189 |
+$txt['shd_disable_boardint'] = 'Disable BoardIndex Integration'; |
|
190 |
+$txt['shd_disable_boardint_note'] = 'Disable helpdesk from loading on the boardIndex completely.'; |
|
189 | 191 |
//@} |
190 | 192 |
|
191 | 193 |
//! @name Configuration items on the Standalone Options page |
... | ... |
@@ -385,6 +385,7 @@ function shd_modify_display_options($return_config) |
385 | 385 |
array('check', 'shd_hidemenuitem'), |
386 | 386 |
'', |
387 | 387 |
array('check', 'shd_disable_unread'), |
388 |
+ array('check' , 'shd_disable_boardint', 'subtext' => $txt['shd_disable_boardint_note']), |
|
388 | 389 |
); |
389 | 390 |
$context['settings_title'] = $txt['shd_admin_options_display']; |
390 | 391 |
$context['settings_icon'] = 'details.png'; |
391 | 392 |