mod_eb_minicalendar

  • Oleh Andrieiev
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 4 months ago #162507 by Oleh Andrieiev
mod_eb_minicalendar was created by Oleh Andrieiev
Hello.
Tell me, is it possible to configure the module so that if an event lasts several days, they will all be shown in the calendar? In the Booking settings you can set the calendar to “Show All Days Of Multiple Days Event In Calendar”. Is it possible to do this for a module?

Please Log in or Create an account to join the conversation.

  • Oleh Andrieiev
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 4 months ago - 1 year 4 months ago #162510 by Oleh Andrieiev
Replied by Oleh Andrieiev on topic mod_eb_minicalendar
Yes, I can change the \components\com_eventbooking\helper\data.php file. In line 236 to

$date_of_event = explode('-', $row->event_date);
$date_of_event = (int) $date_of_event[2];

add

$second_date_of_event = explode('-', $row->event_end_date);
$second_date_of_event = (int) $second_date_of_event[2];

and after if ($d == $date_of_event){ add the same check if ($d == $second_date_of_event)(we have Events for 1 or 2 days). But after the update Events Booking, will need to be changed again. That's why I'm asking.

 
Last edit: 1 year 4 months ago by Oleh Andrieiev.

Please Log in or Create an account to join the conversation.

More
1 year 4 months ago #162512 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic mod_eb_minicalendar
Hi Oleh

Should be more complicated than that. But if the modification works for you, please use that modification for now. I will see if I can implement support for this in the next release of the extension

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Oleh Andrieiev
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 4 months ago #162513 by Oleh Andrieiev
Replied by Oleh Andrieiev on topic mod_eb_minicalendar
Thank you, Tuan.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc