TheLord
Member
sorry for my google english
This modification will make so that all deleted threads will fall into a special section. ie basket
create new forum, like "Trash"
open: xen\library\XenForo\Model\InlineMod\Thread.php
find:
replace for:
open: xen\library\XenForo\Model\Thread.php
find:
replace for:
9999 - change it for you "Trash" forum id
This modification will make so that all deleted threads will fall into a special section. ie basket
create new forum, like "Trash"
open: xen\library\XenForo\Model\InlineMod\Thread.php
find:
Code:
$dw->setExtraData(XenForo_DataWriter_Discussion::DATA_DELETE_REASON,$options['reason']);
$dw->set('discussion_state', 'deleted');
$dw->save();
replace for:
Code:
$dw->setExtraData(XenForo_DataWriter_Discussion::DATA_DELETE_REASON, $options['reason']);
$dw->set('discussion_state', 'deleted');
$dw->set('node_id', '9999');
$dw->save();
open: xen\library\XenForo\Model\Thread.php
find:
Code:
$dw->setExtraData(XenForo_DataWriter_Discussion::DATA_DELETE_REASON,$options['reason']);
$dw->set('discussion_state', 'deleted');
$dw->save();
replace for:
Code:
$dw->setExtraData(XenForo_DataWriter_Discussion::DATA_DELETE_REASON, $options['reason']);
$dw->set('discussion_state', 'deleted');
$dw->set('node_id', '9999');
$dw->save();
9999 - change it for you "Trash" forum id