How to add date to event in module: Event Booking - Google Map

  • Pascale Locher
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
10 months 3 weeks ago #128381 by Pascale Locher
Hello,
I try to add the dates of the events in the Popup-Window in the module: Event Booking - Google Map.
I found the file:
/modules/mod_eb_googlemap/helper.php
and the code:

foreach ($row->events as $event)
{
$popupContent[] = '<li><h4>' . JHtml::link(JRoute::_(EventbookingHelperRoute::getEventRoute($event->id, $event->main_category_id, $Itemid)), addslashes($event->title)) . '</h4></li>';
}

$popupContent[] = '</ul>'

How can I adjust the code, so it shows the date of the event in front of the event title.
Thanks for your help.
Pascale

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

More
10 months 3 weeks ago #128392 by Tuan Pham Ngoc
There are more modification needed. Try to get this file, unzip it, upload to modules/mod_eb_googlemap folder, then check it again. It should work as expected

Tuan
Attachments:
The following user(s) said Thank You: Pascale Locher

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

  • Pascale Locher
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
10 months 3 weeks ago #128395 by Pascale Locher
It works.
I even managed to put first the date and then the title.
Thanks a lot for your great work,
Pascale

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

More
10 months 3 weeks ago #128409 by Tuan Pham Ngoc
OK Pascale. Please note that this change could not be implemented using override, so you need to backup the modified file and re-upload it each time you update to new version of Events Booking

Regards,

Tuan

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

More
1 month 1 week ago - 1 month 1 week ago #135990 by Tuscany
Thank You for this useful customization

Unfortunately the link in the popup is not working after helper.php is replaced

I found out that there is a change in the last line of this file

$row->popupContent = addslashes(implode("", $popupContent));

In the original file You don't use the funtion "addslashes"
After removing "addslashes" link is working again.

Tuan, can You please confirm that this is OK?
Last edit: 1 month 1 week ago by Tuscany.

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

More
1 month 1 week ago #135993 by Tuan Pham Ngoc
Yes. I can confirm. Could you please re-upload your modified file (which works OK) here after making the modification and confirm that it's working as expected?

Tuan

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