1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you want premium products then purchase our VIP or SVIP plans
  3. Dont forget read our rules HERE Also anyone caught Leeching this content or Scamming will be banned on numerous networks.
    Dismiss Notice
  4. Dont forget we do not allow Multiple Accounts, so all of your accounts as well as your IP will be banned.
    Dismiss Notice
  5. Tired of Download Limits ? UPGRADE Today!
    Dismiss Notice

FREE Create a "trash forum" for deleted theme

Discussion in 'Xenforo Template Mods & Extras' started by HAWK, Mar 23, 2016.

  1. HAWK

    HAWK Administrator Staff Member ADMIN

    Likes Received:
    1,143
    Trophy Points:
    113
    Gender:
    Male
    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
     
    princedusat likes this.
  2. striarc

    striarc Registered REGISTERED

    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Done :) TY
     
  3. dkv

    dkv Registered REGISTERED

    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    ty :) very much
     
  4. 4pf3ls4ft

    4pf3ls4ft Registered REGISTERED

    Likes Received:
    0
    Trophy Points:
    1
    done thanks bro!
     

Share This Page

Post thread