2018-10-12, 02:14 PM
Hello,
I am working on a custom plugin for a client which also includes moving a thread to a specific forum. The problem here is that the stats and last post don't get updated automatically, theĀ Rebuild Forum Counters function (Recount & Rebuild) in the ACP seems to fix this problem.
I am moving this thread on a custom page.
This works completely fine, how can I run the function on this custom page? Thank you in advance.
I am working on a custom plugin for a client which also includes moving a thread to a specific forum. The problem here is that the stats and last post don't get updated automatically, theĀ Rebuild Forum Counters function (Recount & Rebuild) in the ACP seems to fix this problem.
I am moving this thread on a custom page.
$tid = (int)$mybb->input['tid'];
// Move thread
$db->update_query('threads', array('fid' => $mybb->settings['app_forum']), 'tid = ' . $tid);
This works completely fine, how can I run the function on this custom page? Thank you in advance.