With these changes, you will be able to access a forum, then click on the Moderator Control Panel button and select multiple topics to move to trash at once.
Open: includes/mcp/mcp_forum.phpFiles to edit:
includes/mcp/mcp_forum.php
styles/subsilver2/template/mcp_forum.html
Find:
Code: Select all
'S_CAN_MOVE' => $auth->acl_get('m_move', $forum_id),
Code: Select all
'S_CAN_MOVE_TO_TRASH' => $auth->acl_get('m_move_to_trash', $forum_id),
Find:
Code: Select all
<!-- IF S_CAN_MOVE --><option value="move">{L_MOVE}</option><!-- ENDIF -->
Code: Select all
<!-- IF S_CAN_MOVE --><option value="move_to_trash">{L_MOVE_TOPIC_TO_TRASH}</option><!-- ENDIF -->
Open: includes/mcp/mcp_main.php
Find:
Code: Select all
if (!$trash_id)
{
add_log('mod', $to_forum_id, $topic_id, 'LOG_MOVE', $row['forum_name'], $forum_data['forum_name']);
}
Code: Select all
if ($trash_id)
{
add_log('mod', $to_forum_id, $topic_id, 'LOG_MOVE', $row['forum_name']);
}
Open: includes/mcp/mcp_main.php
Find:
Code: Select all
$redirect = request_var('redirect', "index.$phpEx");
$redirect = reapply_sid($redirect);
if (!$success_msg)
{
redirect($redirect);
}
else
{
meta_refresh(3, $redirect);
$message = $user->lang[$success_msg];
$message .= '<br /><br />' . sprintf($user->lang['RETURN_PAGE'], '<a href="' . $redirect . '">', '</a>');
$message .= '<br /><br />' . sprintf($user->lang['RETURN_FORUM'], '<a href="' . append_sid("{$phpbb_root_path}viewforum.$phpEx", "f=$forum_id") . '">', '</a>');
Code: Select all
$old_redirect = request_var('redirect', "index.$phpEx");
$old_redirect = reapply_sid($redirect);
$redirect = append_sid("{$phpbb_root_path}viewforum.$phpEx", "f=$forum_id");
if (!$success_msg)
{
redirect($redirect);
}
else
{
meta_refresh(3, $redirect);
$message = $user->lang[$success_msg];
$message .= '<br /><br />' . sprintf($user->lang['RETURN_PAGE'], '<a href="' . $old_redirect . '">', '</a>');
$message .= '<br /><br />' . sprintf($user->lang['RETURN_FORUM'], '<a href="' . $redirect . '">', '</a>');
Ps: Kamahl19, if you want you can merge it to the next version.