Main menu

Forum


× Help Forum English

List filtering

  • CampWest
  • CampWest's Avatar Topic Author
  • Junior Member
  • Junior Member
More
9 years 9 months ago #9906 by CampWest
List filtering was created by CampWest
I'm looking for at filter that works similar to Upcoming Event - but is triggered on the end time of the event. So that when the end time of the event is passed - it will not be shown on the list. Fx. And event runs from 8:00 - 10:00 - using the Upcoming filter it will not be shown after 8:00 - but it could be an event where you do not need to be there at 8:00 but you could come 9:00. If I use Today and Upcoming it will be on the list the hole day even when the event has ended.

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

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
9 years 9 months ago #9932 by Lyr!C
Replied by Lyr!C on topic List filtering
Hello,

For the future, i have idea of a new filtering system, with more flexibility, but today it's not possible to implement this idea, because the data structure of iCagenda doesn't allow this with simplicity.

THis is one reason i have started a full re-factory (started with version 3.4.0). Little by little, in each version, i'm migrating some function to the library, and in the same time, i'm preparing the code for a planned new separated table in database so save dates, and then to allows more possibilities (and to simplify the dates entering!).
This is a long work, but i will do my best to accomplish this one this year! (i hope!)

The only way today to change this, is to edit the core file administrator/components/com_icagenda/utilities/events/data.php

And search for this (line 518) :
// (3) Filter Dates : Upcoming
				elseif ($filterTime == 3)
				{
					// Period with no weekdays selected
					if (in_array($get_date, $perioddates)
						&& $only_startdate
						&& (strtotime($StDate) > strtotime($datetime_today))
						)
					{
						$AllDatesFilterTime[] = $fD;
					}

					// Period with weekdays selected
					elseif (in_array($get_date, $perioddates)
						&& !$only_startdate
						&&  strtotime($get_date) > strtotime($datetime_today)
						&&  strtotime($date_get_date . ' ' . $time_startdate) > strtotime($datetime_today)
						)
					{
						$AllDatesFilterTime[] = $fD;
					}

Try by replacing $StDate by $EnDate, and $time_startdate by $time_enddate

Not tested, but i think it could do the job ;-)

Regards,
Cyril

Latest version : iCagenda 3.9.8
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File Attachment:

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

  • CampWest
  • CampWest's Avatar Topic Author
  • Junior Member
  • Junior Member
More
9 years 9 months ago #9951 by CampWest
Replied by CampWest on topic List filtering
Thx for the quick reply. However I cannot find the data.php file in the location you mentioned. I'm using 3.4.0.1 Pro release - do I need to update in order to have the file?

Really looking forward to hearing about the new features you are implementing.

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

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
9 years 8 months ago #9974 by Lyr!C
Replied by Lyr!C on topic List filtering
Hello,

Sorry for slow response, but if you have an active pro subscription, use the pro ticket support instead forum, for a faster support ;-)

ANd yes, you have to update, as the file is only in latest versions.
Better to be always updated to take advantage of all improvement (visible or not visible) ;-)

Regards,
Cyril

Latest version : iCagenda 3.9.8
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File Attachment:

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

Moderators: Lyr!C
Time to create page: 0.083 seconds

 

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new