- Posts: 1
- Thank you received: 0
How to Keep showing a current event
- Wendij22
- Topic Author
- Offline
- New Member
-
Less
More
9 years 7 months ago #69720
by Wendij22
How to Keep showing a current event was created by Wendij22
Hi,
I was wondering if someone could help, please. When an event is starting, it dissapears from the Events Table View page. But I want to show the event through the whole duration of the event, if possible.
I already checked configurations, the menu item and the plugin items. And yes, the dates are correct.
I used to be able to set it to show the event until the event was done, but for some reason I cannot find the setting anymore. What am I missing?
Any ideas, please?
I thank you in advance for your help.
Wendy
I was wondering if someone could help, please. When an event is starting, it dissapears from the Events Table View page. But I want to show the event through the whole duration of the event, if possible.
I already checked configurations, the menu item and the plugin items. And yes, the dates are correct.
I used to be able to set it to show the event until the event was done, but for some reason I cannot find the setting anymore. What am I missing?
Any ideas, please?
I thank you in advance for your help.
Wendy
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 7 months ago #69734
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How to Keep showing a current event
Hi Wendy
There are two options :
1. Go to Events Booking -> Configuration, find the config option hide past events, set it to No and the event will be showed
2. If you still want to keep hide past events config option to Yes and want it to work in the way you describe, we will have to edit the code. Please submit a support ticket sending us super admin account of your site so that we can edit code to make it works for you
Regards,
Tuan
There are two options :
1. Go to Events Booking -> Configuration, find the config option hide past events, set it to No and the event will be showed
2. If you still want to keep hide past events config option to Yes and want it to work in the way you describe, we will have to edit the code. Please submit a support ticket sending us super admin account of your site so that we can edit code to make it works for you
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Danny Poole
-
- Offline
- New Member
-
9 years 7 months ago #70033
by Danny Poole
Replied by Danny Poole on topic How to Keep showing a current event
Hello, I require the same feature.
I have events that run for a week or two at a time and I would like these events to be showing until they expire.
At the moment they are hidden after the start date lapses where they need to be hidden after the end date lapses.
Is this something that can be easily changed in one of the template files?
I have events that run for a week or two at a time and I would like these events to be showing until they expire.
At the moment they are hidden after the start date lapses where they need to be hidden after the end date lapses.
Is this something that can be easily changed in one of the template files?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 7 months ago #70035
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How to Keep showing a current event
Hi Danny
On what page you want to make the change ? I ask this question because there are different places in the extension (for example both in module and component) we check and show events based on the event date
Please let me know so that I can guide you to make the change
Tuan
On what page you want to make the change ? I ask this question because there are different places in the extension (for example both in module and component) we check and show events based on the event date
Please let me know so that I can guide you to make the change
Tuan
Please Log in or Create an account to join the conversation.
- Danny Poole
-
- Offline
- New Member
-
9 years 7 months ago #70036
by Danny Poole
Replied by Danny Poole on topic How to Keep showing a current event
I am using the 'Category Timeline Layout'.
Here is the page in question: www.kirwanaquaticcentre.com.au/about/events
I am familiar with template overrides.
Here is the page in question: www.kirwanaquaticcentre.com.au/about/events
I am familiar with template overrides.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 7 months ago - 9 years 7 months ago #70037
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How to Keep showing a current event
You can follow the instructions below to get it works :
1. Open the file components/com_eventbooking/model/list.php
2. Find the code below (around line 179)
3. Change it to:
After that, it should work as expected
Regards,
Tuan
1. Open the file components/com_eventbooking/model/list.php
2. Find the code below (around line 179)
Code:
$query->where('DATE(tbl.event_date) >= "' . $currentDate . '"');
3. Change it to:
Code:
$query->where('DATE(tbl.event_end_date) >= "' . $currentDate . '"');
After that, it should work as expected
Regards,
Tuan
Last edit: 9 years 7 months ago by Tuan Pham Ngoc.
Please Log in or Create an account to join the conversation.
- Danny Poole
-
- Offline
- New Member
-
9 years 7 months ago #70041
by Danny Poole
Replied by Danny Poole on topic How to Keep showing a current event
Thank you, that did the trick.
Please Log in or Create an account to join the conversation.
- Danny Poole
-
- Offline
- New Member
-
9 years 7 months ago #70043
by Danny Poole
Replied by Danny Poole on topic How to Keep showing a current event
One more question...
Where do I change it for the Module (mod_eb_events)?
Where do I change it for the Module (mod_eb_events)?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 7 months ago #70073
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How to Keep showing a current event
Hi Danny
Open the file modules/mod_eb_events/mod_eb_events.php, find the code below:
Change it to:
After that, it should work as expected
Regards,
Tuan
Open the file modules/mod_eb_events/mod_eb_events.php, find the code below:
Code:
->where('(DATE(a.event_date) >= ' . $db->quote($currentDate).' OR DATE(a.cut_off_date) >= '.$db->quote($currentDate).')')
Change it to:
Code:
->where('(DATE(a.event_end_date) >= ' . $db->quote($currentDate).' OR DATE(a.cut_off_date) >= '.$db->quote($currentDate).')')
After that, it should work as expected
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.