Welcome to Geeklog, Anonymous Friday, November 15 2024 @ 12:36 am EST

Geeklog Forums

Advice on Hack I'm Going to Write


eccc

Anonymous
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?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

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
 Quote

Status: offline

twohawks

Forum User
Junior
Registered: 12/17/01
Posts: 33
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. Smile
 Quote

BC

Anonymous
Has there been any progress on this, or is there a way to do this now?
 Quote

All times are EST. The time is now 12:36 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content