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.

Event Time Function

10 years 4 weeks ago
  • James's Avatar
    Topic Author
  • James
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Licenses:
JomSocial Expired

To make my site more interesting to guests, I need to register past events, but presently, this is not possible. During event creation, there is an alert:

{You cannot create event in the past}

Is there an easy way to backdate the event time function or to remove it completely?

Thanks.

10 years 4 weeks ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi
Can you replace the code at root/components/com_community/controller/events.php at line no 1632

 if (CTimeHelper::timeIntervalDifference($now->toSql(true), $event->enddate) > 0 && !$isToday) {
            $objResponse->addScriptCall('__throwError', JText::_('COM_COMMUNITY_EVENTS_ENDDATE_GREATER_ERROR'));
            $objResponse->sendResponse();
 }
replaced by
 /*if (CTimeHelper::timeIntervalDifference($now->toSql(true), $event->enddate) > 0 && !$isToday) {
            $objResponse->addScriptCall('__throwError', JText::_('COM_COMMUNITY_EVENTS_ENDDATE_GREATER_ERROR'));
            $objResponse->sendResponse();
 }*/

and also at at root/components/com_community/controller/events.php at line no 1927
if (CTimeHelper::timeIntervalDifference($now->toSql(true), $event->enddate) > 0 && !$isToday && $isNew) {
            $validated = false;
            $mainframe->enqueueMessage(JText::_('COM_COMMUNITY_EVENTS_ENDDATE_GREATER_ERROR'), 'error');
}
replaced by
/*if (CTimeHelper::timeIntervalDifference($now->toSql(true), $event->enddate) > 0 && !$isToday && $isNew) {
            $validated = false;
            $mainframe->enqueueMessage(JText::_('COM_COMMUNITY_EVENTS_ENDDATE_GREATER_ERROR'), 'error');
}*/

Let me know it it works or not.
Thanks

10 years 3 weeks ago
  • James's Avatar
    Topic Author
  • James
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Licenses:
JomSocial Expired

It works, but not complete. There is no more alert during event creation, but the calendar does not allow me to select time beyond present date. Every date in the past from MAY 18th is grey out. [cannot select].

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