SP LMS - SP LMS » Events - Question | JoomShaper

SP LMS - SP LMS » Events

B

BenL

Extension 3 years ago

Hello, After upgrading sp lms to v4 there is still problem wtih sort order events. I cannot set option to see all events from lates to oldest one. Regards.

0
22 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #11624

Please go to this location: components/com_splms/models and replace events.php file with the attached file. You need to unzip the file and then replace. Then if you click on the latest, it will sort all the events from the farthest date to the oldest date(even past events). And if you click on the upcoming, it will sort all the events from the oldest date to the farthest.

events.php.zip

1
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #11548

Hello BenL

Please go to the Events Menu and set ordering to Latest on Events Settings. If you want to show the upcoming events, then select Upcoming. Screenshot at Mar 23 12-59-57.png

Best regards

0
B
BenL
Accepted Answer
3 years ago #11558

hi @Khan, Option latest shows events which are already done. Upcoming shows events withc are not done yet. I need option to show all from newest to oldest - for that i thinhk i should use ascending/descending option but this option dont do anything for event view. Regards.

0
B
BenL
Accepted Answer
3 years ago #11663

Thanks for file. Works perfectly. Regards.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #11726

You are welcome

0
B
BenL
Accepted Answer
2 years ago #35680

Hello @Ofi Khan, there sie chance to update php file from att. to be compatibile with latest version Educon or SP LMS?

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #35736

Sorry, I could not get your question. What compatibility are you looking for?

0
B
BenL
Accepted Answer
2 years ago #35803

Its looks that latest events dont appeare on events page, i think it could be realted with last updates. I have custom php file from this thread, more details about issue here - https://www.joomshaper.com/forum/question/7052

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #36251

Please share your administrator access here to check the issue. Use the Hidden Content box to share the credentials.

0
B
BenL
Accepted Answer
2 years ago #36281

here you go

0
B
BenL
Accepted Answer
2 years ago #37413

Hello there, any chance to help here?

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #37625

Apology for the delay. I have added an event for Polish language. The upcoming sorts the events according to the events date. Please check this page: https://euh-e.edu.pl/pl/uczelnia/wydarzenia

0
B
BenL
Accepted Answer
2 years ago #37665

hi Khan, I think you dont read fully my issue, i know that new events will be apper on page. But i need see new ald old like it was done i custom file:

  • sort all the events from the farthest date to the oldest date(even past events).

And now this dont work propertly. Please create new Event and sert filter in menu for showing latest, then you will see where is problem.

Regards.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #37716

okay, first I will explain the behavior of the sorting.

  • Default: All events from oldest date to latest.
  • Latest: Only past events from latest to oldest.
  • Upcoming: Only future events from latest to oldest.

I might have wrong replied to the accepted comment. Sorry for the inconvenience.

0
B
BenL
Accepted Answer
2 years ago #37773

Yes i know about this, but this custom events.php.zip was modify to show new and old events and looks that now is not working properly.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #38473

The below solution will remove latest filter option and upcoming filter option will filter the events from upcoming to the past. All events will be shown in this order. If SP LMS extension updates, then this will be erased. So, please keep these two files saved somewhere separately and after update just replace them.

  1. Please go to this location: components/com_splms/models and replace events.php file with the attached file. You need to unzip the file and then replace.

events.php.zip

  1. Please go to this location: components/com_splms/views/events/tmpl and replace default.xml file with the attached file. You need to unzip the file and then replace.

default.xml.zip

0
B
BenL
Accepted Answer
2 years ago #38727

Hi Khan, thanks for files, now im able to see events upcoming and from past, but its still showing from oldest to newest, i want rever it to see newest to oldest. Regards.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #38758

Sorry, I don't get your issue. The above solution will filter the events according to the event date. It will have no effect on the event creation date.

0
B
BenL
Accepted Answer
2 years ago #38926

Hi there, Now its showing from oldest to newset, i need rever order to see lates on top oldest on the end.

Please check link in hidden content and check the events date.

Regards.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #38959

I see it okay. The first event is on October 2 and the second is on May 9. It is working as expected.

Screenshot at Oct 19 11-43-00.png

0
B
BenL
Accepted Answer
2 years ago #39006

Ok, yes you have right. After write this topic i update SP LMS to latest version and its looks that issue was solved there. Thanks for help.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #39496

Thanks for your confirmation.

0