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.

Two Users can't create events with same title location and start and end date.

1 year 9 months ago
  • Teddy's Avatar
    Topic Author
  • Teddy
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Licenses:
JomSocial Active

When two different users create an event with the same title , location and start and end date I get the error:
"Event with the same title, location, date, and time is already been taken."

Is there a way to allow users to create events with the same title, location and start and end date without modifying core code.

1 year 9 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Teddy,

I am sorry this is not possible, you need hack the code for it..

if you want you need open this file components/com_community/controllers/events.php and remove this code :

// @rule: Test if the event is exists
        if ($model->isEventExist(
            $event->title,
            $event->location,
            $event->startdate,
            $event->enddate,
            $eventId,
            $event->parent
        )
        ) {
            $validated = false;
            $mainframe->enqueueMessage(JText::_('COM_COMMUNITY_EVENTS_TAKEN_ERROR'), 'error');
        }

thank you!

1 year 9 months ago
  • Teddy's Avatar
    Topic Author
  • Teddy
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Licenses:
JomSocial Active

Ok Great thank you so much for the quick response :)

1 year 9 months ago
  • Teddy's Avatar
    Topic Author
  • Teddy
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Licenses:
JomSocial Active

Oops I don't see the code in the controllers/events.php but I do see it in ../models/events.php
I assume changing it there will work ok.

Thanks

1 year 9 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Are you sure?

Attachments:
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