in postings.cgi
** find **
sub DoTheEdit {
** under this sub find **
# append edit note to the message
** replace for **
# begin turn off email notification in edit time 0-7 fields
if ($in{'ReplyNum'} eq '000000' && $UseEmail eq 'ON') {
$cataux = $editthread[0];
@firstpostlinecat = split(/||/, $cataux);
if ($in{'DisableNotificationcat'} ne 'yes') {
$firstpostlinecat[1] = '';
$cataux = $firstpostlinecat[0] . '||' . $firstpostlinecat[1] . '||' . $firstpostlinecat[2] . '||' . $firstpostlinecat[3] . '||' . $firstpostlinecat[4] . '||' . $firstpostlinecat[5] . '||' . $firstpostlinecat[6] . '||' . $firstpostlinecat[7];
$editthread[0] = $cataux;
} else {
$firstpostlinecat[1] = 'N';
$cataux = $firstpostlinecat[0] . '||' . $firstpostlinecat[1] . '||' . $firstpostlinecat[2] . '||' . $firstpostlinecat[3] . '||' . $firstpostlinecat[4] . '||' . $firstpostlinecat[5] . '||' . $firstpostlinecat[6] . '||' . $firstpostlinecat[7];
$editthread[0] = $cataux;
}
}
# end turn off email notification in edit time
# append edit note to the message
** find **
sub EditPost {
** find under this sub **
print <<EditFORM;
** replace for **
# begin turn off e-mail notification in edit
if ($in{'ReplyNum'} eq '000000' && $UseEmail eq 'ON') {
$cataux = $thisthread[0];
@firstpostlinecat = split(/||/, $cataux);
if ($firstpostlinecat[1] eq '') {
$DisableNotificationcat = '
<INPUT TYPE="CHECKBOX" NAME="DisableNotificationcat" VALUE="yes"> <b>Email Notification:</b> emails sent to you whenever someone replies. Only registered users are eligible.';
} else {
$DisableNotificationcat = '
<INPUT TYPE="CHECKBOX" NAME="DisableNotificationcat" VALUE="yes" checked> <b>Email Notification:</b> emails sent to you whenever someone replies. Only registered users are eligible.';
}
}
# end turn off e-mail notification in edit
print <<EditFORM;
** find **
$DisableSmiliesWording
** replace for **
$DisableSmiliesWording
$DisableNotificationcat
thats it i think. its working fine here
quick explanation: this will give topic starters the ability to turn on/off e-mail notification by editing their 1st messages.
edit: added compatibility with "Email Features On" in General Settings options
------------------
<IMG SRC="http://banco.jogosonline.com.br/imagensforum/copysig.gif" border=0>
<FONT COLOR="#6699cc" SIZE="1" FACE="Verdana, Arial">This message has been edited by CopyCat on January 12, 2001 at 09:28 PM</font>