• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
  • 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
#1
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 :)
 

James

Well-known member
#5
F

Floris

Guest
#10
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.