You have mail (ShortMessage)
3.0
A short window pop up which tell you that you have a short message.
Before you install this Mod:
- open this mod and change germanDU.lng in the file name of your language file
After install this Mod:
- upload changed/new files, this should be clear ;) (Subs.pl, Profile.pl, Admin.pl, language file)
Bjoern Berg - yabb@bjoern-berg.de
http://www.wintotal.de/YaBB
Sources/Load.pl
fopen(IM, "$memberdir/$username.msg");
@immessages = ;
fclose(IM);
$mnum = @immessages;
if($mnum == 1) { $mehr = "$txt{'hbbb6'}" } else { $mehr ="$txt{'hbbb7'}" }
fopen(ALTNUM, "$memberdir/$username.nma"); $altnum=; fclose(ALTNUM); chomp($altnum);
if ( $altnum < $mnum) {
$anzahlm=$mnum-$altnum;
if($anzahlm == 1) { $anmehr = "$txt{'hbbb6'}" } else { $anmehr ="$txt{'hbbb7'}" }
$yyim_m .= qq~
~;
}
fopen(ALTNUM, ">$memberdir/$username.nma"); print ALTNUM "$mnum\n"; fclose(ALTNUM);
Sources/Profile.pl
unlink("$memberdir/$member{'username'}.log");
unlink("$memberdir/$member{'username'}.nma");
unlink("$memberdir/$username.log");
unlink("$memberdir/$username.nma");
Sources/Admin.pl
unlink("$memberdir/$currentmem.log");
unlink("$memberdir/$currentmem.nma");
template.html
germanDU.lng
if($MenuType == 1) {
$txt{'hbbb4'} = "You have Mail!";
$txt{'hbbb5'} = "Total";
$txt{'hbbb6'} = "Message";
$txt{'hbbb7'} = "Messages";
$txt{'hbbb8'} = "New";
$txt{'hbbb9'} = "Would you show them?";