How do I edit a series of events from the front-end once the event has been created.
Also.....How can I edit the cover photo for a set of recurring events? If I have an event the occurs every week it seems crazy to think that a user would have to add the cover photo to each event in the set.
Any help on this would be great!!
Hi, David.
Recurring events are independent from each other. So if you want add covers or edit - you need to do that separately.
no it's not crazy. There are situations when events have slight differences - or something changed suddenly (e.g event place). Or user wants to add different covers to recurring events.
So your only option is to edit them one by one.
It makes sense in some cases and not in others but to say it's not crazy is a severe understatement.
If a user creates a recurring event for the next year and then decides 8 weeks down the road that the start time needs to be changed then "crazy" is a good word to describe the situation. That user would have to independently edit the remaining 44 events to complete the series.
I am implementing my own system for letting the user decided to edit a single or event or all events in a series. IMO, this is something that should be included with JomSocial.
If anyone else needs the code, I can publish it here once I have completed it
Hi, David.
You may have point... as you're first user that complains about this feature.
You may request a feature by posting your idea here:
uservoice.jomsocial.com/forums/101561-jo...ial-feature-requests
Or implement it yourself.
It would be nice if you'll share your solution with other users.
Maybe some of them find it useful.
I implemented this feature myself. I did not want to modify any core files; unfortunately, this was not possible. The good news...only one JomSocial core file needed to be modified. Everything else is in the template files and the included php files.
My solution uses AJAX calls to perform the following functions:
** On Event Save (applies to all events in the recurring series)
- Latitude and Longitude is set for all events in the series (fix for this not happening for all events by default --possible bug--).
- Create event albums in the database for each event in the series (cover photos & stream photos).
* On Event Update (applies to all events in the recurring series AFTER the date of the event being edited.)
- Updates the database for each event in the series (configurable for each field in the ajax file).
* Set Cover For Recurring Series (applies to all events in the recurring series AFTER the date of the event being edited.)
- Added option in dropdown menu that appears when a recurring event has a cover photo present.
- Copies the image & thumbnail files to the cover photo album directory for each event (creates the directories if not present).
- Adds the image & thumbnail information to the database.
All of the files are included in the zip file below. You must modify "components/com_community/controllers/events.php" as follows:
Around Line 1694 Change:
$url = CEventHelper::getHandler($event)->getFormattedLink('index.php?option=com_community&view=events&task=viewevent&eventid=' . $event->id,false);// DETERMINE IF EVENT REPEATING
if ($event->repeat) {
$is_repeating = 1;
} else {
$is_repeating = 0;
}
$url = CEventHelper::getHandler($event)->getFormattedLink('index.php?option=com_community&view=events&task=viewevent&action=new_event&repeat='.$is_repeating.'&eventid=' . $event->id,false);$mainframe->redirect($handler->getFormattedLink('index.php?option=com_community&view=events&task=viewevent&eventid=' . $event->id,false),JText::sprintf('COM_COMMUNITY_EVENTS_UPDATE_NOTICE', $event->title));$mainframe->redirect($handler->getFormattedLink('index.php?option=com_community&view=events&task=viewevent&action=update_event&repeat='.$is_repeating.'&eventid=' . $event->id,false),
JText::sprintf('COM_COMMUNITY_EVENTS_UPDATE_NOTICE', $event->title));
I have posted a short video on YouTube with the mod in action.
youtu.be/9v6SrzzreXg
If anyone is interested, I wrote a JomSocial Plugin with no core hack required. Just finishing up the final details now and doing some tests.
I moved away from Javascript confirmations, all user input is now included with system messages.
Simply install it via the plugin manager, set the params and publish it!