I have just uploaded a new version of the calendar plugin. It is still very much a development version. This version works with elgg 0.7.
Suggestions or comments for improvement can be sent to the list.
I have just uploaded a new version of the calendar plugin. It is still very much a development version. This version works with elgg 0.7.
Suggestions or comments for improvement can be sent to the list.
Posted by ellen davis @ Plugins
You must be logged in to post a comment.
Site supported by Curverider Ltd - powered by the awesome Elgg
Comments
I don't have a demo site avialable. Here is a screenshot of the monthly view.
http://elgg.net/edavis/files/-1/16305/calendar-01.png
Each user and each community has a calendar. Each event has access restrictions placed on it - private, public, loggedin, community, group
Also, when you am logged in and looking at you calendar , you will get two links -
My Community Events - displays a monthly calendar of the events (which I have access) for all the communities to which I belong
My Friends Events - displays a monthly calendar of the events (which I have access) for all of my friends
Thank you for this great MOD.
I do get following error after installing it with your instructions
Warning: Missing argument 4 for calendar_get_events() in /var/www/vhosts/amosnet.de/httpdocs/friends/mod/calendar/actions.php on line 194
Any ideas?
Hmmm. Try setting $field4 = '0' in line 194 in mod/calendar/actions.php.
What version of PHP are you using?
Here it also complains about missing argument 3 for calendar_event_create() called at line 109 of add.php. Adding $event_id as 3rd argument on that line fixes the issue.
The fix you suggested worked well for the other problem, thanks! I'm using php5 on an ubuntu box.
By the way, great plugin!
I'm translating the plugin to portuguese and noted some problems:
[code=PHP]
if($locale = user_flag_get('language',$page_owner))
setlocale(LC_TIME,"$locale.utf-8",$locale);
else
setlocale(LC_TIME,$CFG->defaultlocale);
$start_date = strftime("%d %B %Y",$event->date_start);
$start_time = strftime("%H:%M",$event->date_start);
$end_date = strftime("%d %B %Y",$event->date_end);
$end_time = strftime("%H:%M",$event->date_end);
[/code]
Finally, I'm still having problems to translate all the things of activecalendar. It seems I have to write the array and call setMonthNames etc. every time, it's a little lenghty...putting it directly on activecalendar/source/activecalendar.php didn't work.
Cheers, and thanks again for the plugin!
Tried to export an event, but google agenda says:
Failed to import events: Unable to process your iCal/CSV file. The file is not properly formatted.
Don't know, maybe google is crazy :p
There will be some kind of import function too?
This plugin is a huge improvement on the original - thanks for rewriting the whole thing!
There are a couple of little issues:
1) Creating an event for a community produces the following error:
Warning: Missing argument 3 for calendar_event_create(), called in /home/sandpit/html/mod/calendar/add.php on line 109 and defined in /home/sandpit/html/mod/calendar/actions.php on line 320
2) When you click on your 'Community events' and 'Friends events' the following error occurs if you have no communities or friends:
Warning: Invalid argument supplied for foreach() in /home/sandpit/html/mod/calendar/actions.php on line 282
As soon as you make a friend or join a community the error disappears and all seems to be working fine.
3) Exporting an event is not yet working.
Cheers.
I think the "Missing argument 3" warning can be cured by changing line 109 of actions.php to function calendar_event_create($calendar_input,$action,$event_id=0) { (add =0 to make $event_id an optional argument since it is not needed when creating an event for the first time)
This is beginning to look really great :)
We're getting a persistent error with an invalid argument for foreach() - this is because your $results = get_records_sql call is returning false, and that false value is being passed down to the foreach function.
It's probably better practice to do something like:
if ($results = get_records_sql("... your query ...") ) {
// Code to execute if we've found something
foreach($results as $result) { /* etc */ }
} else {
// Optional code to run if no items were found
}
Hi Ellen,
You have to use setMonthNames and setDayNames every time you make a new activeCalendar(). I copied the gettexts etc to the actions.php near line 80. Also, it's necessary to do the same in activecalendar/data/js.php, but there you need to include require_once("../../../../includes.php") in order to have __gettext working. Also, the "Close Calendar" at line 29 is missing gettext (really <?php print __gettext ... ?>).
I noticed also that "Start Date Calendar", "Start and "End" are not translated near and below line 100 of actions.php.
Hi again, Ellen
It's necessary to create an "export" directory with 777 permission under the dataroot, but that's not in the INSTALL instructions (although it's obvious from the error message =).
I would like to point some suggestions of usability:
this is a nice improvement. i had the argument 3 and 4 errors but they were corrected by the suggestions above. I also have an error in event archive:
Warning: Invalid argument supplied for foreach() in /home/doggyblo/public_html/mod/calendar/archiveview.php on line 47
Hello, just found a bug with the export feature. The dates are formatted incorrectly. For example:
DTSTART;TZID=US/Eastern:200749T210000
Instead of:
DTSTART;TZID=US/Eastern:20070409T210000