Main menu

Forum


× Help Forum English

List filtering

  • CampWest
  • Avatar di CampWest Autore della discussione
  • Junior Member
  • Junior Member
Di più
9 Anni 9 Mesi fa #9906 da CampWest
List filtering è stato creato da 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.

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • Lyr!C
  • Avatar di Lyr!C
  • Administrator
  • Administrator
  • Lead Developer
Di più
9 Anni 9 Mesi fa #9932 da Lyr!C
Risposta da Lyr!C al 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 allegato:

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • CampWest
  • Avatar di CampWest Autore della discussione
  • Junior Member
  • Junior Member
Di più
9 Anni 9 Mesi fa #9951 da CampWest
Risposta da CampWest al 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.

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • Lyr!C
  • Avatar di Lyr!C
  • Administrator
  • Administrator
  • Lead Developer
Di più
9 Anni 8 Mesi fa #9974 da Lyr!C
Risposta da Lyr!C al 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 allegato:

Si prega Accedi o Crea un account a partecipare alla conversazione.

Moderatori: Lyr!C
Tempo creazione pagina: 0.077 secondi

 

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new