PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

In this section you can share self-made extensions with other users of WYSIWYG Web Builder.
There is a dedicated section for commercial extensions.
User avatar
alex4orly
 
 
Posts: 989
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alex4orly » Sat Aug 19, 2017 1:50 am

Please click on the following URL to see it

I tried with several different browser and the same result, the files are showing in the list but if you click on any file, ....

http://www.nmaa-rc.org.au/dirlist.php

WWBman
 
 
Posts: 864
Joined: Fri Jan 08, 2010 6:10 pm

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by WWBman » Sat Aug 19, 2017 7:43 am

There is a fullstop after "dirlist.php" in the links.

User avatar
alex4orly
 
 
Posts: 989
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alex4orly » Sat Aug 19, 2017 8:10 am

Yes, I noticed this but I didn't insert it there, have no idea where it comes from

User avatar
alex4orly
 
 
Posts: 989
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alex4orly » Sat Aug 19, 2017 8:51 am

In the single configuration option there is an input field where I tried the following :

./previousnewsletters - this is the one that comes up with a dot...
/previousnewsletters - this one doesn't show the files in the folder, just a list with a date Jan 1st 1970 for all the files, but no file names
.previousnewsletters - this one doen't show anything

So, where can I go from here
The files are in a subfolder under the root named "previousnewsletters"

alexmasss
 
 
Posts: 248
Joined: Mon Sep 28, 2015 4:25 pm

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alexmasss » Sat Aug 19, 2017 9:07 am

What happens if you just insert the folder name without points or slashes?

User avatar
alex4orly
 
 
Posts: 989
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alex4orly » Sat Aug 19, 2017 9:59 am

Just uploaded it as you suggest, please see

It converts it to this : http://www.nmaa-rc.org.au/dirlist.phppr ... 013_11.pdf

alexmasss
 
 
Posts: 248
Joined: Mon Sep 28, 2015 4:25 pm

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alexmasss » Sat Aug 19, 2017 10:26 am

Strange, it seems to me that you are doing something wrong. Make a page called pdfscan.php drop the extension and set the foldername pdflist ,do not include the pdf in the wbs and upload your test page. Via Filezilla upload the folder pdflist with the pdf files inside to the root, in case the test page is in the root.

User avatar
alex4orly
 
 
Posts: 989
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alex4orly » Sat Aug 19, 2017 8:47 pm

I always upload the PDF's using FileZilla,
No idea how to make a page that includes your extension without WWB, how do I do that?

Cheers

alexmasss
 
 
Posts: 248
Joined: Mon Sep 28, 2015 4:25 pm

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alexmasss » Sun Aug 20, 2017 5:55 pm

As I described you in my previous post, please see the demo http://www.alexmas.cloud/scanfolder
It works both on desktop and mobile. If you want to open the Pdf directly on smartphone you may use Prestigio ebook reader.

User avatar
alex4orly
 
 
Posts: 989
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alex4orly » Mon Aug 21, 2017 7:03 am

Alex,

I visited your demo and as expected of course it works fine.
In the previous extension I used with WWB (PHP Directory Listing) which as you probably know is no longer supported, the scrip was placed in the root directory of the website, and the Folder where the PDF files were had to be specified in the extension as "./pdffolder" to indicate that the files are in a directory under the root folder.

With your script, it seems that the script and the PDF files are expected to be in the same sub-directory? or am I wrong.
I tried that too but all that I see is the top and bottom bar of the script without the files listed

I used initially your sample project, then I uploaded the script php file maually... nothing helped - I click on a file and it does NOT open the pdf.
So I will try again :
1) I load the script file called dirlist.php into the root of my website
2) I have the pdf files in a subfolder called "previousnewsletters"

WHat should I configure the scrip to point to? I do it all manually, forget WWB for a moment...

Cheers

User avatar
alex4orly
 
 
Posts: 989
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alex4orly » Mon Aug 21, 2017 8:24 am

I will tell you one more thing, in your example, when I view source of the page there is an item that looks like this

<a href="?dir=folderscan/">
folderscan </a>

On my page, this item does NOT exist... Why?

WWBman
 
 
Posts: 864
Joined: Fri Jan 08, 2010 6:10 pm

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by WWBman » Mon Aug 21, 2017 8:30 am

FWIW:
Out of curiosity I replicated your structure in a test folder called dirlist.php under the root and then created the previousnewsletters folder under dirlist.php containing 3 pdf files.
"root"/dirlist.php/previousnewsletters/2013_11.pdf
"root"/dirlist.php/previousnewsletters/2014_01.pdf
"root"/dirlist.php/previousnewsletters/2015_11.pdf

Added the extension to the page (no layers or anything).
Published All to dirlist.php and it worked fine i.e. the pdfs displayed when clicking in the list.
So can you see anything different from yours?
http://wwb.batcave.net/dirlist.php

User avatar
alex4orly
 
 
Posts: 989
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alex4orly » Mon Aug 21, 2017 8:49 am

I must be doing something wrong here, your example works perfectly.
I have the following
root
In there I have all my set files
I also have a file (NOT A FOLDER) called dirlist.php (I renamed what you had in your project as index.php to dirlist.php) becasue my real index.php is something else...
In the configuration of my dirlist.php script, i nominated '.' as the folder location of the script
Now - how do I tell the script WHER / In which folder are my PDF newsletters? there is no configuration for this in the scrip?

1) When you say, "Published ALL, what do you mean? There is only ONE source file dirlist.php
2) In your sample project - there is a FOLDER called "Files" what is this?

WWBman
 
 
Posts: 864
Joined: Fri Jan 08, 2010 6:10 pm

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by WWBman » Mon Aug 21, 2017 9:27 am

I mean "Publish all files" in wwb Publish Web Site dialog box.
In your sample project - there is a FOLDER called "Files" what is this?
I don't see this anywhere!! :?

This is my project file, it'll be interesting if you can see any difference to yours.
http://wwb.batcave.net/dirlist.php/PHP% ... 20Scan.wbs

User avatar
alex4orly
 
 
Posts: 989
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PHP Directory Listing (FREE) - NEW VERSION/NEW NAME

Post by alex4orly » Mon Aug 21, 2017 9:57 am

Downloaded your project file, yes - it doesn't have a folder named "Files" in it...
Renamed index.php to dirlist.php - didn't change anything
Uploaded the file disrlist.php and dirlist.css (created by the project) into the folder "previousnewsletters"

Have a look what I get : http://www.nmaa-rc.org.au/previousnewsl ... irlist.php

All the PDF files are in that same folder, but none shows in the list

Post Reply