Skip to content

Commit

Permalink
Merge pull request #3800 from Spuds/QT
Browse files Browse the repository at this point in the history
Add Quick Topic feature
  • Loading branch information
Spuds committed May 18, 2024
2 parents 91c8ac5 + da9ee2e commit 8f3e464
Show file tree
Hide file tree
Showing 20 changed files with 1,114 additions and 468 deletions.
2 changes: 1 addition & 1 deletion sources/ElkArte/AdminController/ManageDraftsModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function addCoreFeature(&$core_features)
'setting_callback' => static function ($value) {
require_once(SUBSDIR . '/ScheduledTasks.subs.php');
toggleTaskStatusByName('remove_old_drafts', $value);
$modules = array('admin', 'post', 'display', 'profile', 'personalmessage');
$modules = ['admin', 'post', 'display', 'profile', 'personalmessage', 'messageindex'];

// Enabling, let's register the modules and prepare the scheduled task
if ($value)
Expand Down
10 changes: 9 additions & 1 deletion sources/ElkArte/Controller/Display.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,16 @@ public function action_display()
'width' => '100%',
'smiley_container' => 'smileyBox_message',
'bbc_container' => 'bbcBox_message',
// We do XML preview here.
// We submit/switch to full post page for the preview
'preview_type' => 1,
'buttons' => [
'more' => [
'type' => 'submit',
'name' => 'more_options',
'value' => $txt['post_options'],
'options' => ''
]
],
];

// Load the template basics now as template_layers is requested by the prepare_context event
Expand Down
Loading

0 comments on commit 8f3e464

Please sign in to comment.