vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Administrative and Maintenance Tools - Move Thread to Other forum when Moderate (https://vborg.vbsupport.ru/showthread.php?t=292589)

VuThanhLai 12-03-2012 11:00 PM

Move Thread to Other forum when Moderate
 
1 Attachment(s)
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):
PHP Code:

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:
PHP Code:

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

Find Next (About line 600):
PHP Code:

$threadman->set_info('skip_first_post_update'true); 

Add to bellow:
PHP Code:

//--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...when-moderate/

caoanh204 12-23-2012 08:03 AM

Thanks you, very useful!


All times are GMT. The time now is 01:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00945 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete