That in itself would tell me it’s not random placement. In fact it’s more probably whatever order your host serves up the files.
Yes, that's more or less what other topics I found on the subject said - the problem is that nobody seems to know what that is, and I don't know how to change that. I'd like them to be in alphabetical/numerical order.
IndexOrderDefault
directive to change the order stuff is listed. (with mod_autoindex
, you can see if it is loaded from php information in ACP-system)Code: Select all
<Directory /where/your/www/is/>
Options Indexes FollowSymLinks
AllowOverride None
Require all denied
</Directory>
IndexOrderDefault Ascending Name
IndexOrderDefault Ascending|Descending Name|Date|Size|Description
I am assuming I'd need to put the avatar gallery directory link in /where/your/www/is/ is, or somewhere else? Sorry, I am more of a CSS person than anything, I don't know a lot of PHP and nothing really of apache (':lurttinen wrote: ↑Sat Jan 28, 2023 1:03 amAddCode: Select all
<Directory /where/your/www/is/> Options Indexes FollowSymLinks AllowOverride None Require all denied </Directory>
IndexOrderDefault Ascending Name
Or in .htaccess in your forum root directory. (If you have .htaccess enabled)
options areIndexOrderDefault Ascending|Descending Name|Date|Size|Description
IndexOrderDefault Ascending Name
in .htaccess file in your website root directory.Code: Select all
<Directory /where/your/www/is/>
Options Indexes FollowSymLinks
IndexOrderDefault Ascending Name
AllowOverride None
Require all denied
</Directory>
I am on shared hosting at the moment, so I don't think I have a lot of access to any of the server configuration stuff. I went with your .htaccess idea, but that does not seem to be working; I added it to my main root directory's .htaccess file, and then cleared my browser's cache and cleared the cache from the ACP, and hard refreshed with no change. I then tried adding a .htaccess file to the gallery folder shown in the screenshot, and did the same clearing - still nothing, unfortunately.lurttinen wrote: ↑Sat Jan 28, 2023 2:41 am If you cannot edit server configuration files, then you should addIndexOrderDefault Ascending Name
in .htaccess file in your website root directory.
.htaccess is a hidden file (because it starts with dot) so you might need to set your FTP program to show hidden files.
This was what I was originally looking at, but I am not sure how to do that - my limited php work hasn't really touched arrays. If I did try, is that the only part/line that I would need to modify?Paul wrote: ↑Sat Jan 28, 2023 7:12 pm The sort is, of course, done in coding. By default it is done at https://github.com/phpbb/phpbb/blob/3.3 ... l.php#L197
By the looks of it you will need to sort the inner array to sort it properly.
1.jpg
2.jpg
3.jpg
4.jpg
1673
1950
1720
1445
ksort($avatar_list);
natsort($avatar_list);