Quote:
Originally Posted by ensure
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&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&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.