UBB.Dev
How hard would it be to have the title of a thread changed to have [LOCKED] added when a thread is locked.

With content islands this is useful as it shows at a glance threads that have been locked, esp when the title is obviously something that was GOING to be locked by a moderator smile

Having it look like this thread title (only one instance of the [Locked] though smile )
For that matter,

It does appear to be a new trend of being able to ADD text notifications to thread titles. [OT] [HELP] [NEWS] etc.

Anyone willing to implement something of that nature in a modification ? You can see examples of it at broadbandreports.com forum for one .. but seems to be a new emerging "standard" as a thread content notifier.
For your first question: (untested)
Open ubb_topic_maint.cgi
Find:
Code
		$notify_wording = "$vars_wordlets{topic_opened_notify}";
Add below:
Code
		$stat_line[4] =~ s/^[LOCKED] //;
Find:
Code
		$notify_wording = "$vars_wordlets{topic_closed_notify}";
Add below:
Code
		$stat_line[4] = "[LOCKED] $stat_line[4]";
Thanks LK!
About your second question, that also isn't so hard...
Untested: in public_new_topic_form.pl, find:
Code
<input type="text" name="topic_subject" value="" size="40" maxlength="85" />
</td>
</tr>

SubjectRow
add below:
Code
if ($in{f} =~ m/^(1|2|3|4|5|6|7|8|9|10|11)$/) {
print qq~
<tr bgcolor="$vars_style{AltColumnColor1}">
<td nowrap="nowrap">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}"><b>
Message Type:
</b></font></td>
<td>
<input type="radio" name="type" value="[NEWS] " /> NEWS <input type="radio" name="type" value="[OT] " /> OT <input type="radio" name="type" value="[HELP] " /> HELP <input type="radio" name="type" value="" checked="checked" /> NONE
</td>
</tr>
~;
}
then open ubb_new_topic_page.cgi.
find:
Code
	# Require english letter/number in subject?
add above:
Code
$in{topic_subject} = $in{type} . $in{topic_subject};
This is very premature and as I said untested, but you can go from here to how you want it to be...
This (1|2|3|4|5|6|7|8|9|10|11) thingy is the list forums where you want to show these radio boxes, separated by |.
© UBB.Developers