Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [pugdog] Calendar Script - development.

Quote Reply
Re: [pugdog] Calendar Script - development. In reply to
I've made some changes to my logic, on displaying the calendars.

I've been looking a large number of calendars out there, many CPAN modules, and some ideas have merit. It's just odd no one has put something together in all this time (I guess like DMOZ/RDF stuff).

The change in this case, (and I might keep both sorts of functionality in) is to look at how the calendar/day was built.

It's less expensive, from a database call point of view, to call all events within a date range, at one time, then build the calendar day-by-day by reading through the block of returned results. This logic is similar to the group-by-date logic on the New page. The calendar is then built reading through this sorted hash of sorted hash values, inserting a "blank" page where no values are found.

It's a tad less "expensive" to handle the no-events exception in the code, rather than execute a build_day routine.

But, in order to allow dates/days and a days of events to be used on other pages, it "pays" to put in the logic (develop the system) to build-by-day so the "core" logic of the system uses "Events" as objects (the "stored" object), and assembles them into "days" which are then assembled into the calendar.

Each portion is template driven, and hopefully, it will be easy to pass in a template from any point to override the default set, for display on different pages, or inclusion into a "Today" type listing.

Also, I'm toying with storing "recurring" events in a different table, so it would mean two database calls, but it would make processing easier:

1) gather all fixed-date events
2) request all recurring events
3) sort recurring events into the event-hash based on the date-range parameters.

The problem with a recurring event, is it has no "date" parameters, so they have to be assigned when the event is requested. "Tuesdays", "3rd Monday", etc are not "dates".

this gets complex really, really fast, with all sorts of "exceptions", so it's still for a later release,

Again -- any suggestions or comments....


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Subject Author Views Date
Thread Calendar Script - development. pugdog 14885 Apr 29, 2003, 9:30 AM
Thread Re: [pugdog] Calendar Script - development.
pugdog 14267 Apr 29, 2003, 11:26 AM
Thread Re: [pugdog] Calendar Script - development.
jaltuve 14223 May 6, 2003, 4:18 PM
Thread Re: [jaltuve] Calendar Script - development.
pugdog 14227 May 6, 2003, 7:56 PM
Thread Re: [pugdog] Calendar Script - development.
pugdog 14160 Jun 8, 2003, 10:45 PM
Thread Re: [pugdog] Calendar Script - development.
pugdog 14078 Jun 17, 2003, 9:17 AM
Thread Re: [pugdog] Calendar Script - development.
webslicer 14124 Jun 18, 2003, 1:15 AM
Thread Re: [webslicer] Calendar Script - development.
pugdog 14117 Jun 18, 2003, 8:11 AM
Thread Calendar Script - suggestions
webslicer 14065 Jun 18, 2003, 9:05 AM
Thread Re: [webslicer] Calendar Script - suggestions
pugdog 14092 Jun 19, 2003, 9:56 AM
Thread Re: [pugdog] Calendar Script - suggestions
ccunet 14041 Jun 19, 2003, 7:27 PM
Post Re: [ccunet] Calendar Script - suggestions
pugdog 14033 Jun 20, 2003, 2:52 PM
Thread Re: [pugdog] Calendar Script - development.
pugdog 13961 Jun 27, 2003, 11:46 AM
Post Re: [pugdog] Calendar Script - development.
pugdog 13960 Jul 1, 2003, 9:20 AM
Thread Re: [pugdog] Calendar Script - development.
pugdog 13900 Jul 6, 2003, 9:24 PM
Thread LSQL for Timeline?
YoYoYoYo 13814 Jul 20, 2003, 6:50 AM
Thread Re: [YoYoYoYo] LSQL for Timeline?
pugdog 13694 Dec 1, 2003, 6:46 PM
Thread Re: [pugdog] LSQL for Timeline?
ccunet 13501 Apr 25, 2004, 7:11 PM
Thread Re: [ccunet] LSQL for Timeline?
pugdog 13507 Apr 25, 2004, 10:22 PM
Post Re: [pugdog] LSQL for Timeline?
ccunet 13430 Apr 26, 2004, 6:17 AM
Thread Re: [pugdog] LSQL for Timeline?
netnow21 12786 Nov 10, 2008, 9:10 AM
Post Re: [netnow21] LSQL for Timeline?
Andy 12808 Nov 10, 2008, 9:35 AM