Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SimpleDir - Directory listing plugin
#37
(2014-06-16, 05:44:48)mackur Wrote: Hello,
Do you know how can I change plugin to browse one folder per one page, second folder for second page? It is possible?
Best regards,
Maciej Kurzak

(2016-04-14, 23:28:58)lokothodida Wrote:
(2016-04-14, 17:27:27)DesruX Wrote:
(2016-04-14, 05:33:33)lokothodida Wrote: I've briefly tried to work on an unofficial v0.4 of RobA's plugin to address people's issues.



  • Makes the directory path default to /data/uploads/ (leave the fields in the admin panel empty to set it to /data/uploads/)
  • Allows multiple instances of SimpleDir to run on a page (parameters added to (% simpledir %))
  • Provides public PHP functions for using SimpleDir outside of pages (get_simpledir_display, return_simpledir_results)
  • Fix HTML for the admin panel
  • Github Page
  • ZIP File for current beta

Awsome!, it works like a charm, thanks a lot for the effort.

A few further suggestions for improvements:
a) Option to decide which columns to include e.g. Date and Size - so you could have a listing not showing those columns and having more space for the filename.
b) Options to sort the files, e.g. on name a-z or z-a. I would like the newest files to be shown in the top.
c) Option to only show top 5 files, then click to expand to see all.

Any ideas on how it could be integrated with a way to avoid exposing the actual files without authentication. Right now the page that serves simpledir requires users to be loggedin, but if you know the exact url of the file it is possible to download it directly.

Best regards

Glad to know the additions work.


For b) and c), are they things that you'd want server-side (options in the admin panel) or client side (javascript sortable/expandable table)?

I need to think about your other point on exposing files (was this a problem in v0.3?)

I had actually forgotten to test the actual links to the files, which initially didn't not work, but then I revisited your documentation and saw that I had missed to add the urlpath!

Regarding both b) and c) I was thinking it as a server side (admin controlled) options. That is how I would use it.

Regarding the exposing files/ authenticating before downloading problem, yes this is also a problem in v0.3. 
Basically the url path is http://somesite.com/data/uploads/somefile.txt, if you know that link you can access the files. So password protecting the page serving the link e.g. http://somesite.com/protectedarea/protectedpages/ only protects the list of links not being able to follow the link.

BR
Reply


Messages In This Thread
SimpleDir - Directory listing plugin - by RobA - 2011-11-02, 01:37:02
RE: SimpleDir - Directory listing plugin - by DesruX - 2016-04-15, 06:31:02
SimpleDir - Directory listing plugin - by jyoz22 - 2011-11-02, 03:42:34
SimpleDir - Directory listing plugin - by mvlcek - 2011-11-02, 04:06:50
SimpleDir - Directory listing plugin - by RobA - 2011-11-02, 05:04:27
SimpleDir - Directory listing plugin - by mvlcek - 2011-11-02, 05:47:53
SimpleDir - Directory listing plugin - by RobA - 2011-11-03, 03:55:45
SimpleDir - Directory listing plugin - by RobA - 2011-11-06, 07:35:47
SimpleDir - Directory listing plugin - by RobA - 2011-11-06, 07:37:52
SimpleDir - Directory listing plugin - by shawn_a - 2011-12-09, 07:44:51
SimpleDir - Directory listing plugin - by RobA - 2011-12-09, 09:22:33
SimpleDir - Directory listing plugin - by shawn_a - 2011-12-10, 01:01:54
SimpleDir - Directory listing plugin - by RobA - 2011-12-10, 04:49:42
SimpleDir - Directory listing plugin - by shawn_a - 2011-12-13, 03:54:57
SimpleDir - Directory listing plugin - by shawn_a - 2012-06-06, 04:17:01
SimpleDir - Directory listing plugin - by maxpop - 2012-08-21, 04:24:56
SimpleDir - Directory listing plugin - by RobA - 2012-08-23, 03:35:45
SimpleDir - Directory listing plugin - by chaos - 2012-09-15, 17:12:46
SimpleDir - Directory listing plugin - by RobA - 2012-09-17, 01:19:26



Users browsing this thread: 2 Guest(s)