I get a lot of IM's with questions about minor fixes - so as a reference i'll put them here.
How do i disabel member option to delete their account?In Profile.pl find:
<input type=submit name=moda value="$txt{'89'}" onClick="return confirm('$confdel_text')"><BR><BR>
and replace it with:
~;
if($settings[7] eq "Administrator") {
$yymain .= qq~<input type=submit name=moda value="$txt{'89'}" onClick="return confirm('$confdel_text')">~;
}
$yymain .= qq~<BR><BR>
then still in Profile.pl find:
if($member{'username'} ne "admin") {
and
add before: &fatal_error("$txt{'1'}") if($settings[7] ne "Administrator");
How do i change the number of replies a topic should have to be "Hot" or "Very hot"?In Display.pl find:
elsif( $mreplies > 24 ) { $threadclass = 'veryhotthread'; }
elsif( $mreplies > 14 ) { $threadclass = 'hotthread'; }
and change the numbers 24 and 14
then in english.lng find:
$txt{'454'} = "Hot Topic (More than 15 Replies)";
$txt{'455'} = "Very Hot Topic (More than 25 Replies)";
and change the numbers 15 and 25 accordingly.
How can i disable members option to change their displayed name?In Profile.pl find:
<td width="320"><font size=2><b>$txt{'68'}: </b></font><BR>
<font size="1">$txt{'518'}</font></td>
<td><input type="text" maxlength="30" name="name" size="30" value="$memsettings[1]"></font></td>
and replace it with:
~;
if($settings[7] eq 'Administrator') {
$yymain .= qq~
<td width="320"><font size=2><b>$txt{'68'}: </b></font><BR>
<font size="1">$txt{'518'}</font></td>
<td><input type="text" maxlength="30" name="name" size="30" value="$memsettings[1]"></font></td>
~;
}
else {
$yymain .= qq~
<td colspan="2"><input type="hidden" name="name" value="$memsettings[1]"></td>
~;
}
$yymain .= qq~