Good news comes better late than never, and with that in mind the plugin should now be uploaded to wordpress.com and be fully functional.
There have been several changes to how the plugin looks and work, which have taken me through several libraries, feature lists and bugs. It’s a bit of a patch job so I make no guarantees for stability, usability, security, or risks to global warming. The innards are a complete mess, but it appears to work. Since nobody came here for stories I’ll cut straight to the ‘how to’:
To access your dropbox you will need to set up a dropbox app in order to get a consumer key and a secret key.
1) Go to https://www.dropbox.com/developers/apps
2) Click “Create an App”
3) Add a name and description
4) Copy and paste the two codes in thee corresponding text boxes of the plugin options screen
To display the box use the shortcode with these parameters:
Name (default value) – description
home() – root folder, case sensitive, ex: /Photos
separator(~) – folder separator used in displayed box
hometext(home) – text for link to specified root
dirsfirst(true) – display directories before files
orderby(date) – parameter to order files and folders, possible values: date, size, type
orderdir(1) – 1 for asending -1 for descending
showdirs(true) – show directories in box
dateformat(l jS \of F Y h:i:s A) – format for date
allowdownload(true) – allow download of files, can be true/false
allownavigate(true) – alow folder navigation, can be true/false
columns(INDSD) – order of columns I:icon, N:name, D:date, S:size, a column may appear more than one time or not at all
asctxt(▲) – text used for link for ascending ordering
desctxt(▼) – text used for link for ascending ordering
ordering(true) – allow user to order the files/folders
allowupload(false) – allow user to upload files to current folder
In order to add icons place files in the ‘images’ folder(located in the plugin folder). File names must be ‘[extension of file].png’. For example ‘txt.png’ will be used as the icon for all *.txt files, ‘folder.png’ will be used for folders, and ‘default.png’ will be used for everything without a match.
As the plugin uses this wonderful library a special thanks goes out to its creator.
Note: the home parameter must be defined as
home=”/pathto/folder”
and NOT
home=”pathto/folder”
or
home=”/pathto/folder/”
or
home=”pathto/folder/”
CLICK FOR THE DEMO PAGE | CLICK TO DOWNLOAD THE LATEST VERSION
To do:
- home parameter correction
- pagination
- upload forms
- option to hide files
- compatibility with folder restricted app
- thumbnails
- cache
Q:Has this plugin made you famous? rich? the envy of all your friends? or just been really useful? Want to show your appreciation but don’t know how?
A:You can buy me a beverage of your choice:
Pingback: Dropbox plugin for wordpress | Software
Pingback: The Dropbox Plugin for WordPress | Greenbrook
Pingback: MMXII