Admin/Mod Name Color
1.0
Allows you to customize the admin/moderator name colors on the message index and message display. There is an added field in the admin interface to change this color (by default it's red)
BuG
http://www.crazyseamonkey.com
english.lng
$txt{'795'} = "View full forum statistics";
$txt{'796'} = "Your Instant Messages:";
$txt_clr{'1'} = "Admin/Mod Name Color:";
sources/adminedit.pl
$txt{'389'}
$txt{'389'}
$txt_clr{'1'}
\$color{'fadertext'} = "$color{'fadertext'}"; # Color of text in the NewsFader (news color)
\$color{'adminname'} = "$color{'adminname'}";
sources/messageindex.pl
# Load the current nickname of the account name of the thread starter.
if( $musername ne 'Guest' && -e "$memberdir/$musername.dat" ) {
&LoadUser($musername);
$mname = $userprofile{$musername}->[1] || $mname || $txt{'470'};
$mname = qq~$mname~;
}
# Load the current nickname of the account name of the thread starter.
if( $musername ne 'Guest' && -e "$memberdir/$musername.dat" ) {
if((exists $moderators{$musername})) {
&LoadUser($musername);
$mname = $userprofile{$musername}->[1] || $mname || $txt{'470'};
$mname = qq~$mname~;
}
else{
&LoadUser($musername);
$mname = $userprofile{$musername}->[1] || $mname || $txt{'470'};
$mname = qq~$mname~;
}
}
unless( $lastposter eq $txt{'470'} ) {
$lastposterid = $lastposter;
&LoadUser($lastposterid);
if($userprofile{$lastposter}->[1]) { $lastposter = qq~$userprofile{$lastposter}->[1]~; }
}
unless( $lastposter eq $txt{'470'} ) {
$lastposterid = $lastposter;
&LoadUser($lastposterid);
if((!exists $moderators{$lastposter})) {
if($userprofile{$lastposter}->[1]) { $lastposter = qq~$userprofile{$lastposter}->[1]~; }
}
else {
if($userprofile{$lastposter}->[1]) { $lastposter = qq~$userprofile{$lastposter}->[1]~; }
}
}
sources/display.pl
$usernamelink = qq~$userprofile[1]~;
if((exists $moderators{$useraccount{$musername}})){
$usernamelink = qq~$userprofile[1]~;
}
else{
$usernamelink = qq~$userprofile[1]~;
}