Pyro
10-05-2001, 11:39 AM
I am looking for the feature/hack that at least one of the admins/mods is informed via email when there is a new public event posted.
I didn't find that feature in the CP options nor was this released as a hack, so I try to include the mail() function in calendar.php on myself. I guess that it should be added somewhere around line 753 where a new event is added to the db:
$DB_site->query("INSERT INTO calendar_events (userid, event, eventdate, public, subject, allowsmilies)
VALUES ('$bbuserinfo[userid]', '$message', '$date', $public, '$subject', $allowsmilies)");
Is this the right place to put mail() to inform the admin about new public events?
Thanks
Markus
I didn't find that feature in the CP options nor was this released as a hack, so I try to include the mail() function in calendar.php on myself. I guess that it should be added somewhere around line 753 where a new event is added to the db:
$DB_site->query("INSERT INTO calendar_events (userid, event, eventdate, public, subject, allowsmilies)
VALUES ('$bbuserinfo[userid]', '$message', '$date', $public, '$subject', $allowsmilies)");
Is this the right place to put mail() to inform the admin about new public events?
Thanks
Markus