David,
In admin/functions.php find:
Code:
if ($post[username] == $bbuserinfo[username]) {
$edittext = htmlspecialchars($post[pagetext]);
eval("\$quickedit = \"".gettemplate('showthread_quickedit')."\";");
} else {
$edittext="";
$quickedit="";
}
Replace it with:
Code:
if ($post[username] == $bbuserinfo[username]) {
$edittext = htmlspecialchars($post[pagetext]);
$subuserid=$post[userid];
$pthreadid=$post[threadid];
if ($subuserid!=0) {
$subscribed=$DB_site->query_first("SELECT subscribethreadid FROM subscribethread WHERE threadid='$pthreadid' AND userid='$subuserid' LIMIT 1");
$poop=$subscribed[subscribethreadid];
if ($poop > 0){
$emailchecked="CHECKED";
}else{
$emailchecked="";
}
}
eval("\$quickedit = \"".gettemplate('showthread_quickedit')."\";");
} else {
$edittext="";
$quickedit="";
}
The put this line of code in your showthread_quickedit template:
Code:
<input type="hidden" name="email" value="yes" $emailchecked>