Advanced System eMails Mod
0.9 SP1.1
- fully editable with eMail Control Center
- possibility to template the post notification emails with many different tags,
- possibility to template the the instant message notification emails with many different tags,
- possibility to template the register welcome emails with many different tags,
- possibility to template the register password emails with many different tags,
- possibility to template the password reminder emails with many different tags,
- possibility to template the profile change emails with many different tags,
- possibility to template the send topic emails with many different tags,
- possibility to template the admin emails with some different tags,
- new hacker warning emails with many different tags,
- added new member notification emails with many different tags,
- new junior member gratulation emails, full member gratulation emails, senior member gratulation emails and god member gratulation emails with many different tags,
- new emails for deletions of members by members or admins with many different tags
- random quotes mod is fully supported
- compatible with all mods where boardmod no founds problems (I do not know any incompatible mod, hints are welcome).
Installation:
- apply mod
- upload advemails.txt to your variable directory
- upload YaBB.pl and english.lng to your YaBB directory
- upload Admin.pl, AdminEdit.pl, InstantMessage.pl, LogInOut.pl, Post.pl, Profile.pl, Register.pl, SendTopics.pl and Subs.pl to your sources directory
- if you like quotes or sayings: upload a file quotes.txt to your variable direction with one quote or saying per line (not necessary)
- to make the file quotes.txt editable via control center upload random quotes mod (not necessary)
Uwe Wiedemann
http://www.philtalk.de/
YaBB.pl
elsif ($action eq 'usersrecentposts') { require "$sourcedir/Profile.pl"; &usersrecentposts; }
elsif ($action eq 'usersrecentposts') { require "$sourcedir/Profile.pl"; &usersrecentposts; }
# Advanced System eMails Mod
elsif ($action eq 'advemail') { require "$sourcedir/AdminEdit.pl"; &EmailControlCenter; }
elsif ($action eq 'advemail2') { require "$sourcedir/AdminEdit.pl"; &EmailControlCenter2; }
# End Advanced System eMails Mod
english.lng
1;
# Advanced System eMails Mod
$advemailtxt{'1'} = "eMail Control Center";
$advemailtxt{'2'} = "Post Notification eMail";
$advemailtxt{'3'} = "IM Notification eMail";
$advemailtxt{'4'} = "Register Welcome eMail";
$advemailtxt{'5'} = "Register Password eMail";
$advemailtxt{'6'} = "Password Reminder eMail";
$advemailtxt{'7'} = "Profile Change eMail";
$advemailtxt{'8'} = "Send Topic eMail";
$advemailtxt{'9'} = "Hacker Warning eMail";
$advemailtxt{'10'} = "New message";
$advemailtxt{'11'} = "wrote your the following instant message";
$advemailtxt{'12'} = "Use tags [subject]<\/b> (subject of the message), [threadsubject]<\/b> (subject of the first message in the thread), [messageurl]<\/b> (url of the new message), [threadurl]<\/b> (url of the thread start), [threadid]<\/b> (id number of the thread), [boardtitle]<\/b>s (title of the board board with the new message which is displayed on the board index), [boardname]<\/b> (name of this board), [boardurl]<\/b> (url of this board), [mbname]<\/b> (name of the message board), [mburl]<\/b> (url of the message board), [name]<\/b> (display name of the poster), [username]<\/b> (login name of the poster), [memberinfo]<\/b> (info of the poster, i.e. Junior Member, Administrator ...), [anchor]<\/b> (anchor of the new message), [messagenumber]<\/b> (how many messages are in the thread?), [date]<\/b> (the actual time), [postersmessagenumber]<\/b> (how many messages wrote the poster?), [quote]<\/b> (if the file quotes.txt in the variable directory exist, then an random line of this file) and [message]<\/b> (even the message) to include personalized details in the message.";
$advemailtxt{'13'} = "Use tags [subject]<\/b> (subject of IM), [sender]<\/b> (display name of sender), [sendername]<\/b> (login name of sender), [senderinfo]<\/b> (i. e., is sender Junior Member, Administrator ...?), [imurl]<\/b> (url of IM), [name]<\/b> (recipient of IM), [memberinfo]<\/b> (is recipient Junior Member ...?), [date]<\/b> (the actual time), [mbname]<\/b> (name of the message board), [mburl]<\/b> (url of the message board), [quote]<\/b> (if the file quotes.txt in the variable directory exist, then an random line of this file) and [message]<\/b> (even the message) to include personalized details in the message.";
$advemailtxt{'14'} = "Use tags [name]<\/b> (display name of the user), [username]<\/b> (login name of the poster), [password]<\/b> (password of the poster), [mbname]<\/b> (name of the message board), [mburl]<\/b> (url of the message board), [profile]<\/b> (link to users profile), [date]<\/b> (the actual time), [email]<\/b> (email of user), [homepagename]<\/b> (homepagename of user's homepage), [homepage]<\/b> (link to user's homepage), [gender]<\/b> (of user), [location]<\/b> (of user), [text]<\/b> (user's text), [age]<\/b> (of user), [icq]<\/b> (of user), [aim]<\/b> (of user), [yim]<\/b> (of user), [signature\]<\/b> (of user), [memberinfo]<\/b> (is user junior member or admin?) and [quote]<\/b> (if the file quotes.txt in the variable directory exist, then an random line of this file), to include personalized details in the message.";
$advemailtxt{'15'} = "The tag [password]<\/b> is necessary to save the functionality of this eMail.";
$advemailtxt{'16'} = "Use tags [adminname]<\/b>, [falsepassword]<\/b> (the false password which has been used), [ip]<\/b> (the ip where the login attempt came from), [mbname]<\/b> (name of the message board), [mburl]<\/b> (url of the message board), [date] (the actual time) and [quote]<\/b> (if the file quotes.txt in the variable directory exist, then an random line of this file) to include personalized details in the message.";
$advemailtxt{'17'} = "Use tags [subject]<\/b> (subject of topic), [sender]<\/b>, [senderemail]<\/b>, [recipient]<\/b>, [mbname]<\/b> (name of the message board), [mburl]<\/b> (url of the message board), [date]<\/b> (the actual time), [topicurl]<\/b> and [quote]<\/b> (if the file quotes.txt in the variable directory exist, then an random line of this file) to include personalized details in the message.";
$advemailtxt{'18'} = "New Member Notification eMail";
$advemailtxt{'19'} = "Use tags [name]<\/b> (display name of the user), [username]<\/b> (login name of the user), [mbname]<\/b> (name of the message board), [mburl]<\/b> (url of the message board), [profile]<\/b> (link to users profile), [date]<\/b> (the actual time), [email]<\/b> (email of user), [homepagename]<\/b> (homepagename of user's homepage), [homepage]<\/b> (link to user's homepage), [gender]<\/b> (of user), [location]<\/b> (of user), [text]<\/b> (user's text), [age]<\/b> (of user), [icq]<\/b> (of user), [aim]<\/b> (of user), [yim]<\/b> (of user), [signature\]<\/b> (of user), [memberinfo]<\/b> (is user junior member or admin?) and [quote]<\/b> (if the file quotes.txt in the variable directory exist, then an random line of this file), to include personalized details in the message.";
$advemailtxt{'20'} = "Leave the subject empty if you do not like this eMail.";
$advemailtxt{'21'} = "Junior Member Gratulation eMail";
$advemailtxt{'22'} = "The user will be notified if he gets a junior member.";
$advemailtxt{'23'} = "Full Member Gratulation eMail";
$advemailtxt{'24'} = "The user will be notified if he gets a full member.";
$advemailtxt{'25'} = "Senior Member Gratulation eMail";
$advemailtxt{'26'} = "The user will be notified if he gets a senior member.";
$advemailtxt{'27'} = "Gods Member Gratulation eMail";
$advemailtxt{'28'} = "The user will be notified if he gets a gods member.";
$advemailtxt{'29'} = "User Deletion by User eMail.";
$advemailtxt{'30'} = "User Deletion by Admin eMail.";
$advemailtxt{'31'} = "The webmaster will be notified if a user is deleted.";
$advemailtxt{'32'} = "The admin will be notified if a new member enteres the message board.";
$advemailtxt{'33'} = "Use tags [adminname]<\/b> (display name of the admin), [adminusername]<\/b> (login name of the admin), [name]<\/b> (display name of the user), [username]<\/b> (login name of the user), [mbname]<\/b> (name of the message board), [mburl]<\/b> (url of the message board), [profile]<\/b> (link to users profile), [date]<\/b> (the actual time), [email]<\/b> (email of user), [homepagename]<\/b> (homepagename of user's homepage), [homepage]<\/b> (link to user's homepage), [gender]<\/b> (of user), [location]<\/b> (of user), [text]<\/b> (user's text), [age]<\/b> (of user), [icq]<\/b> (of user), [aim]<\/b> (of user), [yim]<\/b> (of user), [signature\]<\/b> (of user), [memberinfo]<\/b> (is user junior member or admin?) and [quote]<\/b> (if the file quotes.txt in the variable directory exist, then an random line of this file), to include personalized details in the message.";
$advemailtxt{'34'} = "Admin eMails";
$advemailtxt{'35'} = "Use tags [adminname]<\/b> (display name of the admin), [mbname]<\/b> (name of the message board), [mburl]<\/b> (url of the message board), [date]<\/b> (the actual time) and [quote]<\/b> (if the file quotes.txt in the variable directory exist, then an random line of this file), to include personalized details in the message.";
# End Advanced System eMails Mod
1;
sources/Admin.pl
- $txt{'216'}
- $txt{'216'}
- $advemailtxt{'1'}
unlink("$memberdir/$currentmem.dat");
# Advanced System eMails Mod
&advsendmail3(14,$webmaster_email,$member{'username'},"");
# End Advanced System eMails Mod
unlink("$memberdir/$currentmem.dat");
$yymain .= qq~
$txt{'338'}
~;
# Advanced System eMail Mod
my ($tmpsubj, $tmpbody);
fopen(FILE, "$vardir/advemails.txt");
@EMAILTEMPL = ;
fclose(FILE);
$tmpsubj = substr(@EMAILTEMPL[15],0,index(@EMAILTEMPL[15],'|'));
$tmpbody = substr(@EMAILTEMPL[15],index(@EMAILTEMPL[15],'|')+1,length(@EMAILTEMPL[15]));
$tmpbody =~ s~\\n~\n~g;
$yymain .= qq~