The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
Directory listing - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: Directory listing (/showthread.php?tid=2318) |
Directory listing - dondemaio - 2011-10-29 Does anyone know of a script I can use to list the files in a particular folder/directory within my getsimple site? I need to have a listing like http://pdirl.newroots.de/examples/ inside one of my pages. Might be a good extension, if anyone knows how it's done. Don Directory listing - Connie - 2011-10-29 dondemaio, check this one: http://www.hotscripts.com/listing/directory-index-56754/ or use this query: http://www.hotscripts.com/search/php/directory+index Hotscripts.com is always a useful source cheers, Connie Directory listing - dondemaio - 2011-10-30 Thanks. The script I picked works well but I can't get it to work when I insert the following php code inside my GS page: <?php include("http://www.beachsun.org/gsimple/autodex/index.php?dir=&sort=m_time&sort_mode=a"); ?> See page http://beachsun.org/gsimple/index.php?id=directory to see what I mean. I've disabled the html editor and enabled the exec-PHP plugin but this does not seem to be enough to get it to work. Any suggestions? Thanks. Don Connie Wrote:dondemaio, Directory listing - Connie - 2011-10-30 Don, the easiest way would be to create a special template for that script, enter all necessary links and code into that template and use that for the site where you want to show the directory listing I am sure that will work Cheers, Connie Directory listing - dondemaio - 2011-10-30 Thanks, Connie. That's exactly what I did. There appears to be a problem with including such directory listing scripts (or the php code, for that matter) inside another page. The code doesn't work the way it's supposed to. The problem is further compounded by inserting it into a GS page, because of the way the pages are called (as part of index.php). What we really need is a nice plugin. (Hint!) Don Directory listing - RobA - 2011-11-01 dondemaio Wrote:What we really need is a nice plugin. (Hint!) Hey Don - Here is a plugin to do this: http://get-simple.info/extend/plugin/simpledir/254/ it should be reasonably robust, and should prevent cross directory traversals. There is a demo here: http://testbed.cartocopia.com/simpledir-test-page/ Unzip the file to your plugin directory. You must edit the variable $simpledir_base in the simpledir.php file (default is): $simpledir_base = "data/uploads/"; to be the directory you want brows-able. Then create a page and include (% simpledir %) on that page - this will be replaced with a table. Directory listing - dondemaio - 2011-11-01 Thanks, Rob. It looks beautiful but the link you posted for the plugin seems to redirect to my own account. Can you check it? Don RobA Wrote:dondemaio Wrote:What we really need is a nice plugin. (Hint!) Directory listing - mvlcek - 2011-11-01 dondemaio Wrote:Thanks, Rob. It looks beautiful but the link you posted for the plugin seems to redirect to my own account. Can you check it? It's the newest file in Extend: http://get-simple.info/extend/plugin/simpledir/254/ Directory listing - dondemaio - 2011-11-01 Looks simple enuf, but why am I getting this: http://beachsun.org/gsimple/directory/ mvlcek Wrote:dondemaio Wrote:Thanks, Rob. It looks beautiful but the link you posted for the plugin seems to redirect to my own account. Can you check it? Directory listing - RobA - 2011-11-01 Thanks for the URL fix, mvlcek. I changed it in my post. @dondemaio- Do you have any page caching enabled? What version of GS are you running? It does not look like the plugin is installed?! -Rob A> |