Sean,
I have included three files
1) email_events.php
- goes in the includes directory
- allows emailing of events within a certain timeframe
- right now the return email is the contact_email from
the calendars table, but there is commented code which can grab an email
from the users table (if that field were added).
2) calendar.php
I have included a couple of new functions in this
a) valid_email() (makes sure it's a valid email
b) create_options($type,$select) creates the
<option></options> lists for drop down boxes for dates. You may want to
use this function for the search.php code as well.
BOTH THESE FUNCTION ARE USED IN email_events.php
3) index.php
I have added to the switch statement so that it handles
the email action. I leave the addition and placement of the 'email
events' button up to you.
Let me know if you have any questions.
-----Original Message-----
From: Sean Proctor [mailto:spr...@cc...]
Sent: Tuesday, March 11, 2003 8:37 PM
To: Nathan Poiro
Cc: php...@li...
Subject: Re: [Php-calendar-discussion] 'Options' problems in 0.8
On Tue, Mar 11, 2003 at 10:39:30AM -0800, Nathan Poiro wrote:
> You can now add links and emails to the description and they're
> clickable! groovy
Integrated. I actually had some code in there to do the first part.
that's
what the ereg_replace was for. I switched to using preg, but kept my
code for
finding URLs. It's cleaned up a bit now though, I hope. CVS has the
changes
and and I repackaged this all again at
http://www.rottenvegetable.org/php-calendar-0.8pre2.tar.gz
I changed the installer a bit to support anonymous users. I think this
one
might be releasable. setup.php and index.php are more sane now... but
setup.php is ugly... as if anyone cares.
Let me know if you find bugs!
Sean
|