Log in

View Full Version : Administrative and Maintenance Tools - Move Thread to Other forum when Moderate


VuThanhLai
12-03-2012, 11:00 PM
Some time, you want to move one topic to another forum when you moderating. If so, this article is really useful for you.

(Applies to all vBB version )

Demo:
https://vborg.vbsupport.ru/external/2012/12/30.png

Open file mocp/moderate.php

Find (About line 420):
print_label_row('<b>' . $vbphrase['forum'] . '</b>', '<a href="../' . fetch_seo_url('forum', array('forumid' => $thread['forumid'], 'title' => $vbulletin->forumcache["$thread[forumid]"]['title'])) . "\" target=\"_blank\">" . $vbulletin->forumcache["$thread[forumid]"]['title'] . "</a>");

Add to Bellow:
//--Added by vt.lai - SinhVienIT.Net
print_forum_chooser($vbphrase['forum'], "forumid[$thread[threadid]]", $thread['forumid']);
//--

Find Next (About line 600):
$threadman->set_info('skip_first_post_update', true);

Add to bellow:
//--Added by: vt.lai - SinhVienIT.Net
$fid=intval($_POST['forumid'][$threadinfo['threadid']]);
if($fid)
$threadman->set('forumid', $fid);
//--------------

DOne !

Source: http://sinhvienit.net/@forum/threads/231664-chuyen-bai-viet-sang-box-khac-khi-duyet-bai-move-thread-to-other-forum-when-moderate/

caoanh204
12-23-2012, 08:03 AM
Thanks you, very useful!