| Issue 162: | Add/Edit/View/Delete events through a dialog-ish box | |
| 40 people starred this issue and may be notified of changes. | Back to list |
I want to use the calendar (btw great work) but I need to use a inline edition of the events, I've seen some jquery ui base edition in another jquery calendar based on this calendar. Have you in mind implement this option in the upcoming versions of the calendar, in that case it would be great ...
Nov 10, 2009
Project Member
#1
adamrs...@gmail.com
Nov 11, 2009
I mean the possibility of add or edit the events in the frontend of the calendar like the google calendar or the jquery week calendar
Nov 27, 2009
this has been something i've wanted for fullcalendar for a while. its sort of a lot of work, especially making everything easily themeable, but it will get done at some point. thanks for the suggestion. this is similar to what google calendar and icalendar do when you click on a day to add an event, or click on an event to view/edit its details.
Summary:
Add/Edit/View/Delete events through a dialog-ish box
Status: Accepted Labels: -Type-Defect -Priority-Medium Type-Enhancement
Dec 3, 2009
Issue 224 has been merged into this issue.
Dec 14, 2009
Hi there, I'm trying to do something like that myself, for a more or less rudimentary University Faculty class schedule builder. I've got the updating side done (php-mySQl), and was wondering, since you're already using jQuery's Droppable event, if it was possible to create some sort of lateral palette of events, pulled from a MySQL db, and drop them in the day cell. Alternatively, one could just do the usual dropdown list in the day-insertion thickbox or something. My main problem is that I have loads of different classes and lessons, so I have to have some sort of drilldown capability, so a simple dropdown list would be impractical. I'm going to give it a shot soon, if you're interested it would be great to have your opinion. Cheers Sacha
Dec 19, 2009
hi sacha, i'm planning on just allowing creation of new events, and editing of existing events. i don't plan on making a system where you can search/filter/drilldown/whatever a list of events to be added to the calendar adam
Dec 21, 2009
hi, do you have a tentative date when this feature will be implemented?
Dec 22, 2009
You probably want to take a look how they got the new event thing working http://www.redredred.com.au/projects/jquery-week-calendar/
Jan 8, 2010
Hi adamrshaw, some progress with this?
Jan 8, 2010
i could contribute what i did, based on input from http://www.redredred.com.au/projects/jquery-week-calendar/ however, you will need some php/... scripts to handle the backend updates
Jan 8, 2010
I did this using jQuery dialogs and some weird form action updating.. you could just use 2 forms instead. I stripped out some stuff to remove unnecesary complexity... (you will need a backend script to make this work of course)
Feb 6, 2010
Issue 321 has been merged into this issue.
Mar 15, 2010
Issue 382 has been merged into this issue.
May 3, 2010
@rieraraul: good try, was looking for something similar! @adamrshaw: could you make a branch for this development (let say fullcalendar-modal). The calendar without modal interactions is half complete. We could do it together!
May 3, 2010
moiseev.igor, I am looking for the same thing! I could help you too, I need something clean, and efficient.
May 3, 2010
@francois2oo86: This thread is very active, partially it is related to the staff discussed here https://code.google.com/p/fullcalendar/issues/detail?id=215
Sep 23, 2010
hello, I am inquiring on the status of this enhancement. Would really like to see it added. It's a really nice feature.
Dec 23, 2010
Hi all, As I stated on two ther bugs, you can just take my code at http://www.sokati.com/main/openSource as a simple start php mysql implementation. As it is right now (1.00) is perfect for the start of a project. I intent to keep this version free of any bugs. Best, Niels
Dec 31, 2010
Issue 774 has been merged into this issue.
Apr 4, 2011
I have a need for similar feature, but I'm not sure if it is good that this is implemented in the fullcalendar source. The functionality is very easy to create by combining the callbacks of fullcalendar with an another plugin for dialogs. But if the code is added to fullcalendar, the source will get bigger and messier and that is not a nice thing to maintain.
Oct 22, 2011
I forgot to mention that the example uses a popup dialog in which you can edit the event title or delete the event. Any suggestions, improvements are always welcome.
Oct 27, 2011
what is the default.inc.php file?
Oct 30, 2011
How to use php and mysql to save and edit date of selectable.html of fullcalendar ? thank you!!
Oct 31, 2011
what is the default.inc.php file?
Nov 1, 2011
i will post the contents of default.inc.php tonight
Nov 1, 2011
I'm not sure what you mean with selectable.html ... I used eventClick to edit (and save) an event. (i just now found out thta there is a select option. I will try that too.
Nov 1, 2011
Dear paul.wol: 1."selectable.html" is a file of demos of fullcalendar-1.5.2.zip. Download from here: http://arshaw.com/fullcalendar/downloads/fullcalendar-1.5.2.zip https://github.com/arshaw/fullcalendar/blob/master/demos/selectable.html 2.Please post "db_config.php" of fullcalendar_with_external_events_example.txt . Thank you very much.
Nov 1, 2011
ah, now i see it. With the select event you can add an event by clicking on a day ... the code to save an event is probably the same as the code i use in eventDrop or eventClick, i will try it tonight and post it.
Nov 2, 2011
You could put your code on Github or something similar, which would make code changes much easier. :)
Nov 6, 2011
I just wanted to post my stuff, to give another idea...
eventMouseover: function(event, domEvent) {
var layer = '<div id="events-layer" class="fc-transparent" style="position:absolute; width:100%; height:100%; top:-1px; text-align:right; z-index:100"><a><img src="../../images/editbt.png" title="edit" width="14" id="edbut'+event.id+'" border="0" style="padding-right:3px; padding-top:2px;" /></a><a><img src="../../images/delete.png" title="delete" width="14" id="delbut'+event.id+'" border="0" style="padding-right:5px; padding-top:2px;" /></a></div>';
$(this).append(layer);
$("#delbut"+event.id).hide();
$("#delbut"+event.id).fadeIn(300);
$("#delbut"+event.id).click(function() {
$.post("delete.php", {eventId: event.id});
calendar.fullCalendar('refetchEvents');
});
$("#edbut"+event.id).hide();
$("#edbut"+event.id).fadeIn(300);
$("#edbut"+event.id).click(function() {
var title = prompt('Current Event Title: ' + event.title + '\n\nNew Event Title: ');
if(title){
$.post("update_title.php", {eventId: event.id, eventTitle: title});
calendar.fullCalendar('refetchEvents');
}
});
},
eventMouseout: function(calEvent, domEvent) {
$("#events-layer").remove();
},
Jan 3, 2012
good idea of showing the edit and delete icons on mouseover, 'weightlo'. I'm going to use that, too. Thanks Paul
Jan 8, 2012
I did some further work on the edit popup. Now you can also input/change start- and endtime in this popup. For the popup i tried some jQuery timepickers, but i ended up with standard combo's. I use smarty to generate them. I have made some changes to the smarty html_select_time, so you have update this file in your smarty plugins folder. And there is the Aristo included, for a nicer popup. (came across that through Andrew Hamer-Adams, thanks Andrew ..) Paul
Jan 13, 2012
@Paul : I want to test your script but nothing is displayed.
Jan 13, 2012
Any errors ? Do you use all the code from my last post? which file/path are you calling in the browser? Look in firebug if all the incudes are succesfull
Jan 13, 2012
I will make a new standalone calendar zip file in which everything is integrated, to make it easier
Jan 13, 2012
I made a new zip file, there were some bugs in it... oops, my attachment storage quota exceeded ?
Jan 14, 2012
I deleted some earlier comments and files of me, but i stil can't attach something ... So i put it here: http://paulthedutchman.nl/files/calendar_standalone.zip for you to download. it's a complete fullcalendar/php/mysql application with event edit popup, colors and simple agendaview. I want to add support for repeating events in the edit popup and i'm thinking about a timeline view
Jan 14, 2012
I deleted some earlier comments and files of me, but i stil can't attach something ... So i put it here: http://www.paulthedutchman.nl/portfolio/?mi=113 for you to download. it's a complete fullcalendar/php/mysql application with event edit popup, colors and simple agendaview. If you change the name you have to change the paths in config.inc.php. And don't forget to make the mysql database I want to add support for repeating events in the edit popup and i'm thinking about a timeline view
Jan 16, 2012
Thank you with you for all these answers. I test that quickly.
Jan 16, 2012
I have this error : Warning: Smarty error: unable to read resource: "../view/cal.html" in /XXXXX/external/smarty/Smarty.class.php on line 1095 Warning: Smarty error: unable to read resource: "../view/cal.html" in /XXXXX/external/smarty/Smarty.class.php on line 1095
Jan 16, 2012
You left all the folders and contents like they were?
You could try to change this line in index.php:
$obj_smarty->display('../view/cal.html');
in:
$obj_smarty->display(FULLCAL_DIR.'/view/cal.html');
Jan 16, 2012
Ok that work ! Thanks for all ! Idea : that would be cool to be able to choose the name of the table in the database. PS : the link "go to agenda" pose the same problem. See you soon perhaps !
Jan 17, 2012
And add a language file ! :)
Jan 17, 2012
It`s one hour difference, must be something with the timesetting ... winter/summertime ... Op 17 jan. 2012 12:08 schreef <fullcalendar@googlecode.com> het volgende:
Jan 17, 2012
And i see an image missing, white_v ... in the popup. Perhaps also a path issue ... is it possible you send an url, so i can see it working? Or you could use firefox and firebug addon. Then you can check if the image isn`t loading...
Jan 17, 2012
i've uploaded a new zipfile with the new time selection and fixed some bugs. The dateselection isn't working yet ... http://www.paulthedutchman.nl/portfolio/?mi=113 for you to download. And i have put an example here: http://paulthedutchman.nl/calendar_standalone
Jan 18, 2012
I made a languagefile, i will try to put it online tonight or tomorrow Op 18 jan. 2012 10:22 schreef <fullcalendar@googlecode.com> het volgende:
Jan 18, 2012
Good idea to make the colors configurable and save in a table, i will work that out too.
Jan 18, 2012
The colors are in simple_colorpicker.js in the external folder
Jan 19, 2012
For configurable colors, a scroll menu would be cool ! no ? How you will make for the traduction of days of week text (or month) ? the words are in .js !
Jan 19, 2012
What do you mean with a scroll menu? Did you see an example somewhere? Did you get my latest zipfile? I updated it last night. In there is a language.js where you can change texts. If you put that file in your script folder and update cal.html and script.js, you can see your texts.
Jan 19, 2012
And you can look in config.inc.example for other configoptions
Jan 19, 2012
Can you put an langNL.js ? and I send you langFR.js ok? The choice of this file was choose in config
Jan 19, 2012
Perfect, thank you Op 19 jan. 2012 14:51 schreef <fullcalendar@googlecode.com> het volgende:
Jan 19, 2012
First i had it in the popup ..., i could make this configurable also. I like the color selectbox, i will try to make it Op 19 jan. 2012 14:43 schreef <fullcalendar@googlecode.com> het volgende:
Jan 19, 2012
Be careful : the color selectbox work with Firefox (and Explorer) but no with Safari I send you french and english language file.
Jan 19, 2012
J'ai découvert un bug ! Je te ferais une vidéo car mon anglais n'est pas assez bon
Jan 19, 2012
OOOPS sorry ;o) I answered in french ! I discovered a bug ! I'd make a video because my english is not good enough !!
Jan 19, 2012
Idea : add in config file the first hour (minTime), and last hour (maxTime) in agenda (and slotMinutes). Personnaly I use 7:00 to 20:00 with 15 in slot minutes.
Jan 19, 2012
I built in the language config and files and some other config options
Jan 19, 2012
still i can't attach files here, so i updated the file on my website, see some message above. Perhaps someone can provide a german language file...
Jan 20, 2012
We traduce in other languages when the project is finished, non ? ;o) german, spanish, italian, chinese ... :o)
Jan 20, 2012
English : 1= Database connection failed 2= Connect failed: in French : 1= Connexion à la base de donnée échouée 2= Connexion échouée :
Jan 20, 2012
In default_inc.php :
$locale = array('nl_NL.UTF-8', 'nl_NL', 'nld_nld', 'dut', 'nla', 'nl', 'nld', 'dutch', 'nl_NL.ISO_8859-1');
put it in language file ! ;o)
Jan 20, 2012
Traduced in french : Lang.Popup.saveButtonText = 'Valider'; Lang.Popup.updateButtonText = 'Mise à jour'; Idea : choose the name (or prefix) of the table in database (in config file).
Jan 20, 2012
For all : if you have this error : "Fatal error: Call to undefined function: mysqli_connect() in /homez.382/lefuretr/www/graphik2/config/db.config.php on line 15" You must pass your server in PHP5 with .htaccess
Jan 20, 2012
in config.inc.php i put it in config.inc.example, you have to put it in your config.inc.php
Jan 20, 2012
I will put it in the config.inc.php, maybe a javascript version in the language file... but maybe fullcalendar also has a local option ? the languagefile is javascript, i need locale in php as well
Jan 20, 2012
How traduce texts in view/cal.html ?
Jan 20, 2012
which texts do you mean?
Jan 20, 2012
I think at : <h3>Drag and drop</h3> an event from this list <h3>Add an event</h3> by clicking on a day in the calendar remove after drop Go to agendaview (simple, no styling) Go to timelineview (experimental) Hele dag Datum ......... we must all translate Can we put .php and not .html ?
Jan 20, 2012
that would be cool of put .php for generate easily an mysql query (for list of event for example)
Jan 20, 2012
Other idea (when we have an table for categories of colors) : In global view of agenda, have an selectbox on menu for only view the event of each color : either view "all", either view "red" only, either view "green" only ... A eventually the possibility of giving the access restricted to certain counts user. If you are in "red team", you cannot view green events. Good no ?
Jan 22, 2012
w..@aucirque.com, do you still have the time problem? you could try this: look at comment 10 on this page: https://code.google.com/p/fullcalendar/issues/detail?id=280&can=1&q=json&colspec=ID%20Type%20Status%20Milestone%20Summary%20Stars Let me know if it solves the problem
Jan 23, 2012
I will read this post and I make you a video of the problem this evening. I have more problem with the new version than with the old one Fabien
Jan 23, 2012
Here the video : http://www.youtube.com/watch?v=Wyu1BZcYluU Problem is not winter/summer hour !
Jan 23, 2012
ah, i see the problem! i will try to fix it tonight. I never tested making an event from the week view, so i didn't see this bug.
Jan 23, 2012
i fixed some bugs and put it online again: http://paulthedutchman.nl/calendar_standalone/ The datefields are not working yet
Jan 24, 2012
forgot to update the zipfile lastnight. here it is again: http://paulthedutchman.nl/files/calendar_standalone.zip
Mar 14, 2012
To Paul: is it possible to have the clean dump for the whole database? In your zipfile there is just the sql of the events table. thak you
Mar 14, 2012
For this version the events table is enough. I see i mixed up some files in the zipfile with files from the version i'm currently working on with multiple calendar support and more color possibilities ...
Mar 15, 2012
the calendar looks great . i search many days for this kind of calendar - with drag and drop .. with timeline for the day . i downloaded the zip and setup everything .. first of all i see that when i open the page , the calendar appear .. but when i refresh the page - it disappear . when i save some event .. it didnt inserted in database .. and i see some queries like "select from calendars" can you tell us some info about this situation thank you
Mar 15, 2012
@Paul,
thank you for your great work!
i want to connect the calendar with MAMP database. so i changed the database info in db.config.php, and the path in config.inc.php.
i can open the calendar and popup box, but i cant insert the data into my database. then i checked the bug with chrome, no bugs but the response of the 'cal_events.php' is "config.inc.php not found...".
can you tell me how to solve this problem?
Thank you !
Mar 15, 2012
Did you rename the config.example.php to config.inc.php ? ANd there might be a mixup with the name of that file, because lateron i changed it to config.php... Op 15 maart 2012 14:33 schreef <fullcalendar@googlecode.com> het volgende:
Mar 15, 2012
m...@vasilvasilev.eu, when you use Firefox and firebug addon you can see what goes wrong, tell me what error there is in firebug...
Mar 15, 2012
@Paul
Thank you for the reply.
i renamed the file, but i still cant insert the data when i add an event. the response of "cal_events.php?action=add" is :
event: {allDay:false, editable:false}
allDay: false
editable: false
success: true
Could you tell me what should i do?
Thank you so much!
Mar 16, 2012
syntax error Calendar.currentCalendar = ; index.php (row 41, col. 30) undefined script.js (row 8) Lang is not defined ; hourText: Lang.Popup.TimepickerHourtext, script.js (row 208)
Mar 16, 2012
I replaced the zipfile, could you try it with that one?
Mar 17, 2012
hey i m trying connect fullcalender with mssql and i m using c#.net ...... i want to load events from data base and display also wanna add event on database plz help
Mar 18, 2012
@Paul thank u ! i tried again. the repeated events don't work, but others are ok!
Mar 19, 2012
no it is the same for me :(
Mar 19, 2012
What is not working with the repeating events? Op 19 mrt. 2012 07:37 schreef <fullcalendar@googlecode.com> het volgende:
Mar 19, 2012
Did you keep the folder structure intact? The error indicates that the languagefile is not included... Op 19 mrt. 2012 08:37 schreef <fullcalendar@googlecode.com> het volgende:
Mar 19, 2012
Perhaps there are some problems when you use Internet Explorer, because there are several console.log's in script.js, delete them and try again... Op 19 maart 2012 18:22 schreef Paul Wolbers <paul.wolbers@gmail.com> het volgende:
Mar 19, 2012
i've made two screenshots . i hope you can open it :) http://i41.tinypic.com/dg1p3a.jpg - this is when i load the page http://i43.tinypic.com/24q5npl.jpg - this is when i reload the page .. refresh when i load the page and i make one event .. it didnt save in database in configs dir i setup the username .. password .. db everything . as i can see , when the page is reloaded .. the language is "false"
Mar 20, 2012
Ah, i see the problem. I must have mixed up some files. That version is the version i am working on currently. That is the multicalendar version... but not complete... I have uploaded a new zipfile with the version that is as good as bugfree. Www.paulthedutchman.nl/files/calendar_standalone.zip Op 20 mrt. 2012 07:24 schreef <fullcalendar@googlecode.com> het volgende:
Mar 21, 2012
the repeating events can't show correctly. i checked the database, the date_end is the same as date_start. so the events can't repeat...
Mar 21, 2012
pf .. now it is ok with refresh and loading .. but still i cannot insert event in database . just downloaded the zip , change the username password and database in db.config.php .. and in other two configs - changed the folder and link to localhost/calendar .. nothing else :(
Mar 21, 2012
m...@vasilvasilev.eu, And you didn't forget to make the database? :o) Any errors in the php errorlog ?
Mar 21, 2012
with repeating events i mean a moreday event. When you resize an event the enddate is further than the startdate, when you set start and endtimes i call that a repeating event. By the way, the date pickers in the popup are not working yet, i didn't have time to do that...
Mar 21, 2012
I did an installation from scratch, like you did and everything is fine.
in config.php set the path to your htdocs folder, set the path to localhost,
define('FULLCAL_DIR','e:/xampp/htdocs/kaltest2');
define('FULLCAL_URL','http://localhost/kaltest2');
define('EXTERNAL_URL','http://localhost/kaltest2/external');
make a new database,
in db.config.php set the database,
if($_SERVER["HTTP_HOST"] == 'localhost') {
$str_hostname = 'localhost';
$str_username = 'root';
$str_password = '';
$str_database = 'kaltest2';
}
and insert the sql from 'mysql table.sql'
Mar 22, 2012
hm very strange :) at home i am on ubuntu and everything is working .. at work i am with windows 7 and it is not working :) thank you for the support :)
Mar 22, 2012
I will try it tomorrow on my windows 7 pc at work...
Mar 23, 2012
the version on paulthedutchman.nl works on Windows 7 also. I made a new zip from the files and updated it on paulthedutchman.nl/files/calendar_standalone.zip There was a slight difference in the filesizes, so i must have mixed up the versions, sorry for that... Now everything should be fine
Mar 27, 2012
Hello Paul, The last version does not work either here. The calendar remains virgin. ++
Mar 27, 2012
any errors? Are you forgetting something? I made a screencast: http://screencast.com/t/GdbHd5MdJ
Mar 29, 2012
hello! your new version works well! thank you for that! i want to add some fields to the event, like: description, place... i dont know which part of code should be changed. Could you tell me some info about that?
Mar 29, 2012
you can add fields in cal.html. the title field is also there: <textarea cols="30" rows="6" id="edited_title"></textarea> Give them an id and search for 'edited_title' in script.js These are the spots where you have to add your new id's ... (with some copy /paste you should manage it. And ofcourse in cal_events.php you have to add some lines, and add columns to the events table...
Apr 4, 2012
Hello Paul, When the date pickers work ? Thanks for all :o)
Apr 5, 2012
Ok, i made a start with it:
Edit some things in script.js:
$( "#datepicker_startdate" ).datepicker({
dateFormat: 'dd/mm/yy'
});
$( "#datepicker_enddate" ).datepicker({
dateFormat: 'dd/mm/yy'
});
add following lines in addEvent:
// is a date selected in the datepickers, then use those dates
var dp_startdate = $( "#datepicker_startdate" ).datepicker('getDate');
var dp_enddate = $( "#datepicker_enddate" ).datepicker('getDate');
if(dp_startdate !== null && dp_enddate !== null) {
start = dp_startdate;
end = dp_enddate;
}
before:
if($('#allday_checkbox').is(':checked')) {
var startdate = Date.parse(start) / 1000;
var enddate = Date.parse(end) / 1000;
} else {
var startdate = Date.parse(start.format('mm/dd/yyyy')+ ' ' + $('#timepicker_starttime')[0].value + ':00') / 1000;
var enddate = Date.parse(end.format('mm/dd/yyyy')+ ' ' + $('#timepicker_endtime')[0].value + ':00') / 1000;
}
add following lines in onClickEvent:
$( "#datepicker_startdate" ).datepicker('setDate', dateFormat(Date.parse(event.date_start),'dd/mm/yy'));
$( "#datepicker_enddate" ).datepicker('setDate', dateFormat(Date.parse(event.date_end),'dd/mm/yy'));
before:
$('#timepicker_starttime')[0].value = event.time_start.substring(0,5);
$('#timepicker_endtime')[0].value = event.time_end.substring(0,5);
and following lines in updateEvent:
// is a date selected in the datepickers, then use those dates
var dp_startdate = $( "#datepicker_startdate" ).datepicker('getDate');
var dp_enddate = $( "#datepicker_enddate" ).datepicker('getDate');
if(dp_startdate !== null && dp_enddate !== null) {
event.start = dp_startdate;
event.end = dp_enddate;
}
before:
if($('#allday_checkbox').is(':checked')) {
var startdate = Date.parse(event.start) / 1000;
var enddate = event.end !== null ? Date.parse(event.end) / 1000 : startdate;
event.allDay = 1;
} ....
Apr 5, 2012
and in onSelectEvent:
$( "#datepicker_startdate" ).datepicker('setDate', start);
$( "#datepicker_enddate" ).datepicker('setDate', end);
before:
var curr_hour = start.getHours();
var curr_min = start.getMinutes();
Apr 9, 2012
hello Paul . Just an idea for you . In calendar , when you make new event for example from 10:00 till 11:00 , if there is another event in this time , you should not be able to make a new appointment because you are busy in this period :) am i right :)
Apr 10, 2012
and .. now i see something . in IE i cannot add an event , only to updade . When i click with the mouse on the calendar , the form didnt appear . in firefox is ok .
Apr 10, 2012
Good idea, i will make that too Op 10 april 2012 07:43 schreef <fullcalendar@googlecode.com> het volgende:
Apr 10, 2012
about the problem in IE, i think there are some console.log's in the script.js ... IE can't handle them. When you delete these from the code it should be alright
Apr 10, 2012
yes that was the problem, i have updated the zipfile on my website. you just have to update script.js in the script folder
Apr 11, 2012
aha .. you remove "console.log('select')" from the function :)
now it is ok .
Apr 12, 2012
hm , i tried $_SESSION['user_id'] = "vasilev"; i can only create event with numbers .. $_SESSION['user_id'] = "123456789101211"; Is there any other settings for user_id?
Apr 12, 2012
Hi there, I''ve tried to configure the "calendar_standalone.zip", it does work well but I've experienced the two following issues: + When I create an event longer the a day,on the calendar is shown only the the first day and when I expand it, the event time changes + When I add an event from the dran&drop, the events appears into the day before the one i've picked. Thank you in advance Emiliano
Apr 12, 2012
vasilev, $_SESSION['user_id'] has to be a number, because it's an INT field in the database. When you don't want multiple user support, you could delete all the user_id stuff in the cal_events.php ... I didn't have time to make the login for multiple user support..
Apr 12, 2012
Emiliano, did you download it this week? In the latest version i made the datepickers work... is it possible that you make a screencast? So i can see what's going wrong?
Apr 15, 2012
i made it working :) when it is with this brakes '' it is not working but with this "" - yes :) $_SESSION['user_id'] = "vasilev" ;
Apr 16, 2012
That should not make any difference. But when it works, it works ... :o) Op 15 april 2012 22:49 schreef <fullcalendar@googlecode.com> het volgende:
Apr 17, 2012
hm .
i changed cal_event.php the start and end time , to be one not - start_date and start_time ..
$str_query = 'SELECT *, event_id as id, date_start as start, date_end as end ...
$str_query = 'INSERT INTO events (title, user_id, color, date_start, date_end, allday) VALUES ("'.$_POST['title'].'",
"'.$_SESSION['user_id'].'",
"'.$_POST['color'].'",
"'.date('Y-m-d H:i:s', $_POST['date_start']).'",
"'.date('Y-m-d H:i:s', $_POST['date_end']).'"'......
everything is working - create event , drag event , resize event .. but onclick event - there is no form popuped .. and i cannot understand why :)
can you please help me .
Apr 17, 2012
i had the dates and times split up, because i thought that was easier, because in the javascript the date is also separate from the time. I think you have to do more changes... why did you want to change that in the database? If you use firefox with the 'firebug' addon you can probably see what goes wrong... php errors come in the php errorlog and firebug is easy to see js errors. that the popup is not showing is probably because of a js error ... Op 17 april 2012 11:11 schreef <fullcalendar@googlecode.com> het volgende:
Apr 17, 2012
because there are many fields in database . i delete the color field too . One color is enough :) but other problem .. i setup in script.js one color .. in php it is other :) i search for color 3366cc .. but nothing . when you want to check in some period of time if there is other event .. i check it like this : $query = "Select * from events where date >= '$next_time' and date <= '$starttime' and approved = 'yes' and user = '$selecteduser' LIMIT 1"; if there is two fields for start date and start time .. you have to use function to concatinate them . If there is only one - it is easier :) i will see what is wrong and write here .
Apr 17, 2012
- for the default color -> in fullcalendar.css :
.fc-event-skin {
border-color: #36c; /* default BORDER color */
background-color: #36c; /* default BACKGROUND color */
color: #fff; /* default TEXT color */
}
- for the problem with onclick event -> in script.js there is time_end and time_start .. but i delete the rows from db , so in query i added this in cal_event.php :
$str_query = 'SELECT *, event_id as id, DATE_FORMAT(date_start, "%H:%i:%s") as time_start, DATE_FORMAT(date_end, "%H:%i:%s") as time_end, date_start as start, date_end as end FROM events where user_id = "'.$_SESSION['user'].'" ';
May 21, 2012
Hey not sure if it might interest anyone, but I've hacked together a simple Rails app using jQuery dialogs for creating / editing events: https://github.com/vtatai/rails3_fullcalendar
May 21, 2012
Thanks, i will check your code if its helpful to me. Op 22 mei 2012 03:20 schreef <fullcalendar@googlecode.com> het volgende:
Jun 19, 2012
i have create a small version of your calendar_standalone. without smarty, timeline etc. only the basics. i think it is better to understand how fullcallendar works with a database. Life Example: http://ne-xt.de/web_downloads/calendar_standalone_simple/ Download: http://ne-xt.de/web_downloads/calendar_standalone_simple.zip
Jun 19, 2012
thank you for sharing. i think you are right, it might be easier to understand. I 'm so used to work with smarty that it's all clear to me.. Can i use your german languagefile?
Jun 19, 2012
yes no problem it is open source .
Jun 28, 2012
selfcomm...@gmail.com, thanks for share it, but i have a problem adding events, have u solved that? thanks
Jul 5, 2012
I'm trying to fix timezone issues for some people. Did someone succeed in correct behaviour with timezone offsets? And how did you do do that...
Aug 15, 2012
@paul, Could u update the link to download ur standalone calendar, it is broken. Also how can u save events from a external event list.
Aug 15, 2012
Thanks for letting me know. I fixed it.
Aug 16, 2012
Thanks Paul.
In default.inc.php there is "$locale = array('nl_NL.UTF-8', 'nl_NL', 'nld_nld', 'dut', 'nla', 'nl', 'nld', 'dutch', 'nl_NL.ISO_8859-1');". Why don't put it in language file ?
Aug 16, 2012
@paul, The file has an invalid archive directory and it wont download. Could u fix this please.
Aug 16, 2012
@Walter : I don't have any problem with zip file ! Use this link : http://paulthedutchman.nl/files/calendar_standalone.zip
Aug 18, 2012
i' m using js languagefiles, $locale is needed on php side, so it wouldn't work when it is in the js languagefile. For one line of code i didn't want to make a php languagefile too. Perhaps when there are more language related configoptions ...
Aug 19, 2012
So
//$locale = array('fr_FR.UTF-8', ...
//$locale = array('de_DE.UTF-8', ...
Aug 21, 2012
Its working, Thanks Paul. By any chance would u be able to upload code for a basic calander which can drag and drop external events to a database.
Aug 22, 2012
Walter, what do you mean by external events?
Aug 22, 2012
Using the external-events demo from fullcalander. I want to be able to save event1, event2, etc to a database when dragged to a date.
Aug 22, 2012
That should work, check the example calendar http://paulthedutchman.nl/calendar_standalone/ Op 22 aug. 2012 12:11 schreef <fullcalendar@googlecode.com> het volgende:
Aug 22, 2012
Are u able to use your calendar with a localhost
Aug 22, 2012
is there any way of viewing the calander without an internet connection. Im using dreamweaver
Aug 22, 2012
install xampp, start xampp, put the calendarfolder in ../htdocs/, and type in your browser: localhost/calendarfoldername. and check config.php if the paths are correct
Aug 23, 2012
Ive tried that but the calander went show up because the javascript files are linked to the googleapis web address. Where abouts in the code can i change the javascript files "jquery-ui.min.js" , "jquery.min.js" , "jquery-ui.css"
Aug 23, 2012
I think the files are in my zipfile too. And otherwise you can download them from jquery.com Op 23 aug. 2012 10:54 schreef <fullcalendar@googlecode.com> het volgende:
Sep 8, 2012
I think i managed to fix the timezone issue. Please test it (and let me know if it's still not correct for you) on paulthedutchman/calendar_standalone. I also updated the zipfile on http://www.paulthedutchman.nl/portfolio/?mi=113
Sep 16, 2012
I'm doing a calendar program. I want when I click on the link to go to the desired date. How do I make. If you have an idea I'd appreciate if you send an email to haydardarilmaz@hotmail.com.
Sep 17, 2012
you mean when you click on an event? then you want to go to the dayview? if possible it' s very difficult ...
Nov 1, 2012
I face one problem like i want to add select box when click on calender with resource day view but it display html in to caleder event so, what can i do for display select box Please help me, Thanks in advance for help
Nov 1, 2012
I do not understand what you mean, can you explain some more ?
Nov 28, 2012
hello , is there any way to add some limit of events for the day and one button - see all .. because when you add more events - the square with the events for the day becomes big and somehow it is a little bit ugly ..
Dec 1, 2012
I think that will be difficult to achieve, but everything is possible. It has to be hacked into fullcalendar.js. an easier solution is to truncate the eventtitles to 50 chars for example... Op 29 nov. 2012 08:36 schreef <fullcalendar@googlecode.com> het volgende:
Jan 23, 2013
hello , i am using your demo application in my rails application , its working fine for adding , updating and deleting events but the problem is when i click delete button its deleting event along with its editing model box (the same view like when we updating the event) i am using coffescript ... please help me
Jan 23, 2013
ok i fixed this issue ..
what happend is i had to return false from onMouseoverEvent ajax call . thank you for this code it helped me alot .
here is my coffeescript code :
onMouseoverEvent = (me, event) ->
if event.id
$.ajax
type: "DELETE"
url: '/'
success: (html) ->
#$("#dialog:ui-dialog").dialog "destroy"
$("#calendar").fullCalendar "removeEvents", event.id
false
Jan 23, 2013
hello can we display this fullcalendar in 12 month view , i mean i need to display all months at the same place and also when we delete it needs to ask confirm message . if so can any one tell how to do it
Jan 23, 2013
ratna, in my current version i have the delete button in the dialog because i also had other problems with the mouseover delete button, but perhaps the return false fix would fix those problems.. But i think i keep the delete button in the dialog. a confirm message must be possible. I will come back on that. Paul
Jan 23, 2013
ratna, this would be the easiest way of getting a confirm box:
var okClicked = confirm('are you sure?');
if(okClicked) {
// the ajax request
}
Feb 6, 2013
how to post data into database from dialog box
Feb 8, 2013
abishek,you can download my files on my site: www.paulthedutchman.nl/portfolio/?mi=113 and check out how i do it
Feb 11, 2013
Hi this is khushi, Am using the fullcalendar with add/delete events. the problem is first time when i click on any day the pop up comes and i will add my event and save. next time if i select any other and try adding event it gets added to first date. after that how many ever times i try to add it adds to initial clicked date. Help me in solving this please.
Feb 11, 2013
Paul , can you help me to understand something ..
i try to modify the css of the boxes in the calendar where events are displayed .
when i modify fullcalendar.css and :
.fc-event-skin { background-color: #4d657c; color: #fff; font-weight:bold; border-radius:3px; box-shadow:inset 0 0 5px #000000;}
you can see something strange - if you put for example border:5px , there are two divs one in other . I want to be only one div .
i search fc-event-skin in fullcalendar.js and in one place i see this <div class="fc-event-skin something"><div class="fc-event-skin something"></div></div>
i delete the secont fc-event-skin but .. again i see two divs with css settings of fc-event-skin ..
Feb 12, 2013
Vasilvasilev, what is it that you want to achieve? Maybe i can help you with that.. It looks like the fc-event-skin class in the inner div doesn't have purpose there, when i get it out the look of the events stay the same, but Adam must have had a reason to do that.
Feb 12, 2013
Khushi, when you add the event, it is shown on the calendar immediately like it should, or do you have to refresh the page? Sounds like something goes wrong in the save action or in the javascript callback. Did you change something to the script.js ? Is it somewhere online so i can see? Are there any errors? with Firefox you can debug with the addon 'firebug'. Look at the console tab in firebug for errors.
Feb 12, 2013
i try to give a border - 1 or 2 px of the event . but when i give it in fc-event-skin - there is no border . so i tried to give inner shadow and padding 3px and i see this shift
Feb 13, 2013
Vasilvasilev, You are right, it's a bit strange. But you could use the !important, like this: border: 1px solid gray !important; border-radius: 3px;
Mar 12, 2013
hi , it is the same , there is shift again . i use box-shadow: inset 0 0 5px #000 , so it is ok for now :) i have written before for the problem when there are more events in one day and in month veiew it is not so good . do you make something about it
Apr 2, 2013
I also included location and description in the dialog (and repeating events (daily and weekly are working yet)) check it out: http://www.paulthedutchman.nl/portfolio/?mi=113
May 9, 2013
is it possible to initialize calendar only in week view - not month or day ?
May 22, 2013
You can do that in the fullcalendar config. If you use my calendar solution, mentioned above, you can set options in configs/config.php
Aug 13, 2013
(No comment was entered for this change.)
Labels:
-Type-Enhancement Type-Feature
Aug 15, 2013
Issue 1277 has been merged into this issue.
Sep 30, 2013
How to get different color for same days event using full-day calender.
Aug 14, 2014
I have a problem with the calendar, will you help me with this error? Fatal error: Call to a member function display() on a non-object in /home/clinic/public_html/XXXXXXXXXXXXXX/calendar2/index.php on line 26
Aug 16, 2014
Before that line you have to put global $obj_smarty; or $obj_smarty = new Smarty();
Aug 16, 2014
My calendar with edit dialog, android app and more is for sale now on codecanyon. http://codecanyon.net/item/fast-easy-calendar-with-app/8498020?ref=wolberspl
Sep 5, 2014
With jQuery UI removed in the latest v2.1.1 release of FullCalendar, how much relevant is this issue for FC development? I propose to close this as "won't fix" and leave it to using implementations to provide the UI for adding/editing events.
Jan 6, 2015
Issue 2392 has been merged into this issue.
Feb 15, 2015
Is there a way to populate the external events from a table of its own ? such as [Sales Team] --------------[Sales Executive 1] --------------[Sales Executive 2] --------------[Sales Executive 3] [Field Engineers] --------------[Field Engineer 1] --------------[Field Engineer 2] --------------[Field Engineer 3] ...etc.. Maybe populate 2 Drop Down Boxes to populate the data and create the external events Drop Downs ----------------------------------- Is there a way to populate an event (In Projects) to have the Job cards individually populated behind it in the same fashion so one event links to the employees and therefore you end up with a 360' view where if you change the event it spills down to the chain and moves it accordingly. Thanks and appreciate some light on this. TT
Aug 21, 2015
Discussion for this issue has moved to the following URL: https://github.com/fullcalendar/fullcalendar/issues/433 This is because Google Code is shutting down. Apologies if you are being pestered with these notifications. This is a one-time event. Happy coding, Adam
Status:
ExportedToGithub
|
|
| ► Sign in to add a comment |