PDA

View Full Version : Calendar Event Notification (by email)


JJR512
07-28-2002, 10:00 PM
This hack will send you an email notice whenever someone posts a public event onto your message board's calendar. It can be optionally configured to send you a notice for both public and private events (if you're particularly snoopy!).

This hack is very simple and only a small amount of new code to one file, and one new template. No database mods, no template mods, etc. :)

JJR512
07-29-2002, 10:09 PM
Woohoo! I just noticed that posting this graduated me from a "Master Hacker" into an "Ultimate Hacker"! :)

FleaBag
07-29-2002, 11:29 PM
Thanks for this hack - just what I was looking for. Working well on 2.2.6! :)

afterlab
07-29-2002, 11:42 PM
Congratulations on the new status and new hack, I'll install it later tonight. Thanks again for the new feature.

proxyMX
07-30-2002, 12:30 AM
im down in the low and frankly smelly rank of hacker :)

tkeil69575
07-30-2002, 04:26 AM
great hack! thanks JJR

Kiraly
07-30-2002, 09:27 AM
if by PM ??

Chris M
07-30-2002, 09:39 AM
Thanks:)

Satan

Floris
07-30-2002, 11:11 AM
Uhm, I was hoping this would let me receive an E-mail when a public/private event was happening that day for the admin :)

New email: 3 new events today!
(i.e.)

Admin
07-30-2002, 12:51 PM
Umm, what's the point of this? :confused:
$subject = $subject;

JJR512
07-31-2002, 02:03 AM
Originally posted by FireFly
Umm, what's the point of this? :confused:
$subject = $subject;
I have no idea. Where did you find it? It's not in my instructions to add that anywhere, nor does that exist anywhere in calendar.php, so I'm not quite sure why you're asking me. :confused:

Admin
07-31-2002, 06:09 AM
Originally posted by JJR512

I have no idea. Where did you find it? It's not in my instructions to add that anywhere, nor does that exist anywhere in calendar.php, so I'm not quite sure why you're asking me. :confused:
Just messing with ya. ;) Don't worry. :)

JJR512
07-31-2002, 07:10 AM
Oh, like the $error = $error thing? ;)

Buddha
09-16-2002, 11:58 PM
i know this is old now, but it would be cool if you could define by the template if it's a public or a private event that has been posted.

still great.
*installed*

subu1
05-14-2003, 07:39 AM
hmmm, it's don't work for me(2.2.8)

no email for my subu test event.

i take the public code

$DB_site->query("INSERT INTO calendar_events (userid, event, eventdate, public, subject, allowsmilies)
VALUES ('$bbuserinfo[userid]', '$message', '$date', $public, '$subject', $allowsmilies)");
$eventid = $DB_site->insert_id();

if ($public) {
eval("\$noticemessage = \"".gettemplate("email_newcalevent",1,0)."\";");
mail($webmasteremail,"New $bbtitle Calendar Event Notification",$noticemessage,"From: \"$bbtitle Mailer\" <$webmasteremail>");
}

eval("standardredirect(\"".gettemplate("redirect_calendaraddevent")."\",\"calendar.php?s=$session[sessionhash]&action=getinfo&eventid=$eventid\");");



what can i do, please help;)