Help of algorithm

i want to have a picture, that is most viewed to be on top of a picture gallery. how would i go about doing that.

add a relationship between images and users (many to many)
every time a user click on the image to see it ( if it’s on a list with other images and it’s how you display them, change the logic so that the users have to click to enlarge images or use image slider)

1- if clicked : update image > users vierwers (from the first point of my answer) add logged-in user
2- if slider : add action when users slide : update current image > users viewers > add logged-in user

1 Like

good stuff thank you : :pray: :blush: :star_struck:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.