Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 26, 2012, 03:20:26 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
155541
Posts in
21713
Topics by
7737
Members
Latest Member:
simpleguy3
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
kitDirList - access to /MEDIA directories
Pages: [
1
]
Go Down
Author
Topic: kitDirList - access to /MEDIA directories (Read 1161 times)
Ralf (Berlin)
Offline
Posts: 1314
kitDirList - access to /MEDIA directories
«
on:
February 18, 2011, 08:06:56 AM »
kitDirList
replaces
DirList
and has a couple of new features like:
provide public or strong protected access to folders within /MEDIA directory
uses KeepInTouch categories or WebsiteBaker groups for authentication
can show folders recursive
support file descriptions
...
Please read the README.txt within the kitDirList add-on archive for a brief english description, using parameters, descriptions a.s.o. ...
Many thanks to Armin Ipfelkofer for english translation of EN.php and README.txt!
Requirements:
WebsiteBaker 2.8.1
PHP 5.2
dbConnect_LE
installed
Dwoo
installed
UTF-8 charset is used
recommend:
KeepInTouch
Download kitDirList
Regards
Ralf
«
Last Edit: February 18, 2011, 08:09:14 AM by Ralf (Berlin)
»
Logged
nuke
Offline
Posts: 27
Re: kitDirList - access to /MEDIA directories
«
Reply #1 on:
February 24, 2011, 08:39:46 PM »
This works perfect - Thank you so much! I was looking for something exactly like this!
Just something I noticed with the droplet, I had to use it like this:
e.g. Using a protected directory ("Folder") only accessible to WB groups "Administrators", "otherGroup", and "otherGroup2".
[[kit_dirlist?=&media=kit_protected/Folder&wb_group=Administrators,otherGroup,otherGroup2]]
Note the =
&
at the start, or else it was not recognizing the first parameter - this was not clear in the ReadMe; which made it sound like it should be "[[kit_dirlist?=media..." (quote from ReadMe [The first parameter you attach to the droplet kit_dirlist starts with an "?". Next character is an "=" followed by the value or values assigned to the parameter. Each additional parameter starts with an "&".] might want to update, and show an example of using the droplet with some parameters to avoid confusion.
Thanks again =)
-Mike
Logged
Ralf (Berlin)
Offline
Posts: 1314
Re: kitDirList - access to /MEDIA directories
«
Reply #2 on:
February 24, 2011, 08:47:20 PM »
Quote from: nuke on February 24, 2011, 08:39:46 PM
This works perfect - Thank you so much! I was looking for something exactly like this!
Quote
Just something I noticed with the droplet, I had to use it like this:
Thank you for your hint - can you please check the readme.txt again and express it in a right way?
Regards
Ralf
Logged
nuke
Offline
Posts: 27
Re: kitDirList - access to /MEDIA directories
«
Reply #3 on:
February 24, 2011, 10:58:30 PM »
Sure thing...
I would change the following text:
--------------
Sequence of parameters is insignificant. The first parameter you attach to the droplet kit_dirlist starts with an "?". Next character is an "=" followed by the value or values assigned to the parameter. Each additional parameter starts with an "&".
--------------
To:
--------------
The order or amount of parameters is insignificant. The first parameter you attach to the droplet kit_dirlist starts with an "?=&" followed by the value or values assigned to the parameter. Each additional parameter starts with an "&".
Example with a single parameter:
Let's say I'd like to sort files in the Media directory in ascending order, the droplet command would be:
[[kit_dirlist?=&sort=asc]]
Another Example with multiple parameters:
I want to protect a directory called "SecretFolder", and make it accessible only to WebsiteBaker Groups "Group1" and "Group2". I would first create this directory under /Media/kit_protected/ with the files to be protected placed inside /Media/kit_protected/SecretFolder/ExampleFile.pdf
I also want these files to be displayed in ascending order, the command would be:
[[kit_dirlist?=&media=kit_protected/SecretFolder&wb_group=Group1,Group2&sort=asc]]
--------------
Hope that makes sense, and thanks again =)
Logged
Ralf (Berlin)
Offline
Posts: 1314
Re: kitDirList - access to /MEDIA directories
«
Reply #4 on:
February 25, 2011, 04:50:47 AM »
Quote from: nuke on February 24, 2011, 10:58:30 PM
Let's say I'd like to sort files in the Media directory in ascending order, the droplet command would be:
[[kit_dirlist?=&sort=asc]]
ok - I see the problem. To explain it: to attach the first parameter you use a
?
- for example:
[[kit_dirlist
?
sort=asc]]
to attach further parameters you use a
&
- for example:
[[kit_dirlist
?
media=kit_protected/SecretFolder
&
wb_group=Group1,Group2
&
sort=asc]]
the first sequence you used:
?=&
works but is not correct. Hope, I have not confused you now!
Regards
Ralf
Logged
nuke
Offline
Posts: 27
Re: kitDirList - access to /MEDIA directories
«
Reply #5 on:
February 25, 2011, 03:19:42 PM »
Ah, I see, in the ReadMe it is a bit confusing:
Sequence of parameters is insignificant. The first parameter you attach to the droplet kit_dirlist starts with an "
?
".
Next character is an "="
followed by the value or values assigned to the parameter. Each additional parameter starts with an "&".
I took that to mean it started as
?=PARAMETER
which would not work, but kit_dirlist?=&PARAMETER would work, but, like you said, it is incorrect. Thanks for clearing that up. I've updated my site to the proper syntax.
---
Knowing this now and re-reading it I understand, I'd still suggest an example is shown (like you did above) or modify the text a bit, something like:
---
Sequence of parameters is insignificant. For the first parameter; call the droplet with "kit_dirlist" followed by "?" and then the parameter you wish to use followed by an "=" then the value or values assigned to the parameter. Each additional parameter starts with an "&" and values can be assigned the same way.
e.g.
[[kit_dirlist?Parameter=value&Parameter2=OtherValue]]
---
Hrmm, that sounds a bit awkward as well - oh well, it works, it is easy to use, and thats all that matters, keep up the good work Ralf! You guys are the WB community!
-Mike
«
Last Edit: February 25, 2011, 03:39:08 PM by nuke
»
Logged
Ralf (Berlin)
Offline
Posts: 1314
Re: kitDirList - access to /MEDIA directories
«
Reply #6 on:
March 31, 2011, 11:12:30 AM »
I've just release
kitDirList 0.19
with a completed and updated english EN.php and a new NL.php - many thanks to Erik van Iterson for translation!
Since release 0.18 kitDirList also support the upload of files to public and protected directories.
Download:
kitDirList 0.19
Regards
Ralf
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...