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.
maxime
 
 
Posts: 173
Joined: Sat Apr 02, 2011 6:15 pm
Contact:

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

Post by maxime » Thu Jan 31, 2013 3:49 pm

ok i have a found the way to do it. i have to put the extension on a layer so if my layer is 600 px the result (the directory) will be show with a size of 600 px . If i do not put it on a layer the result (directory ) will be full screen, i mean if my screen is 1024 the the resukt will show with a widt of 1024.

I hope is clear and you understand what i mean.



.

User avatar
Adendum
 
 
Posts: 728
Joined: Fri Apr 22, 2011 4:50 pm
Location: London, UK
Contact:

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

Post by Adendum » Thu Jan 31, 2013 6:02 pm

Not really but if you have solved your issue I am happy :)
Aditerum - No longer supporting WWB extensions - refer to CJS.
Aditerum - No longer supporting WWB templates - refer to CJS.


WWB 9.4; Ext Builder 4.2; Windows 10 64bit; Intel Core i7-3770 Processor 3.40Ghz; 16.0Gb RAM
Death to Internet Explorer!

User avatar
Adendum
 
 
Posts: 728
Joined: Fri Apr 22, 2011 4:50 pm
Location: London, UK
Contact:

Re: PHP Directory Listing

Post by Adendum » Mon Jun 24, 2013 9:06 pm

Raidenko wrote:I used this extension with ver8.x, but now when I try using it with ver9.x I get an error when I publish the page. I am new at this, and have no clue why it stopped working. Any advice would be greatly appreciated.
I have not yet looked at how my extensions work with WWB9. But by default WWB9 will use the later jQuery file 1.9.1. This extension uses jQuery 1.7.2. So until I can dig deeper all you need to do now is to open your project file, open the page where the extension is used and change the page properties miscellaneous tab and select jQuery 1.7.2, then publish and that should fix the problem.

EDIT 09/07/13 :
The extension doesn't use jQuery. Silly me. It's just PHP and some javascript.
But there is an error when published in WWB9 but not in WWB8. See later post.
Last edited by Adendum on Tue Jul 09, 2013 12:23 pm, edited 1 time in total.
Aditerum - No longer supporting WWB extensions - refer to CJS.
Aditerum - No longer supporting WWB templates - refer to CJS.


WWB 9.4; Ext Builder 4.2; Windows 10 64bit; Intel Core i7-3770 Processor 3.40Ghz; 16.0Gb RAM
Death to Internet Explorer!

User avatar
BaconFries
 
 
Posts: 4946
Joined: Thu Aug 16, 2007 7:32 pm

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

Post by BaconFries » Mon Jun 24, 2013 9:10 pm

Hi Paul please read the following regarding this, in WB 9 the user can switch between 1.7.2 and 1.9.1
viewtopic.php?f=10&t=56227

User avatar
Adendum
 
 
Posts: 728
Joined: Fri Apr 22, 2011 4:50 pm
Location: London, UK
Contact:

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

Post by Adendum » Mon Jun 24, 2013 9:24 pm

BaconFries wrote:Hi Paul please read the following regarding this, in WB 9 the user can switch between 1.7.2 and 1.9.1
viewtopic.php?f=10&t=56227
Errr....isn't that what I posted? :)
Aditerum - No longer supporting WWB extensions - refer to CJS.
Aditerum - No longer supporting WWB templates - refer to CJS.


WWB 9.4; Ext Builder 4.2; Windows 10 64bit; Intel Core i7-3770 Processor 3.40Ghz; 16.0Gb RAM
Death to Internet Explorer!

User avatar
Adendum
 
 
Posts: 728
Joined: Fri Apr 22, 2011 4:50 pm
Location: London, UK
Contact:

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

Post by Adendum » Tue Jul 09, 2013 12:17 pm

There is a problem but I can't work out why. The same code works OK in a WWB8 published page but not in WWB9.

The error message seen in WWB9 published pages is:-

Code: Select all

Parse error: syntax error, unexpected '=' in /home/aditerum/public_html/demo/XXX/list1/listing.php on line 288
And line 288 of PHP in question is:-

Code: Select all

<div><a href="<?php echo $fileurl;?>" target="_self" class="<?php echo $class;?>" <?php="" echo="" $thumb2;?="">><img src="<?php echo $includeurl; ?>dlf/<?php echo $icon;?>" alt="<?php echo $files[$i];?>"/><strong><?php echo $filename;?></strong> <em><?php echo round(filesize($includeurl.$leadon.$files[$i])/1024);?> Kb -    <?php echo date ("M d Y h:i:s A", filemtime($includeurl.$leadon.$files[$i]));?></em><?php echo $thumb;?></a></div>
As I understood it, this error message generally means a closing php tag is missing e.g. ?> but [a] why would it work in WWB8 and not in 9 and as far as I can see all closing tags are in place...so maybe it is something else?

We need George!!! :)
Aditerum - No longer supporting WWB extensions - refer to CJS.
Aditerum - No longer supporting WWB templates - refer to CJS.


WWB 9.4; Ext Builder 4.2; Windows 10 64bit; Intel Core i7-3770 Processor 3.40Ghz; 16.0Gb RAM
Death to Internet Explorer!

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

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

Post by WWBman » Tue Jul 09, 2013 2:42 pm

I am in no way a php expert but it seems that there are 3 extraneous ="" in that line. I don't know what should have been generated by the extension.
If you remove these it works (on my test).
I have no idea why it should be like this on wwb9.

User avatar
Adendum
 
 
Posts: 728
Joined: Fri Apr 22, 2011 4:50 pm
Location: London, UK
Contact:

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

Post by Adendum » Tue Jul 09, 2013 3:14 pm

WWBman,

Good spot! You are 100% accurate ... but something odd is happening...

The code in Extension Builder reads:-

Code: Select all

<div><a href="<?php echo $fileurl;?>" target="$targetwindow$" class="<?php echo $class;?>"<?php echo $thumb2;?>><img src="<?php echo $includeurl; ?>dlf/<?php echo $icon;?>" alt="<?php echo $files[$i];?>" /><strong><?php echo $filename;?></strong> <em><?php echo round(filesize($includeurl.$leadon.$files[$i])/1024);?> Kb -    <?php echo date ("M d Y h:i:s A", filemtime($includeurl.$leadon.$files[$i]));?></em><?php echo $thumb;?></a></div>
And as you can see those three ="" are not there.

With the page published using WWB8 I get this :-

Code: Select all

<div><a href="<?php echo $fileurl;?>" target="_self" class="<?php echo $class;?>"<?php echo $thumb2;?>><img src="<?php echo $includeurl; ?>dlf/<?php echo $icon;?>" alt="<?php echo $files[$i];?>" /><strong><?php echo $filename;?></strong> <em><?php echo round(filesize($includeurl.$leadon.$files[$i])/1024);?> Kb -    <?php echo date ("M d Y h:i:s A", filemtime($includeurl.$leadon.$files[$i]));?></em><?php echo $thumb;?></a></div>
But if I publish the same page using WWB9 I get this :-

Code: Select all

<div><a href="<?php echo $fileurl;?>" target="_self" class="<?php echo $class;?>" <?php="" echo="" $thumb2;?="">><img src="<?php echo $includeurl; ?>dlf/<?php echo $icon;?>" alt="<?php echo $files[$i];?>"/><strong><?php echo $filename;?></strong> <em><?php echo round(filesize($includeurl.$leadon.$files[$i])/1024);?> Kb -    <?php echo date ("M d Y h:i:s A", filemtime($includeurl.$leadon.$files[$i]));?></em><?php echo $thumb;?></a></div>
Pablo....need your input here I think.
Aditerum - No longer supporting WWB extensions - refer to CJS.
Aditerum - No longer supporting WWB templates - refer to CJS.


WWB 9.4; Ext Builder 4.2; Windows 10 64bit; Intel Core i7-3770 Processor 3.40Ghz; 16.0Gb RAM
Death to Internet Explorer!

User avatar
Adendum
 
 
Posts: 728
Joined: Fri Apr 22, 2011 4:50 pm
Location: London, UK
Contact:

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

Post by Adendum » Tue Jul 09, 2013 4:50 pm

The problem of the extraneous ="" is caused by the HTML Beautifier setting. Once turned off the problem is eliminated. Pablo has been notified and he will look at a fix in the next update.

Isn't he awesome!
Aditerum - No longer supporting WWB extensions - refer to CJS.
Aditerum - No longer supporting WWB templates - refer to CJS.


WWB 9.4; Ext Builder 4.2; Windows 10 64bit; Intel Core i7-3770 Processor 3.40Ghz; 16.0Gb RAM
Death to Internet Explorer!

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

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

Post by WWBman » Tue Jul 09, 2013 5:03 pm

Excellent.

User avatar
Adendum
 
 
Posts: 728
Joined: Fri Apr 22, 2011 4:50 pm
Location: London, UK
Contact:

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

Post by Adendum » Thu Aug 29, 2013 3:53 pm

jolas wrote:Another question if I may. Is it possible to have a reverse sort as an option for initial display?

Thanks.
Not today, maybe in the future.
Aditerum - No longer supporting WWB extensions - refer to CJS.
Aditerum - No longer supporting WWB templates - refer to CJS.


WWB 9.4; Ext Builder 4.2; Windows 10 64bit; Intel Core i7-3770 Processor 3.40Ghz; 16.0Gb RAM
Death to Internet Explorer!

Vlastimil
 
 
Posts: 58
Joined: Sun Oct 28, 2012 8:19 pm
Location: Czech Republic

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

Post by Vlastimil » Sun Oct 13, 2013 6:29 pm

Hi, it`s please possible add language translation possiblity for all text used into this extension? When my domestic language is not english, I manualy change always in generated code some words ( in section (3) "Sort by Filename", etc.), date and time formats, etc. Some texts is possible changed (as "File upload Title"), but not all. This same is with date and time format, we use in my country (and in most next European countries) different format - maybe best idea is possiblility to change default parameters for generated php date function.
I can help you with this or when you be agrre and send me part of source code, i can made this for you.
My next thing is possibility hide sections (1) or (2), this has been in most cases duplicated and as last
add possibility to be user can add pictures for users added file types.

Thanks for this extension.

User avatar
Adendum
 
 
Posts: 728
Joined: Fri Apr 22, 2011 4:50 pm
Location: London, UK
Contact:

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

Post by Adendum » Mon Oct 14, 2013 1:02 pm

Vlastimil wrote:Hi, it`s please possible add language translation possiblity for all text used into this extension? When my domestic language is not english, I manualy change always in generated code some words ( in section (3) "Sort by Filename", etc.), date and time formats, etc. Some texts is possible changed (as "File upload Title"), but not all. This same is with date and time format, we use in my country (and in most next European countries) different format - maybe best idea is possiblility to change default parameters for generated php date function.
I can help you with this or when you be agrre and send me part of source code, i can made this for you.
My next thing is possibility hide sections (1) or (2), this has been in most cases duplicated and as last
add possibility to be user can add pictures for users added file types.

Thanks for this extension.
Updated version available from Extension Manager.

A new section "Configurable Text" allows you to set the heading text for the three columns. I have also provided an option list for the data formats. For simplicity I have provided 8 date configuration options, using the international date standard ISO 8601. ( International standard ISO 8601 (Representation of dates and times) defines unambiguous written all-numeric big-endian formats for dates, such as 1999-12-31 for 31 December 1999, and time, such as 23:59:58 for 23 hours, 59 minutes, and 58 seconds. )
PHP Directory Listing Properties.jpg
Aditerum - No longer supporting WWB extensions - refer to CJS.
Aditerum - No longer supporting WWB templates - refer to CJS.


WWB 9.4; Ext Builder 4.2; Windows 10 64bit; Intel Core i7-3770 Processor 3.40Ghz; 16.0Gb RAM
Death to Internet Explorer!

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

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

Post by WWBman » Mon Oct 14, 2013 4:56 pm

I went into Extension Manager to update and it didn't show the update for PHP Directory Listing.
I currently have version 3.0.1 installed 08/29/2013.
Should it have shown the update and what version is the updated one?

User avatar
Adendum
 
 
Posts: 728
Joined: Fri Apr 22, 2011 4:50 pm
Location: London, UK
Contact:

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

Post by Adendum » Mon Oct 14, 2013 5:15 pm

WWBman wrote:I went into Extension Manager to update and it didn't show the update for PHP Directory Listing.
I currently have version 3.0.1 installed 08/29/2013.
Should it have shown the update and what version is the updated one?
I would uninstall that first. Then try again.

You should see this via Ext Mngr
Extension Manager.jpg
And this when it's on the page - v1.0.0.9
PHPDirlist.jpg
Aditerum - No longer supporting WWB extensions - refer to CJS.
Aditerum - No longer supporting WWB templates - refer to CJS.


WWB 9.4; Ext Builder 4.2; Windows 10 64bit; Intel Core i7-3770 Processor 3.40Ghz; 16.0Gb RAM
Death to Internet Explorer!

Post Reply