Main menu

Forum


× Help Forum English

List filtering

  • CampWest
  • Portrait de CampWest Auteur du sujet
  • Membre junior
  • Membre junior
Plus d'informations
il y a 9 ans 9 mois #9906 par CampWest
List filtering a été créé par 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.

Connexion ou Créer un compte pour participer à la conversation.

  • Lyr!C
  • Portrait de Lyr!C
  • Administrateur
  • Administrateur
  • Lead Developer
Plus d'informations
il y a 9 ans 9 mois #9932 par Lyr!C
Réponse de Lyr!C sur le sujet 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) .

Fichier attaché :

Connexion ou Créer un compte pour participer à la conversation.

  • CampWest
  • Portrait de CampWest Auteur du sujet
  • Membre junior
  • Membre junior
Plus d'informations
il y a 9 ans 9 mois #9951 par CampWest
Réponse de CampWest sur le sujet 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.

Connexion ou Créer un compte pour participer à la conversation.

  • Lyr!C
  • Portrait de Lyr!C
  • Administrateur
  • Administrateur
  • Lead Developer
Plus d'informations
il y a 9 ans 8 mois #9974 par Lyr!C
Réponse de Lyr!C sur le sujet 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) .

Fichier attaché :

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: Lyr!C
Temps de génération de la page : 0.082 secondes

 

Follow Us

Créez vos templates Joomla avec Template Creator CK

acymailing logo new