AllskyTeam / allsky-website

Web interface displaying an image from an allsky camera.
54 stars 42 forks source link

Timelapses, keograms and startrails in reverse order #34

Closed HamOP closed 3 years ago

HamOP commented 3 years ago

I just saw that on my install of the website, all of the nightly files are ordered "oldest one first", while in the demo website and all the other ones I looked at, order is reversed and the last night is shown first. It was easy to fix by replacing the asort() by arsort(), but I don't understand why this happens on my site. Could that have something to to do with PHP versions?

AstroHighlander commented 3 years ago

Hi HamOP - where do I find the asort( ) or arsort( ) commands(s)? I want to fix this as well. Eric

HamOP commented 3 years ago

In the index.php files in the videos, keograms and star trails folders. Look for the line asort($files);.

AstroHighlander commented 3 years ago

HamOP thanks very much for that - it worked a treat! Sooooo easy when you know how

EricClaeys commented 3 years ago

HamOP, If this issue is resolved, would you please close it? Thanks - Eric

Kilis71 commented 2 months ago

Nei index.phpfile nelle cartelle video, keogrammi e scie stellari. Cerca la riga asort($files);.

in the latest version this line of code is missing

EricClaeys commented 2 months ago

@Kilis71, Most of the code in the the index.php files in the keograms, startrails, and videos directories moved to a common location in the current release, to make maintenance easier. The asort($files) command is now in the functions.php file.

Are you having a problem with sorting?

Kilis71 commented 2 months ago

ok, thank you very much