Some of my community members have been asking me why their events are being displayed based on their creation date instead of event start date. Here is a screenshot to show you what I am referring to. What do I need to change to have the events appear in the order of start date (as they should in my opinion anyways)?
Thanks,
Adam
Hi, Adam.
I wonder if this is related with other issue you reported:
www.jomsocial.com/forum/events/30403-edi...date-to-current-date
As on my test site is fine an no one reported similar issue before...
Hi, Adam.
On my test site or in our demo events list in module is displayed correctly...
Maybe sorting is affected by issue you've reported in another thread?
Maybe do a test and disable JSPT... if you can't do it on live site - do a test site (dev copy).
Michal,
I unhooked the JSPT component and same issue regarding the listing of events. When I visited your test site, even though I couldn't log in, the two events I saw in the events view look the same as my jomsocial, they appear in the correct order. The issue I am having is not in the event listing page, but the myevents plugin that appears on the profile pages. Also, I noticed that one of the two events listed had already took place. If you created another 3 more events for dates in December in order and then after that added one more event at the end of Novemeber, then we can look at the profile page and see if it really does appear in the proper order. I don't see how JSPT would be affecting the listing of only one plugin and not affect the event listings page since I believe they both use the same event model page to pull their functions?
I also edited an existing event with a start date of Feb 2016, and when I went to the date settings, it automatically resets to todays date just like prior to unhooking so I don't believe it's a JSPT issue. I'm open to other ideas and if I have to do a hack moving forward on future releases, I have no problem with that as long as these items can get resolved.
Thanks,
Adam
Michal,
Just sent you a pm, but I was able to duplicate the issue of the events listed in the js_events community plugin that confirms the events are displayed by their creation dates and not their start dates... nobody cares when the event was created, only when it starts/ends (for people looking to attend an event).
Thanks for your assistance on this :)
Albertus,
As the original post explains, the community plugin 'My Events' does not sort the events based on event start date, it sorts the events based on event creation date. I did duplicate the issue on Michal's test site by doing the following:
1. Added new event (Event#1) with Dec 15 date
2. Added new event (Event#2) with Nov 15 date
3. Added new event (Event#3) with Dec 3 date
The way it should be displayed is:
Event#2
Event#3
Event#1
The way it actually displays is:
Event#1
Event#2
Event#3
It appears that the 'sortby' needs to be changed from creation date to event start date. Should be a simple fix.
Hopefully this makes sense.
Adam
Hi,
please provide me FTP access detail. by editing your first post at this topic. put it at site info form (private). I want make sure the code at:
/modules/mod_community_events/mod_community_events.php
line 53
$sorted = $jinput->get->get('sort', 'startdate', 'STRING');
$sorted = $jinput->get->get('sort', 'latest', 'STRING');
Albertus,
I did check the file and confirm that it is sorted by startdate and not latest. If you are asking me these type of questions, it would leave me to believe that you are not able to duplicate this issue on your system? Since this issue appears in the module and community plugin, it would leave me thinking it's a core issue that is causing this and not one isolated to just a module or plugin setting.
Thanks for your help on this and look forward to having this resolved. Please advise on next course of action.
Adam
Hi,
yes, I cant replicate this issue at my test site. not sure why only happening at your site.
it can be 3rd party conflict.
could you please provide me FTP access detail? by editing your first post or send it to my email This email address is being protected from spambots. You need JavaScript enabled to view it.
Regards