By Josh Lewis on Friday, 29 January 2016
Posted in General Issues
Likes 0
Views 398
Votes 0
It seems as though something was recently changed in ES that changed the photo ordering. Take for example, in my avatar album you can see that the oldest thumbnail shows up first:
http://test.peakbeta.com/photo/item/2-avatar-photos/user/joshlewis

Same goes for story and cover photos:
http://test.peakbeta.com/photo/item/5-story-photos/user/joshlewis

On the other hand, showing the oldest photos for the rest of the albums makes a lot of sense. Consider if someone posts photos from a party, an adventure, or other various activities. People often want to see things in the order that they happened in. The only reason to exclude the cover, profile photo, and story photos is because they are not chronological (usually), hence people actually want to see the current you. Facebook does this because it would be more confusing to the viewer if done differently.
Hey Josh,

I just applied a temporary fix on your site but could you help me to see if there's anything that went wrong? I am finding it weird because there was no changes on the codes related to sorting.

The file which I have modified is in /administrator/components/com_easysocial/models/photos.php and at line 313 replaced the codes below:


$sort = isset($options['sort']) ? $options['sort'] : 'DESC';


With,


$sort = isset($options['sort']) ? $options['sort'] : 'ASC';
·
Friday, 29 January 2016 18:38
·
0 Likes
·
0 Votes
·
0 Comments
·
This fixed the sorting with the three albums mentioned (cover, profile photo, and story). However the unfortunate side effect is that the rest of the albums show the latest one first also. As mentioned above, on normal albums "chronological" makes a lot of sense (oldest first) because of how people view photos and how the order of events actually happen. If one decides to add more photos to the album a day later, a new stream item is generated for the viewer to easily see the new ones (hence they aren't actually buried).

I'm assuming there could be a second query specifically for the cover, profile photo, and story albums?
·
Friday, 29 January 2016 22:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, not really sure if I understand you here but as I understand you want to:

1. Display latest first for "Cover photos", "Profile pictures" and "Story albums"?
2. Display oldest first for the rest of the normal albums?
·
Saturday, 30 January 2016 13:16
·
0 Likes
·
0 Votes
·
0 Comments
·
1. Correct.
2. Correct.

You understand the desired method, however I may need to give a little more insight on the reasons, mainly getting the photos in context for the viewer:

The only reason I suggest the "special albums" behave differently is because people want to see the current you instead of you 10 years ago (assuming you joined the site 10 years ago).

The rest of the albums created are directly related to the content (photos) they are presenting. Think of it like a forum, you see the oldest posts first so that the discussion can be well understood in context and chronologically. Here is a real life example in EasySocial where it is currently confusing to the viewer on what happened when. Notice how it displays me on the summit as the first photo? (this is the trip destination) The trip actually started out with this:



This isn't just about trips either. The same principals are true with parties/events, traveling, and other types of albums. For the record Facebook wasn't the first ones to use this method. People like new, but people like understanding their content even more. As mentioned above, stream items take care of the viewing of "later added photos".
·
Saturday, 30 January 2016 15:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, I kinda agree but at the same time disagree too because then there isn't any consistency. As a user, one would need to "learn" both points above.

Heck, I am pretty sure that some folks will end up posting support issues here in the future saying that the ordering is not the same
·
Saturday, 30 January 2016 16:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark,

You fixed the ordering of how the photos appear back in 4.1.6 but after updating o 4.1.7 and 4.1.8 the ordering of photos does not appear correct again. I went back to the original post here for the fix, however, when I checked on line 313 as stated below no codes exist to change. What am I missing?

Re: The file which I have modified is in /administrator/components/com_easysocial/models/photos.php and at line 313 replaced the codes below:
·
Thursday, 07 April 2016 04:38
·
0 Likes
·
0 Votes
·
0 Comments
·
it should be this line 431, you can refer on my attached screenshot below.
·
Thursday, 07 April 2016 12:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank You Arlex,

I have applied the fix and it works as expected now in the proper order.
·
Thursday, 07 April 2016 23:18
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Thursday, 07 April 2016 23:23
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post