By Jay on Thursday, 02 August 2018
Posted in General Issues
Likes 0
Views 683
Votes 0
Hey,
We have a few events that are repeated weekly.
The problem is now there are "spamming" are event section. Is there any way to show only the first instance of these events?
or any other creative solution will help
thanks
Itamar
Currently that is no setting ti exclude those recurring event on the event listing page.

But you can apply following code into this file -> JoomlaFolder/components/com_easysocial/views/events/view.html.php


$options['parent_id'] = 0;


You can refer on my attached screenshot which line you should put.
·
Friday, 03 August 2018 10:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the suggestion, but unfortunately once you make that mod to set it to only show the parent event, since the date of that (the original parent event) has passed, it doesn't show the event at all. I guess what it needs to do would be to show the next active child event?
Jay
·
Saturday, 05 January 2019 04:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

I have a little bit lost here, can you check my following explanation and see whether i understand correctly with your current question?

1. When someone create a weekly recurring event :
- 11 - 01 - 2019
- 18 - 01 - 2019
- 25 - 01 - 2019

2. if the user click on the all event filter today, it will show all the event which also included those upcoming recurring event, but what you want is, only want to show 1 upcoming event for that recurring event right?
e.g. 11 - 01 - 2019
·
Saturday, 05 January 2019 10:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, that is correct.
Jay
·
Saturday, 05 January 2019 20:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Try edit this PHP file JoomlaFolder/administrator/components/com_easysocial/models/events.php and look at this line of code 289 :


$q[] = "AND (`b`.`start` >= " . $db->q($now);


Replace with

$q[] = "AND (`b`.`start` BETWEEN " . $db->q($now) . " AND date_add(" . $db->q($now) . ", INTERVAL 7 DAY)";


And see how it goes.
·
Monday, 07 January 2019 23:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry but that limits the display of all events to just those in the next week. We want to be able to show all events but for any that are set up using the "repeat" feature we don't want all of those if they are weekly as it just swamps the page.

img01.png is what you get if I apply that patch - what we are after is to have all the items with a red X (as shown in img02.png) removed from the listing.
Jay
·
Wednesday, 09 January 2019 02:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Itamar,

Unfortunately that is no simple way to achieve this like what your current requirement.

What i can think of is, add 1 more filter on the event listing page e.g. without recurring event (screenshot : http://take.ms/h2rD4)

If the site user really want to see is there any upcoming event for the upcoming week, they can look at the 'FILTER BY DATE' section, click on those upcoming event (week xx) filter, so it will filter it and show those upcoming event for upcoming week.

By logically, 'all event' filters should contain those recurring event regardless those recurring event start date at upcoming week or monthly.
·
Wednesday, 09 January 2019 14:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks although I'm not sure how you would create that filter since the "Repeat" custom field doesn't have an option to make it searchable?
Jay
·
Friday, 11 January 2019 01:26
·
0 Likes
·
0 Votes
·
0 Comments
·
What i mean is we will see if we can do something about it in Easysocial 3.

the "Repeat" custom field doesn't have an option to make it searchable?

Yes, that is current behaviour, may i know what is the reason you would like to make this option? Do you mean you do not want user search those repeat event from the advanced search area?
·
Friday, 11 January 2019 16:31
·
0 Likes
·
0 Votes
·
0 Comments
·
No, I mean it would be great if repeat event was searchable so then it could be used in filters to show or presumably not show those events.
Jay
·
Friday, 11 January 2019 20:56
·
0 Likes
·
0 Votes
·
0 Comments
·
No, I mean it would be great if repeat event was searchable so then it could be used in filters to show or presumably not show those events.

Yes, currently that is not possible to achieve this.
·
Saturday, 12 January 2019 14:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Look forward to seeing more support for controlling viewing of repeating events in ES 3 then
Jay
·
Saturday, 12 January 2019 19:24
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Sunday, 13 January 2019 10:18
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post