08-18-2016, 02:33 PM
Userspice is primarily designed to control access to PHP files, but that doesn't mean it can't help.
Essentially what you want to do is to create a new page called userfiles.php or whatever you want to call it. Once you go into "manage pages" in the admin panel, that page will be controllable by userspice, so you can decide who has access to it.
THEN you basically want that userfiles.php to retrieve a list of files in a directory and turn them into links. There is a php command called scandir. It is explained in the bottom answer to this question.
http://stackoverflow.com/questions/15774...ectory-php
Once you have that variable $files, it's probably pretty easy to do a foreach loop and turn each of those filenames into a link.
I hope that helps.
Essentially what you want to do is to create a new page called userfiles.php or whatever you want to call it. Once you go into "manage pages" in the admin panel, that page will be controllable by userspice, so you can decide who has access to it.
THEN you basically want that userfiles.php to retrieve a list of files in a directory and turn them into links. There is a php command called scandir. It is explained in the bottom answer to this question.
http://stackoverflow.com/questions/15774...ectory-php
Once you have that variable $files, it's probably pretty easy to do a foreach loop and turn each of those filenames into a link.
I hope that helps.