From: <ze...@bo...> - 2005-02-10 01:36:32
|
i was looking for a solution where a client could publish an iCal file from their powerbook and have upcoming events parsed and listed on a webpage. i found this project which seems to sorta do this and alot more= . it's really well done, but over-kill for my needs. i hacked up the month view and associated template to get a close-to-desired effect, but it still is very calendar quantized (month, day, year centric). i really just want to lists the next so many events in a simple format. i'm starting to get a small handle on the project code but it's still imtimidating. any suggestions on how to approach this and maybe fork a really lite version... a simple iCal parser thingy? .scott |
From: Wesley M. <we...@we...> - 2005-02-10 04:58:51
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, You probably just want the parts of PHPiCalendar that parse the .ics file and create the Calendar object. Once you've got that, you can pull out individual items and display them however you want. Just use the files that are called by the display files (e.g. you want stuff like ical_parser.php in the functions directory) for your own version of day.php. I think that's the gist of things. Chad might be able to give you some more direction. Later, Wes On Feb 9, 2005, at 6:04 PM, ze...@bo... wrote: > i was looking for a solution where a client could publish an iCal file > from their powerbook and have upcoming events parsed and listed on a > webpage. i found this project which seems to sorta do this and alot > more. > it's really well done, but over-kill for my needs. > > i hacked up the month view and associated template to get a > close-to-desired effect, but it still is very calendar quantized > (month, > day, year centric). i really just want to lists the next so many > events > in a simple format. > > i'm starting to get a small handle on the project code but it's still > imtimidating. any suggestions on how to approach this and maybe fork a > really lite version... a simple iCal parser thingy? > > .scott - -- Wesley Miaw http://www.wesman.net/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFCCuoFQv4agqRAk2kRAl/nAKCQBj0Ciu5cMIz3EWk0ShOhoSsarACeMbBy 8bG3USae0QZSAYTlVX6jrYI= =Fjl7 -----END PGP SIGNATURE----- |
From: Alex J. <al...@ph...> - 2005-02-10 17:13:10
|
I think there's GREAT interest in this...Either it would show the next...say, 5 events, or perhaps something that would show, in text form, events for the next 2 or 3 days. there was traffic on this list a long time ago looking for such things, so, if even you don't officially fork the file, make your work available for download, please!! ---Alex Johnson ze...@bo... said: > i was looking for a solution where a client could publish an iCal file > from their powerbook and have upcoming events parsed and listed on a > webpage. i found this project which seems to sorta do this and alot mo= re. > it's really well done, but over-kill for my needs. > > i hacked up the month view and associated template to get a > close-to-desired effect, but it still is very calendar quantized (month= , > day, year centric). i really just want to lists the next so many event= s > in a simple format. > > i'm starting to get a small handle on the project code but it's still > imtimidating. any suggestions on how to approach this and maybe fork a > really lite version... a simple iCal parser thingy? > > .scott > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users= . > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dclick > _______________________________________________ > Phpicalendar-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel > Have you seen Phantom Citizen yet? http://www.phantomcitizen.net |
From: Chad L. <ch...@ch...> - 2005-02-10 18:11:45
|
It is fairly modular. If you know PHP arrays it is very simple. At the=20= end of ical_parser are some comment tags, uncomment the $master_array=20 and you will see our structure. Each page (day, week, month, ect) is=20 simply a different manipulation of this array. -C On Feb 9, 2005, at 6:04 PM, ze...@bo... wrote: > i was looking for a solution where a client could publish an iCal file > from their powerbook and have upcoming events parsed and listed on a > webpage. i found this project which seems to sorta do this and alot=20= > more. > it's really well done, but over-kill for my needs. > > i hacked up the month view and associated template to get a > close-to-desired effect, but it still is very calendar quantized=20 > (month, > day, year centric). i really just want to lists the next so many=20 > events > in a simple format. > > i'm starting to get a small handle on the project code but it's still > imtimidating. any suggestions on how to approach this and maybe fork = a > really lite version... a simple iCal parser thingy? > > .scott > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real=20 > users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dclick > _______________________________________________ > Phpicalendar-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel |
From: Ben F. <li...@hi...> - 2005-02-25 14:44:20
|
Chad Little wrote: > It is fairly modular. If you know PHP arrays it is very simple. At the > end of ical_parser are some comment tags, uncomment the $master_array > and you will see our structure. Each page (day, week, month, ect) is > simply a different manipulation of this array. ===Aim=== I'm also working on a kind of "phpicalendar lite" as mentioned previously on the list but I called it content management. I want to be able to generate a web page showing the next few events coming up with a title, description, start date and time, end date and time if applicable and which calendar they've come from. ===Problems=== I'm struggling a little with manipulating the master_array returned by ical_parser.php. It would make more sense in my head if I could get from the multidimensional format of the master_array which is something like... [20050222] => Array ( [1600] => Array ( [8D69CBD9-8664-11D9-8CFA-000D936C280E-RID] => Array ( [event_start] => 1600 [event_end] => 1700 [display_end] => [start_unixtime] => 1109088000 [end_unixtime] => 1109091600 [event_text] => Recurring+Event [event_length] => 3600 [event_overlap] => 0 [description] => [status] => [class] => [spans_day] => [location] => [organizer] => a:0:{} [attendee] => a:0:{} [calnumber] => 1 [calname] => exhibitions [url] => [recur] => Array ( [FREQ] => daily [INTERVAL] => 1 [UNTIL] => February 25 ) ) ) to something more like a flat table.... [8D69CBD9-8664-11D9-8CFA-000D936C280E-RID] => Array ( [event_text] => Recurring+Event [start_date] => 20050222 [end_date] => 20050225 [start_time] => 1600 [end_time] => 1700 [calname] => exhibitions ) This might be similar to what the draw_print function in functions/template.php does, but... well I don't understand it! My main problems are: 1) A recurring event only needs to appear once 2) I need to get an end date for recurring events 3) My skills with PHP arrays are very limited. ===Other Questions=== 1) What are the dependencies of the ical_parser.php file? Does it rely on any files other than init.incs.php, date_functions.php, draw_functions.php, overlapping_events.php and timezones.php? If not, can I use the functions directory on its own without the rest of phpicalendar in an entirely separate directory? 2) I'd really like to be able to associate images with events and I'm not sure how to achieve this. Perhaps I could create a directory of images with the directory name matching the UID of the events. Or perhaps I should generate a MySQL database from the .ics file with UIDs and fields for image paths. I could even create a table from the array I'm trying to create and store all the calendar data in the database to increase the speed of execution. There's a good chance I'm approaching this in entirely the wrong way. If so, please put me out of my misery! Thanks tola -- Ben "tola" Francis http://hippygeek.co.uk ---------------------------------------------------- COMPUTER SUPPORT for small businesses and home users http://tolatech.co.uk ---------------------------------------------------- |
From: Blaine C. <la...@us...> - 2005-02-25 18:35:27
|
There was a recently applied patch to the RSS feeds that allows you to get an arbitrary x days; if you're using PHP (as I assume you are), use MagpieRSS ( http://magpierss.sf.net ) to fetch the RSS feeds, and you have exactly what you're looking for, available at almost zero dependency cost within whatever code you're working on. If that still doesn't make sense, let me know and I'll post some running code. b. On Feb 25, 2005, at 6:43 AM, Ben Francis wrote: > ===Aim=== > > I'm also working on a kind of "phpicalendar lite" as mentioned > previously on the list but I called it content management. > > I want to be able to generate a web page showing the next few events > coming up with a title, description, start date and time, end date and > time if applicable and which calendar they've come from. > > ===Problems=== > > I'm struggling a little with manipulating the master_array returned by > ical_parser.php. It would make more sense in my head if I could get > from the multidimensional format of the master_array which is > something like... > > [20050222] => Array > ( > ... > to something more like a flat table.... > > [8D69CBD9-8664-11D9-8CFA-000D936C280E-RID] => Array > ( > ... > > ===Other Questions=== > > 1) What are the dependencies of the ical_parser.php file? Does it rely > on any files other than init.incs.php, date_functions.php, > draw_functions.php, overlapping_events.php and timezones.php? If not, > can I use the functions directory on its own without the rest of > phpicalendar in an entirely separate directory? > > 2) I'd really like to be able to associate images with events and I'm > not sure how to achieve this. Perhaps I could create a directory of > images with the directory name matching the UID of the events. Or > perhaps I should generate a MySQL database from the .ics file with > UIDs and fields for image paths. I could even create a table from the > array I'm trying to create and store all the calendar data in the > database to increase the speed of execution. > > There's a good chance I'm approaching this in entirely the wrong way. > If so, please put me out of my misery! > > Thanks > > tola |
From: Ben F. <li...@hi...> - 2005-02-25 20:44:47
|
Blaine Cook wrote: > There was a recently applied patch to the RSS feeds that allows you to > get an arbitrary x days; if you're using PHP (as I assume you are), > use MagpieRSS ( http://magpierss.sf.net ) to fetch the RSS feeds, and > you have exactly what you're looking for, available at almost zero > dependency cost within whatever code you're working on. Wow, I really hadn't thought of using RSS, what a good idea! What does MagpieRSS do with the feed exactly? Does it output an array? > > If that still doesn't make sense, let me know and I'll post some > running code. I'll have a proper look when I get chance but I will probably be back to ask for some hints at least! Also, can you think of any way of permenantly associating images with events in this way? Or at least a unique ID for each event so I can use that to refer to images with. Many Thanks for this tola -- Ben "tola" Francis http://hippygeek.co.uk ---------------------------------------------------- COMPUTER SUPPORT for small businesses and home users http://tolatech.co.uk ---------------------------------------------------- |
From: Greg W. <php...@gr...> - 2005-02-25 23:08:29
|
Running MagpieRSS, I noticed that the 'link' parameters don't seem to work. They come out ending with cpath= , rather than pointing to a particular event. Is that a problem with something on my end, or with PHPiCalendar? Maybe I'm misunderstanding the purpose of the link parameter. Greg Westin -- http://www.gregwestin.com Contact info: http://www.gregwestin.com/contact.php On Feb 25, 2005, at 12:35 PM, Blaine Cook wrote: > There was a recently applied patch to the RSS feeds that allows you to > get an arbitrary x days; if you're using PHP (as I assume you are), > use MagpieRSS ( http://magpierss.sf.net ) to fetch the RSS feeds, and > you have exactly what you're looking for, available at almost zero > dependency cost within whatever code you're working on. > > If that still doesn't make sense, let me know and I'll post some > running code. > > b. > > On Feb 25, 2005, at 6:43 AM, Ben Francis wrote: > >> ===Aim=== >> >> I'm also working on a kind of "phpicalendar lite" as mentioned >> previously on the list but I called it content management. >> >> I want to be able to generate a web page showing the next few events >> coming up with a title, description, start date and time, end date >> and time if applicable and which calendar they've come from. >> >> ===Problems=== >> >> I'm struggling a little with manipulating the master_array returned >> by ical_parser.php. It would make more sense in my head if I could >> get from the multidimensional format of the master_array which is >> something like... >> >> [20050222] => Array >> ( >> ... >> to something more like a flat table.... >> >> [8D69CBD9-8664-11D9-8CFA-000D936C280E-RID] => Array >> ( >> ... >> >> ===Other Questions=== >> >> 1) What are the dependencies of the ical_parser.php file? Does it >> rely on any files other than init.incs.php, date_functions.php, >> draw_functions.php, overlapping_events.php and timezones.php? If not, >> can I use the functions directory on its own without the rest of >> phpicalendar in an entirely separate directory? >> >> 2) I'd really like to be able to associate images with events and I'm >> not sure how to achieve this. Perhaps I could create a directory of >> images with the directory name matching the UID of the events. Or >> perhaps I should generate a MySQL database from the .ics file with >> UIDs and fields for image paths. I could even create a table from the >> array I'm trying to create and store all the calendar data in the >> database to increase the speed of execution. >> >> There's a good chance I'm approaching this in entirely the wrong way. >> If so, please put me out of my misery! >> >> Thanks >> >> tola > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real > users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Phpicalendar-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel |