FullCalendar jquery plugin: Move events between 2 calendars on the same page - php

Edit: This is for the FullCalendar jquery plugin(http://arshaw.com/fullcalendar/).
Is there a way to move an event from one calendar(in month mode) to another calendar(in month mode) that are both on the same page? I know there is a demo on the fullcalendar home page that shows dragging events onto a calendar, but when you try to drag an event off the calendar onto another calendar, this does not work. The event gets hidden behind the calendar container element. Any ideas on how to get something like this to work? Thanks.

this issue http://code.google.com/p/fullcalendar/issues/detail?id=550, though not yet implemented, will handle this.

Related

Update MySQL Database with information from drag-and-drop event

I am using this template to build a website for a church.
The church wants a really good calendar entry point to add events.
With the calendar on the current template it's nice and simple and you can drag the events onto the corresponding date. What I need is a way to get the date where the event has been dragged onto so I can update the MySQL database.
Here is the link to the direct calendar http://usman.it/themes/charisma/calendar.html
The code for showing the calendar is just
<div id="calendar"></div>
Basically the calender is loaded through javascript.
If you take a look at the charisma.js inside the themes folder you should be able to see that the calendar will be invoked for example as follows,
$('#calendar').fullCalendar({ << some options here >> });
you can go through the documentation for the full calendar at the following site :
http://arshaw.com/fullcalendar/
I guess you want to use datepicker, see:
http://jqueryui.com/datepicker/#inline
Since you're usig draggables (jquery), you can hook into their events to collect the data: http://jqueryui.com/draggable/#events
check out the api documentation for the possiblities: http://api.jqueryui.com/draggable/

jQuery UI Datepicker - Being able to pick day or month

I'd like to know if there is any way to be able to select a whole month in jQuery UI's Datepicker while still being able to select a single day.
I tried 'hacking' it by adding an onClick event to the title div after page load, but switching months seems to completely replace the div, thus losing the onClick.
Are there any other solutions? Or maybe an alternative which offers this option?
Your onClick event should be enough. You just need to use a jQuery event handler that works for dynamic links.
If < jQuery 1.7, use: live()
Else If >= jQuery 1.7, use: on()
If you don't necessarily need it to happen in one datepicker, it might be less confusing to have two of them. Use one to select the start date, and use the other one to select the end date. Once the dates are selected, you will need validation to be sure the selected end date is not before the start date (assuming you want that behavior).
To convert jQuery date picker into mont picker will leads to you bulky code. There are many ways to do this the best one is to hide date blocks by a function over riding method. Any way you can use this plugin for month / year picker.
http://lucianocosta.info/jquery.mtz.monthpicker/
i thing you can but Datepicker in div id="anything"
then use live event click like this without hacking any original code
$("#anything .ui-datepicker-month").live('click',function(){
do any thing :) ;
});
I think this has already been posted here
jQuery UI DatePicker to show month year only
very similar but same effect essentially any date selected in the month displays the month only

PHP: Match a specific date to a recurring iCal rule

I need to build a simple calendar to embed in my PHP application.
Basically I have a bunch of recurrent events whose iCal recurrent rule (rrule) is known (e.g.: "FREQ=MONTHLY;INTERVAL=2;BYDAY=SU" or "FREQ=WEEKLY;BYDAY=SU").
Basically I need a function that given
_ an event iCal rrule
_ a certain day (e.g. 04/10/2011)
returns a boolean telling me whether the event is on at that date.
Obviously I can build it myself but it would take ages: is there any reliable library already available for that?
Thanks,
Dan
Although I am at the end of my own calendar project and I am not using iCal, perhaps this will help.
My own experience is that I could not find any sort of library and I coded my own backend from scratch.
For the front-end, I would urge you to use FullCalendar, it is an amazing calendar with what you can do with it. All you need to then, is concentrate on the backend.
For the db, I would go the route of having only 1 database row per event and when that event is modified, if it is recurring then you amend the existing event and create a new event with the change.
For the back-end logic, in conjunction with fullcalendar it gives you a window to work with. Within this window, I would then work out when the event occurs and then show, if the event is recurring to then work out when it should be shown on the calendar. It can get a bit complex but you can do it.
I'm attaching pics of what I have done, sadly this project isn't open source.
Add New Recurring Event
Calendar with Recurring Events
Amend Recurring Event
Agenda List View
Cheers

PHP Jquery Calendar Widget

OK, this sounds simple and or like something that should have probably been done a million times but i cant find an example.
I need to put a small calendar widget on a page that highlights dates if matching a date field from mysql. If user clicks this date go to a page and pass a variable like the date clicked?
Im sure this should be able to be done with jquery (datepicker maybe) and php fairly easy but im stumpped?
Any direction would be fantastic.
Try this from YUI Library

Post a event to application wall on facebook

the basic idea is, I created a application of which users will become fans and get the latest and greatest events from.
For that I will need to post a event to the wall page of the application itself.
Creating a event is not a problem (I'm using PHP5):
$event_id=$facebook->api_client->events_create(json_encode($FB));
But I couldn't find any reference on how to publish a wall entry for that.
This would only show up in the "event" tab
I tried using stream_publish - which works fine, but again I couldn't find a way to create a event.
Any hints would be appreciated.
create an event and then publish stream with a link to that event ? i dont think u can post events directly to wall
My hubby just figured it out -- because I was trying to gooogle the same answer! Create your event from your wall! (There is an event button right there with the link/picture buttons, where you update your status.)
From that event button you fill in the minor details - once it's created, you can go in and edit to add more details.
Here lies the answer create event

Categories