Saxbald
Chevereto Member
Hi!
I've set up Chevereto as a photography community. I used the lister class to display a list of all photographers (read: users) that are part of the community, like so: https://brinkr.photos/streetphotographers
To avoid conflicts I created a new class: class.mynewlisting.php where I made my changes.
This has worked fine for me, but I wanted to make a new tweak:
I would like to change the sort order for my users from number of uploaded images to received user_likes. So users that publish high quality photos are listed first, because they received more likes. (And users that publish lower quality stuff, get listed below.)
I added 'user_likes' to $valid_sort_types, but I'm stuck from there on. Any ideas on how to change my custom listing class?
With kind regards,
Saxbald
I've set up Chevereto as a photography community. I used the lister class to display a list of all photographers (read: users) that are part of the community, like so: https://brinkr.photos/streetphotographers
To avoid conflicts I created a new class: class.mynewlisting.php where I made my changes.
This has worked fine for me, but I wanted to make a new tweak:
I would like to change the sort order for my users from number of uploaded images to received user_likes. So users that publish high quality photos are listed first, because they received more likes. (And users that publish lower quality stuff, get listed below.)
I added 'user_likes' to $valid_sort_types, but I'm stuck from there on. Any ideas on how to change my custom listing class?
With kind regards,
Saxbald