05-29-2000, 01:48 PM
This hack will prefix "Re: " at the beginning of the topic line on replies. It'll check to see if the post being replied to is itself a reply (has "Re: " in front of it) and won't add the "Re: ", avoiding threads full of "Re: ", "Re: Re: " etc posts.
In newreply.php
Line 258 (usually) find:
$threadtitle=htmlspecialchars($threadinfo[title]);
Replace with:
/*
* Reply Patch by Moonwolf
*/
$threadtmp=htmlspecialchars($threadinfo[title]);
$repdone = explode (" ", $threadtmp);
if ($repdone[0] == "Re:") {
$threadtitle = $threadtmp;
} else {
$threadtitle = "Re: $threadtmp";
}
/*
* End Reply Patch
*/
Now open the newreply template.
Find:
<td valign=top><INPUT TYPE="text" NAME="title" VALUE="$title" SIZE=40 MAXLENGTH=85>
Replace with:
<td valign=top><INPUT TYPE="text" NAME="title" VALUE="$threadtitle" SIZE=40 MAXLENGTH=85>
And you're all set. I'm working up a hack that will allow you to use a radio button when replying that will make your reply a new thread (for those replies that end up going totally off topic :p)
Katherine
In newreply.php
Line 258 (usually) find:
$threadtitle=htmlspecialchars($threadinfo[title]);
Replace with:
/*
* Reply Patch by Moonwolf
*/
$threadtmp=htmlspecialchars($threadinfo[title]);
$repdone = explode (" ", $threadtmp);
if ($repdone[0] == "Re:") {
$threadtitle = $threadtmp;
} else {
$threadtitle = "Re: $threadtmp";
}
/*
* End Reply Patch
*/
Now open the newreply template.
Find:
<td valign=top><INPUT TYPE="text" NAME="title" VALUE="$title" SIZE=40 MAXLENGTH=85>
Replace with:
<td valign=top><INPUT TYPE="text" NAME="title" VALUE="$threadtitle" SIZE=40 MAXLENGTH=85>
And you're all set. I'm working up a hack that will allow you to use a radio button when replying that will make your reply a new thread (for those replies that end up going totally off topic :p)
Katherine