Recurring event calendar?

This is a discussion on Recurring event calendar? within the PHP Language forums, part of the PHP Programming Forums category; Hi everyone, I'm writing a basic event management script for a society that runs a lot of projects. At ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-22-2008
Matt
 
Posts: n/a
Default Recurring event calendar?

Hi everyone,

I'm writing a basic event management script for a society that runs a
lot of projects. At the moment they use a Google Calendar to manage
event listings, which is all very well but doesn't integrate into the
site too well. There are limited choices/control over integrating the
Google tool into the site, and I also want members of the website to
be able to 'attend' an event by clicking a button that will then store
their user_id in association with that specific event.

This leads me to my code: I've written a simple date-picker script
that lets admins create events ranging over a period of time. I just
added a boolean 'isWeekly' to the table, and I was thinking of testing
for this when displaying the calendar, and simply duplicating the
event every 7 days on the calendar.

This presents problems if the event is cancelled, or just isn't taking
place one week, for example. The alternative would be to create
distinct rows in the table for each recurring event (let's say, if
it's a weekly event, it'll create 52 entries to cover the next year).
I'm still not sold on this idea either though - if someone messes up,
that's a lot of records to edit and fix.

Is there a better way to do this kind of thing? Maybe some way I could
interface with Google Calendar in order to log who's attending what?

- Matt
Reply With Quote
  #2 (permalink)  
Old 05-22-2008
ELINTPimp
 
Posts: n/a
Default Re: Recurring event calendar?

On May 22, 11:17 am, Matt <guitarroman...@gmail.com> wrote:
> Hi everyone,
>
> I'm writing a basic event management script for a society that runs a
> lot of projects. At the moment they use a Google Calendar to manage
> event listings, which is all very well but doesn't integrate into the
> site too well. There are limited choices/control over integrating the
> Google tool into the site, and I also want members of the website to
> be able to 'attend' an event by clicking a button that will then store
> their user_id in association with that specific event.
>
> This leads me to my code: I've written a simple date-picker script
> that lets admins create events ranging over a period of time. I just
> added a boolean 'isWeekly' to the table, and I was thinking of testing
> for this when displaying the calendar, and simply duplicating the
> event every 7 days on the calendar.
>
> This presents problems if the event is cancelled, or just isn't taking
> place one week, for example. The alternative would be to create
> distinct rows in the table for each recurring event (let's say, if
> it's a weekly event, it'll create 52 entries to cover the next year).
> I'm still not sold on this idea either though - if someone messes up,
> that's a lot of records to edit and fix.
>
> Is there a better way to do this kind of thing? Maybe some way I could
> interface with Google Calendar in order to log who's attending what?
>
> - Matt


Hi Matt,

The Gdata API is quite robust and you can access what you are looking
for through it. Google worked along side the Zend Framework
development team to come up with a simple API within Zend Framework
1.5+. Check out the component information at:
http://framework.zend.com/manual/en/....calendar.html

Regards,

Steve
Reply With Quote
  #3 (permalink)  
Old 05-22-2008
Jerry Stuckle
 
Posts: n/a
Default Re: Recurring event calendar?

Matt wrote:
> Hi everyone,
>
> I'm writing a basic event management script for a society that runs a
> lot of projects. At the moment they use a Google Calendar to manage
> event listings, which is all very well but doesn't integrate into the
> site too well. There are limited choices/control over integrating the
> Google tool into the site, and I also want members of the website to
> be able to 'attend' an event by clicking a button that will then store
> their user_id in association with that specific event.
>
> This leads me to my code: I've written a simple date-picker script
> that lets admins create events ranging over a period of time. I just
> added a boolean 'isWeekly' to the table, and I was thinking of testing
> for this when displaying the calendar, and simply duplicating the
> event every 7 days on the calendar.
>
> This presents problems if the event is cancelled, or just isn't taking
> place one week, for example. The alternative would be to create
> distinct rows in the table for each recurring event (let's say, if
> it's a weekly event, it'll create 52 entries to cover the next year).
> I'm still not sold on this idea either though - if someone messes up,
> that's a lot of records to edit and fix.
>
> Is there a better way to do this kind of thing? Maybe some way I could
> interface with Google Calendar in order to log who's attending what?
>
> - Matt


Matt,

I'd go ahead and create a separate entry for each event. If it's always
the same event, you don't need everything - i.e. you could have an
events table, and an event_date table.

But you really should be following this up in a database newsgroup such
as comp.databases.mysql. This isn't a php question.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:24 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0