Hi Jens,
no, it hasnt a mail function, but if you want it anyway do as follows:
open boardreply.php and find:
$sql = "SELECT board_name, board_moderator, board_moderator_email, board_mod_emailpost FROM ".BOARD_TABLE." WHERE board_id = '$bid'";
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);
$row = array();
while ($row = $site_db->fetch_array($result)) {
$board_id = $row['board_id'];
$board_name = $row['board_name'];
$board_moderator = $row['board_moderator'];
$board_moderator_email = $row['board_moderator_email'];
$board_mod_emailpost = $row['board_mod_emailpost'];
}
$site_db->free_result($result);
insert below:
//////////////////////////////////////////
////////////Eglys Email@reply/////////////
//////////////////////////////////////////
$sql = "SELECT user_email FROM ".BOARD_TREP_TABLE.", ".USERS_TABLE." WHERE "
.USERS_TABLE.".user_id = ".BOARD_TREP_TABLE.".repuser_id AND
repthrid = '$threadid' group by user_email";
$result = $site_db->query($sql);
$row = array();
while ($row = $site_db->fetch_array($result)) {
$repuser = $row['repuser_id'];
$repmailto = $row['user_email'];
$from = "xyz@xyz.com"; //insert your email adress here
$post_url=$script_url."/showthread.php?bid=$bid&threadid=$threadid&page=$getlastpage";
include_once(ROOT_PATH.'includes/email.php');
$site_email = new Email();
$site_email->set_from($from);
$site_email->set_to($repmailto);
$site_email->set_subject($subject_form);
$site_email->register_vars(array(
"recipient_name" => $board_moderator,
"forum_name" => $board_name,
"sender_name" => $username_form,
"topics_url" => $post_url,
"topics_content" => $message_form,
"about" => $lang['new_reply'],
"board_name" => $boardconfig['board_name']
));
$site_email->set_body("board_mailtopics", $config['language_dir']);
$site_email->send_email();
}
$sql= "SELECT user_email FROM ".BOARD_TCONT_TABLE.", ".USERS_TABLE." WHERE "
.USERS_TABLE.".user_id = ".BOARD_TCONT_TABLE.".thrstarter_id AND
thrid = '$threadid' ";
$result = $site_db->query($sql);
$row = array();
while ($row = $site_db->fetch_array($result)) {
$repuser = $row['repuser_id'];
$repmailto = $row['user_email'];
$thrstarter2 =$row['thrstarter_id'];
if ($thrstarter2 <> $repuser) {
$from = "xyz@xyz.com"; // insert your email adress here
$post_url=$script_url."/showthread.php?bid=$bid&threadid=$threadid&page=$getlastpage";
include_once(ROOT_PATH.'includes/email.php');
$site_email = new Email();
$site_email->set_from($from);
$site_email->set_to($repmailto);
$site_email->set_subject($subject_form);
$site_email->register_vars(array(
"recipient_name" => $board_moderator,
"forum_name" => $board_name,
"sender_name" => $username_form,
"topics_url" => $post_url,
"topics_content" => $message_form,
"about" => $lang['new_reply'],
"board_name" => $boardconfig['board_name']
));
$site_email->set_body("board_mailtopics", $config['language_dir']);
$site_email->send_email();
}else {}}
//////////////////////////////////////////
//////////End Eglys Email@reply///////////
//////////////////////////////////////////
I commented two lines, where you have to insert your email Adress.
It should work, im using it for a while now.
2. Question: The board uses another .css file
this file is in: /templates/<your template>/board_images/board_style.css
Greez Egly