Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Edit Recurring Events & Change Cover

10 years 7 months ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 4
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

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!!

10 years 7 months ago
Licenses:

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.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 7 months ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 4
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

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

The following user(s) said Thank You: Susan, Adam
10 years 7 months ago
Licenses:

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.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 7 months ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 4
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

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);

To:
// 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);

Around Line 2001 Change:
$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));

To:
$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));

It does need access to Joomla core so you might need to modify the JPATH_BASE to suit your install. I do have plans for changing out the javascript alerts for nicer jQuery dialogs.

I have tested it pretty throughly and it works great! However, if you happen to find any errors, please let me know. This modification should only be attempted by advanced users. I included comments in all of my code so it would be easy to understand and/or modify.

This message has an attachment file.
Please log in or register to see it.

10 years 7 months ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 4
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

I have posted a short video on YouTube with the mod in action.
youtu.be/9v6SrzzreXg

10 years 7 months ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 4
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

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!

The following user(s) said Thank You: Adam
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW