zikula-modules/Files — pull request #7 by jguille2 (2014-02-01 23:31:56+00:00)
Title: Sharing Files Module - 1.0.1 version

Main goals were...
------------------------
- Establish a flexible configuration to ensure stable operation in different contexts: standard sites, multisites and *Àgora* sites.
- Get a file.php (to make public urls) without starting Zikula engine, to share light urls (For example, we think in a zk page with news, wit diferent articles having diferents images from Files... and in old operation, every requested file was a zikula page loading!)
- Update xinha plugin to get a simply but real file picker operation.

(Changes details bellow)

This request
----------------
- Tag Previous last commit like *1.0.0*
- This pull request takes all development working. Master branch last commit is a stable 1.0.1 release.
- We can close #3 (current xinha plugin has the *inserts* functions requested), #4 ( current configuration prevents access problems and #5 (InteractiveInstaller is removed).
- Then, last commit will be the 1.0.1 version but we can wait in tagging ... for more testing

Thank you...

Joan

--------------------
Changes from 1.0.0
--------------------------
- Removed *InteractiveInstall* functions (deprecated on zk 1.3.6).
- Firs idea was move this functions to a *Controller-Admin-config* functions. Unnecesary after 1.0.1 goals.
- Removed also *Files_init.tpl*.

- Created function *checkingModule* in *Controller/User*.
- Every controller function will call it to check module configuration.
- **folderPath**:
- For multisites (*$ZConfig['Multisites']['multi']* = 1) folderPath will be *$ZConfig['Multisites']['filesRealPath'] . '/' . $ZConfig['Multisites']['siteFilesFolder'];*.
- If global *$ZConfig['FilesModule']['folderPath']* use this like folderPath. It checks if this folder exist and is writable.
- If globar var not exist, use *$ZConfig['System']['datadir']* like folderPath. It checks if this folder exist (and if not, it create it) and if is writeable (and if not, it change acces permissions).

- **usersFiles**:
- ~~If global *$ZConfig['FilesModule']['usersFiles']* use this like usersFiles.~~ Files folder keeps managing like a module_var (*usersFolder*). Default value is 'usersFiles'.
- Function checks if this folder exists (or creates it) and if it's wirteable (or changes permissions).

- Failed checks report a warning template.
- Overcame checks return all config vars: folderPath, usersFiles, multisites.

- Changed file.php not to start *Zikula engine* in any case.
- With global $ZConfig, files folder is known in every case.
- Removed also Controller-User-notPublicFile function, Files_user_notPublicFile.tpl and lang strings

- Added Xinha plugin resource to repo

- Updated file.php request. Return to Controller-External functions and templates.
- Fixed ajax problems in thumbnail functions.
- Fixed insert problems
- Removed Controller-User request and fix popup creation problems.

- Fixed problems win zip/unzip functions
- No zip *.htaccess*, *.locked* and *.tbn* folders.
- Updated PclZib lib to 2.8.2 and add callback function to skip these files

- Changes in extenal templates
- New option to insert pictures (not only thumbnails). Only in public folders, add option to thumbnail img, insert img and inset thumbnails.
- Updated file links: url for public folders and *title* message for no-public.
- Added new functions to editor.response: *insertImg*, *insertLink*, *copyURL* and *gotoURL*.
- Added jquery_toogle menu with the new editor.responses.
- Added alert message to no-public files links.
- Updated warnings and template messages.
- Added *select all* feature (also in user template).
- Added core.css style to external template, and also *referential* jquery lib loading.

- Agora implementation. If *$ZConfig['iwmodules']['agora']* is *true*, module use *Àgora* functions (actually use *getDiskInfo* function and *$ZConfig["centre"]["nomPropi"]* var.

- Update module: version number (1.0.1), installer and upgrade function.

- Remake catalan translation.

- Add documentation

Note

- Problems with editor plugin, when focus is in the editor but cursor is not in the textarea. Really is a Xinha plugin issue.