Posted on: 01/29/03 12:25am
By: Anonymous (eccc)
I'm going to write a recurring events hack for the calendar.
I am just learning PHP but I know this is something I could do in my sleep in C or VB, so I'm going to try and adapt.
What is the "eid" column in gl_events?
Sample:
"20021220131531188"
I know the 20021220 is Dec. 20 , 2002. What's the rest?
In theory, I should be able to add some fields to the event add form such as:
Recurring? [ ]
((get the recurring info like daily, weekly, etc... or every third friday of every month, etc))
Until when? [date to end the repeating]
Then I would have the code check and see if recurring was selected. If it was, it would calculate the dates based on the reocurrance (monthly, weekly, etc) and come up with the dates for the repeats.
I would probably have to add a column to the gl_events table to set the repeating events apart from the regular events so they can all be deleted at the same time.
Then I would just create the rows from the initial event data all the way through the user's end date.
Doesn't sound too hard, but like I said I'm new to PHP.
Anyone have any ideas or feature requests?
Advice on Hack I'm Going to Write
Posted on: 01/29/03 09:51am
By: Dirk
eid = event id
Those are created using COM_makesid() in lib-common.php. Basically, it's the date, the time plus some random digits.
bye, Dirk
Calendar Hacks
Posted on: 01/30/03 11:51am
By: Anonymous (Anonymous)
If you are going to be writing hacks for the Calendar, Here are some of the hacks I would like to see:
1. A way to show events in a list. Viewable by day, week, month, year, etc.
2. Tie Birthdays from the Profile and Contact plugin into the Calendar. (The Forum guys have a Profile extension that includes bdays).
3. Make Event Type show up when viewing event. You can currently assign an event type from a dropdown when you create an event, but that is the only time you see the event type.
4. Color code the Event Types.
5. Create Event Type filter so that only the event types chosen will show up on the calendar.
6. Have the event description pop up on mouseover of an event.
7. Recurring events
Advice on Hack I'm Going to Write
Posted on: 02/01/03 01:33am
By: twohawks
Sounds like a great hack! Good luck with it. I'll be happy to help test if you need it. I'll certainly use this hack.

Advice on Hack I'm Going to Write
Posted on: 01/09/06 06:37pm
By: Anonymous (BC)
Has there been any progress on this, or is there a way to do this now?