The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
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: Code:
$threadtitle=htmlspecialchars($threadinfo[title]); Code:
/*
* Reply Patch by Moonwolf
*/
$threadtmp=htmlspecialchars($threadinfo[title]);
$repdone = explode (" ", $threadtmp);
if ($repdone[0] == "Re:") {
$threadtitle = $threadtmp;
} else {
$threadtitle = "Re: $threadtmp";
}
/*
* End Reply Patch
*/
Find: Code:
<td valign=top><INPUT TYPE="text" NAME="title" VALUE="$title" SIZE=40 MAXLENGTH=85> Code:
<td valign=top><INPUT TYPE="text" NAME="title" VALUE="$threadtitle" SIZE=40 MAXLENGTH=85> )Katherine Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Well if you want to do this without hacking the code you could do something like this... this way the user can change the title but if they leave the default it looks organized...
Code:
On the 'newreply' template find: <INPUT TYPE="text" NAME="title" VALUE="$title" SIZE=40 MAXLENGTH=85> and replace it with: <INPUT TYPE="text" NAME="title" VALUE="Re: $threadtitle" SIZE=40 MAXLENGTH=85> [Edited by stv on 05-30-2000 at 02:55 PM] |
|
#3
|
|||
|
|||
|
Yep that would work, but you'd end up with a whole chain of "Re: "'s in later replies. They can still change the topic if they want to using the hack above.
Kath |
|
#4
|
|||
|
|||
|
Actually no you wouldn't. The thread title is passed from the first message. We did this on our site several weeks ago and our users are happy.
|
|
#5
|
||||
|
||||
|
how can I add this to the Quick Reply Box??
|
|
#6
|
||||
|
||||
|
You can't do that to the box...
|
|
#7
|
||||
|
||||
|
Marco - why are you bumping such an old thread with answers
?- miSt |
|
#8
|
||||
|
||||
|
Nice to see a part of history re-surface on the forums again, eh?
|
![]() |
|
|