Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

JS Events plugin displays events out of order?!

9 years 5 months ago
  • Adam's Avatar
    Topic Author
  • Adam
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 2
Licenses:
JomSocial Active

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

9 years 5 months ago
Licenses:

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...


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
9 years 5 months ago
  • Adam's Avatar
    Topic Author
  • Adam
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 2
Licenses:
JomSocial Active

What file controls what it's sorted by? It appears to be happening for both the events plugin and module so maybe coming from the events model file?

9 years 5 months ago
Licenses:

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).


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
9 years 5 months ago
  • Adam's Avatar
    Topic Author
  • Adam
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 2
Licenses:
JomSocial Active

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

9 years 5 months ago
  • Adam's Avatar
    Topic Author
  • Adam
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 2
Licenses:
JomSocial Active

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 :)

9 years 5 months ago
Licenses:

Hi Adam,

Michal still on he days off.
the issue still happening?
could you please elaborate more about how to replicate this issue?

Regards

9 years 5 months ago
  • Adam's Avatar
    Topic Author
  • Adam
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 2
Licenses:
JomSocial Active

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

9 years 5 months ago
Licenses:

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');
not
$sorted = $jinput->get->get('sort', 'latest', 'STRING');

Regards

9 years 5 months ago
  • Adam's Avatar
    Topic Author
  • Adam
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 2
Licenses:
JomSocial Active

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

9 years 5 months ago
Licenses:

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

9 years 5 months ago
  • Adam's Avatar
    Topic Author
  • Adam
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 2
Licenses:
JomSocial Active

Albertus,

Just out of curiosity, what exact steps did you do to try and duplicate this bug on your end?

Adam

9 years 5 months ago
Licenses:

Hi,

I created some events for 2 days later, today, tomorrow.
and the module still in start date order

please provide me FTP access detail, so I can tackle this issue soon.

Regards

9 years 5 months ago
  • Adam's Avatar
    Topic Author
  • Adam
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 2
Licenses:
JomSocial Active

Now enter another event for next month and see where it sits.

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW