this will work version .01
edit option.tpl
add
Admin E-mail<br/>
<input name="email" type="text" value="{$options[options].email}" size="30" maxlength="200" />
<br />
<br />
like
{section name=options loop=$options}</p>
<p align="center"> {$LAN_33}<br />
<input name="name" type="text" value="{$options[options].name}" size="30" maxlength="200" />
<br />
<br />
Admin E-mail<br/>
<input name="email" type="text" value="{$options[options].email}" size="30" maxlength="200" />
<br />
<br />
{$LAN_67}<br />
<textarea name="news" cols="30" rows="2">{$options[options].news}</textarea>
<br />
<br />
edit the options.php
add
mysql_query("UPDATE pp_config SET email = '$_POST[email]'");
like
mysql_query("UPDATE pp_config SET name = '$_POST[name]'");
mysql_query("UPDATE pp_config SET email = '$_POST[email]'");
mysql_query("UPDATE pp_config SET news = '$_POST[news]'");
add new database field call email under pp_config
then
edit
submit.php
add this above the
exit;
}
?>
at the end
// Your email address
$email = "YOUR_EMAIL ADDRESS";
// The subject
$subject = "Some just posted on your site";
// The message
$message = " Some just posted on your site";
mail($email, $subject, $message, "From: $email");
//echo "The email has been sent to $email.";
}
I still have to tie the $email address to the email address in the database