itsid
12-15-2006, 10:00 PM
If you have installed Mystic's thread prefix hack,
maybe you're interested in moving and deleting threads by prefix within the acp.
To do so,
you have to edit your admincp/thread.php as below:
FIND:
print_input_row($vbphrase['title'], 'thread[titlecontains]');
ADD ABOVE:
//thread-prefix Add-on
print_input_row($vbphrase['threadprefix'], 'thread[threadprefix]');
//Eo thread-prefix Add-on
AND
FIND:
// title contains
if ($thread['titlecontains'])
{
$query .= " AND thread.title LIKE '%" . $db->escape_string_like(htmlspecialchars_uni($thread['titlecontains'])) . "%'";
}
ADD ABOVE:
// thread-prefix Add-on
if ($thread['threadprefix'])
{
$query .= " AND thread.threadprefix = '$thread[threadprefix]'";
}
//Eo thread-prefix Add-on
it's not as elegant as a dropdown with all possible prefixes, but it'll do if you type in your prefixes manually.
cheers
'sid
maybe you're interested in moving and deleting threads by prefix within the acp.
To do so,
you have to edit your admincp/thread.php as below:
FIND:
print_input_row($vbphrase['title'], 'thread[titlecontains]');
ADD ABOVE:
//thread-prefix Add-on
print_input_row($vbphrase['threadprefix'], 'thread[threadprefix]');
//Eo thread-prefix Add-on
AND
FIND:
// title contains
if ($thread['titlecontains'])
{
$query .= " AND thread.title LIKE '%" . $db->escape_string_like(htmlspecialchars_uni($thread['titlecontains'])) . "%'";
}
ADD ABOVE:
// thread-prefix Add-on
if ($thread['threadprefix'])
{
$query .= " AND thread.threadprefix = '$thread[threadprefix]'";
}
//Eo thread-prefix Add-on
it's not as elegant as a dropdown with all possible prefixes, but it'll do if you type in your prefixes manually.
cheers
'sid