I hate manually having to copy/paste message id's for the merge function in ubb.threads. So I've made a little copy/paste thingy.
As soon as you edit a post, the current message id is written to a cookie. If you go into the move/merge screen, that id is put into the
Merge topic with Post# field.
Let's go to work!
open /scripts/editpost.inc.php
find
// ---------------------------------------------------------------------------
// For security purposes we need to verify that this is user made this post or
// if they are an admin or a moderator for this board.
Just above it add:
// -------------------------------------------
// Writes a cookie with the current message id
$html->ubbt_setcookie("lasteditnumber",$Number);
Open /scripts/movethread.inc.php
Find:
extract($in, EXTR_OVERWRITE | EXTR_REFS); // quick and dirty fix - extract hash values as vars
Just below it add:
$lasteditnumber = get_input("lasteditnumber","cookie");
Find:
Add below:
"lasteditnumber" => $lasteditnumber,
open /templates/default/movethread.inc.php
Find:
<label for="type-2">{$lang.MERGE_TOPIC}</label> <input type="text" name="number" size="10" class="form-input" />
replace with:
<label for="type-2">{$lang.MERGE_TOPIC}</label> <input type="text" name="merge" size="10" class="form-input" value="{$lasteditnumber}" />
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
open /templates/default/inline_move.tpl
find:
<label for="type-2">{$lang.MERGE_TOPIC}</label> <input type="text" name="number" size="10" class="form-input" />
replace with:
<label for="type-2">{$lang.MERGE_TOPIC}</label> <input type="text" name="number" size="10" class="form-input" value="{$lasteditnumber}" />
open /scripts/inline_moderation.inc.php
find:
function _inline_move() {
global $config, $dbh, $ubbt_lang, $html, $in, $userob;
Just below add:
$lasteditnumber = get_input("lasteditnumber","cookie");
find:
'totalposts' => $total_posts,
'is_gallery' => $is_gallery,
);
$cfrm = make_ubb_url("ubb=cfrm", "", false);
return array(
"header" => array (
"title" => $ubbt_lang['CONFIRM_MOVE'],
"refresh" => 0,
"javascript" => array(),
"bypass" => "",
"onload" => "",
"breadcrumb" => <<<BREADCRUMB
<a href="{$cfrm}">{$ubbt_lang['FORUM_TEXT']}</a> » {$ubbt_lang['CONFIRM_MOVE']}
BREADCRUMB
Add before:
"lasteditnumber" => $lasteditnumber,
Anything under the big line in this post you can skip if you don't want the feature enabled in inline moderation!