###################################################################
# Move a Thread to a Preset Forum
# By Michael Morris, "Spoony Bard" (
http://www.enworld.org)
# For distribution in
www.vbulletin.org only
# Version 2.0
###################################################################
Moving threads is something we all do on a somewhat regular to fairly
regular basis. The existing move system is very flexiable, but if
you find yourself making repeated moves to the same forum it can
become tedious, especially if you are on dialup.
This template mod (version 1.0 was a hack) takes some of the pain
out of the repetition by allowing you make the thread move with a
single mouse click from the thread presets.
This is a very simple modification. It only requires 3 modifications
spread over 2 templates.
###################################################################
# Template modifications in SHOWTHREAD
###################################################################
-------------------------------------------------------------------
search for this:
-------------------------------------------------------------------
<option value="removeredirect">$vbphrase[remove_redirects]</option>
-------------------------------------------------------------------
Put this directly underneath it
-------------------------------------------------------------------
<option value="PRESET_VALUE">Move Thread to PRESET FORUM</option>
-------------------------------------------------------------------
search for this:
-------------------------------------------------------------------
<div><label for="ao_rrd"><input type="radio" name="do" id="ao_rrd" value="removeredirect" />$vbphrase[remove_redirects]</label></div>
-------------------------------------------------------------------
Put this directly underneath it
-------------------------------------------------------------------
<div><label for="ao_XXX"><input type="radio" name="do" id="ao_XXX" value="PRESET_VALUE" />Move Thread to somewhere</label></div>
-------------------------------------------------------------------
NOTES: Replace PRESET FORUM with the name of the forum you wish the
prest to point to (or something else you and your staff can remember).
Replace PRESET_VALUE with a value for the preset and note it down.
You must make it unique (it can't match the other values immediately
above it).
On the radio button you need to replace XXX with a three letter
abbreviation for your preset, otherwise the radio buttons won't work
right. None of the radio buttons should have the same three letters
after ao_
-------------------------------------------------------------------
###################################################################
# Template modifications in PHPINCLUDE_START
###################################################################
-------------------------------------------------------------------
Add this code at the very start or very end of your PHPINCLUDE_START
template.
-------------------------------------------------------------------
// Move thread to Admin Forum preset
if (($_REQUEST['do'] == 'PRESET_VALUE') AND (THIS_SCRIPT == 'postings'))
{
$_REQUEST['do'] = 'domovethread';
$_POST['do'] = 'domovethread';
$_POST['forumid'] = '#';
$_POST['method'] = 'move';
}
-------------------------------------------------------------------
PRESET_VALUE needs to be exactly the same as in the SHOWTHREAD template.
It also needs to be one word with no spaces. Remember also to give the
# of the forum you want the preset to go to. The format above leaves
no redirect - if you want a redirect change $_POST['method'] from "move"
to "movered'
Enjoy.