bira
04-18-2001, 10:00 PM
OK, so this came out of a 'discussion' eva2000 and I had about moving posts to a "trashcan" forum, rather than deleting them. The way eva does it, is to split the thread (move the post(s) he wants to 'delete' into a new thread) and then move the new thread to the "trash-can" forum.
So I figured, why not just do it in one go?
So here's a microscopic hack to do just that :D
1) Open postings.php
Find:
eval("dooutput(\"".gettemplate("threads_splitthread")."\");");
Immediately ABOVE it put:
$moveforumbits=getmoveforums();
Find:
eval("standarderror(\"".gettemplate("error_cantsplitall")."\");");
}
Immediately BELOW it put:
if ($newforumid!="") {
$threadinfo[forumid] = $newforumid;
}
2) Edit the template threads_splitthread.
Find:
<input type="submit" class="bginput" name="submit" value="Split Thread" accesskey="s">
Immediately ABOVE it put:
<select name="newforumid">
<option value="">Select Destination Forum or Leave As-Is:</option>
$moveforumbits
</select><br>
That's it :)
Now, when you split a thread, you can either leave it in the same forum, or select a different destination forum.
Cheers,
Bira
So I figured, why not just do it in one go?
So here's a microscopic hack to do just that :D
1) Open postings.php
Find:
eval("dooutput(\"".gettemplate("threads_splitthread")."\");");
Immediately ABOVE it put:
$moveforumbits=getmoveforums();
Find:
eval("standarderror(\"".gettemplate("error_cantsplitall")."\");");
}
Immediately BELOW it put:
if ($newforumid!="") {
$threadinfo[forumid] = $newforumid;
}
2) Edit the template threads_splitthread.
Find:
<input type="submit" class="bginput" name="submit" value="Split Thread" accesskey="s">
Immediately ABOVE it put:
<select name="newforumid">
<option value="">Select Destination Forum or Leave As-Is:</option>
$moveforumbits
</select><br>
That's it :)
Now, when you split a thread, you can either leave it in the same forum, or select a different destination forum.
Cheers,
Bira