• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Setting up a Trash Forum

Vincent

Well-known member
Hello,
I like to have a trash forum at my forums so here is how to do it:

1. Set up a Trash Forum, don't forget to untick "Allow new messages to be posted in this forum".

2. In library\XenForo\Model\Thread.php and In library\XenForo\Model\InlineMod\Thread.php change:
Code:
$dw->set('discussion_state', 'deleted');

to

Code:
$dw->set('node_id', 'xxx');

3. Change xxx with the ID of your trash forum.

Now, every time you soft-delete a thread it will appear as a visible thread in the trash forum you created.
Permanently deleted threads are still permanently deleted :)
 
Never mind, silly me ;) I'd recommend commenting the code out instead of actually replacing it.
 
Very interesting, thanks for sharing Vincent.

On http://xenfans.com we have a private archive that only the admins have access to. It's

archive/
archive/staff/
archive/2010/

Archive is where the current content goes, the staff sub forum is where all private team discussions go, and and the 2010 is just older archive content from previous year(s), so we have a current + history (makes it easier to search through).

Your approach to a trash bin, interesting.
 
Top Bottom