vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Move a thread faster (https://vborg.vbsupport.ru/showthread.php?t=316065)

ensure 12-16-2014 08:23 PM

Move a thread faster
 
How do I move a thread to a specific forum by just clicking on a button without any redirection?

This would eliminate the need of
Thread Tools - Move Threads - Perform Action - Move Thread

ozzy47 12-16-2014 09:36 PM

Pretty much the way you described is the way to do it. :)

z3r0 12-17-2014 09:30 AM

Quote:

Originally Posted by ensure (Post 2527566)
How do I move a thread to a specific forum by just clicking on a button without any redirection?

This would eliminate the need of
Thread Tools - Move Threads - Perform Action - Move Thread

I have two buttons at the top of every thread, one to move the thread to the "bin" forum and the other to move the thread to the "spam" forum.

I put the following bellow $poll in SHOWTHREAD to achieve this, it shows to admin, mods and supermods.

Code:

<if condition="is_member_of($vbulletin->userinfo, 5, 6, 7)">
<div>
<div style="float:left;">
<form method="post" action="inlinemod.php?do=domovethread&amp;threadids=$thread[threadid]">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="destforumid" value="18">
<input type="hidden" name="threadids" value="$thread[threadid]">
<input type="hidden" name="do" value="domovethreads">
<input type="hidden" name="redirect" value="none" id="rb_redirect_none" checked="checked" />
<input type="submit" value="Bin">
</form>
</div>

<div style="float:left;">
<form method="post" action="inlinemod.php?do=domovethread&amp;threadids=$thread[threadid]">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="destforumid" value="39">
<input type="hidden" name="threadids" value="$thread[threadid]">
<input type="hidden" name="do" value="domovethreads">
<input type="hidden" name="redirect" value="none" id="rb_redirect_none" checked="checked" />
<input type="submit" value="Spam">
</form>
</div>
</div>
</if>

Change the destforumid value to the ID of your destination forum and submit value to the title of your button.

ozzy47 12-17-2014 09:44 AM

Yes that will work if you are only going to move to two different forums only. But if you are going to move post to a bunch of different forums, like when users post in the wrong place, then that just won't cut it. :)

ensure 12-17-2014 04:49 PM

Quote:

Originally Posted by z3r0 (Post 2527628)
I have two buttons at the top of every thread, one to move the thread to the "bin" forum and the other to move the thread to the "spam" forum.

Exactly what I was looking for, thanks!


All times are GMT. The time now is 06:55 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.00970 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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