In this tutorial we are going to discuss how to add a trash forum to our site. This allows us to add soft deleted threads to this forum automatically.
So what do we need to do in order to do this? Well first we must create a new node and include the trash category into it. Make sure that when you do this you untick “Allow new messages to be posted in this forum” Also make sure that you make it so only mod’s and admins can see it so that your members cannot.
So we are going to look for the following file’s to edit:
libary/xenforo/model/thread.php
and
libary/xenforo/model/inlinemod/thread.php
In both of these we are going to change them from the following:
$dw->set(‘discussion_state’, ‘deleted’);
to
$dw->set(‘node_id’, ‘xxx’);
Where “xxx” is the node number that you wish for this to go to.
Looks like this:
Once you change it you will see this:
Now we need to verify that it does infact work. So what you will do is delete a thread (not permentally) and see if it goes where you need it too.
there you have it!
If you have any questions please feel free to ask away!
Looking for quality XenForo hosting? Check out Arvixe Web Solutions