Dan Livo
01-13-2005, 11:59 AM
Modification Request
Display calendar events from the next x days on a non-vbulletin page.
Lack of Success So Far
I've been trying to create my own hack that shows a table of the upcoming events (as on the index page if that option is set) on an external page. I haven't been having much luck so far and am looking for some guidance.
What's already been done by others (at vb.org)
From looking through this site, I find that Sharg has enlisted Colin F to do this exact hack as a service request (paid hack) - see https://vborg.vbsupport.ru/showthread.php?t=69184 . There is also a very basic example of exporting the latest calendar entries at https://vborg.vbsupport.ru/showthread.php?t=64584 (which isn't what I want: I want those that occur in the next 14 days, including whatever recurring events fall in that period).
What I've unsuccessfully coded
I've been trying to work from the code in index.php to recreate this in another page but with only the calendar output as returned in the $upcomingevents variable. I ended up with the attached file - which requires several php files, as does the index.php page. I would have preferred to avoid emulating the index.php script but since my knowledge of php isn't that good I didn't/couldn't just start coding from scratch. I managed to get the desired result on my local machine (running an offline trial copy of my site) but when I uploaded it to http://www.waitaraweb.com/forum/upcomingevents.php I get the following error:
Unable to add cookies, header already sent.
File: /home/waitaraweb/domains/waitaraweb.com/public_html/forum/upcomingevents.php
Line: 4
I don't know enough php to get past this...
What are my Options?
If someone could code this for me that would be great!
Otherwise any pointers as to what I'm doing wrong would also be a great help...
Display calendar events from the next x days on a non-vbulletin page.
Lack of Success So Far
I've been trying to create my own hack that shows a table of the upcoming events (as on the index page if that option is set) on an external page. I haven't been having much luck so far and am looking for some guidance.
What's already been done by others (at vb.org)
From looking through this site, I find that Sharg has enlisted Colin F to do this exact hack as a service request (paid hack) - see https://vborg.vbsupport.ru/showthread.php?t=69184 . There is also a very basic example of exporting the latest calendar entries at https://vborg.vbsupport.ru/showthread.php?t=64584 (which isn't what I want: I want those that occur in the next 14 days, including whatever recurring events fall in that period).
What I've unsuccessfully coded
I've been trying to work from the code in index.php to recreate this in another page but with only the calendar output as returned in the $upcomingevents variable. I ended up with the attached file - which requires several php files, as does the index.php page. I would have preferred to avoid emulating the index.php script but since my knowledge of php isn't that good I didn't/couldn't just start coding from scratch. I managed to get the desired result on my local machine (running an offline trial copy of my site) but when I uploaded it to http://www.waitaraweb.com/forum/upcomingevents.php I get the following error:
Unable to add cookies, header already sent.
File: /home/waitaraweb/domains/waitaraweb.com/public_html/forum/upcomingevents.php
Line: 4
I don't know enough php to get past this...
What are my Options?
If someone could code this for me that would be great!
Otherwise any pointers as to what I'm doing wrong would also be a great help...