Commit 10b51ad0 authored by Jonathan Michalon's avatar Jonathan Michalon

Change file location and version req for 0.8 and update README accordingly

parent 9d0205dc
Galette Files
=============
A simple plugin for galette to let members manage small files (currently only download).
A simple plugin for Galette to let members manage small files (currently only download).
Members have access to files in the left menu and administrators from the member
list or the member profile.
Installation
------------
Put the plugin in a subdirectory of the `plugins` directory, then go inside it, in the `lang` directory
and run `make` to compile the translations. You must have `make` and `gettext` for this.
You may of course compile elsewhere and copy the files afterwards.
License
-------
......@@ -14,10 +20,10 @@ This project is placed under GPLv3.
Notes
-----
To "upload" files for users, put them in /plugin/root/directory/data/ID where `ID`
To "upload" files for users, put them in /galette/install/path/data/files/for_adh/ID where `ID`
is the users' ID in the database. You may find it for example in URLs: `?id_adh=42`
means that the current browsed users' ID is "42".
This plugin is based on the fullcard plugin and tested with Galette 0.7.8 only.
This plugin is based on the fullcard plugin and tested with Galette 0.7.8 an 0.8.2.2 only.
Icons are from Tango theme.
......@@ -41,7 +41,7 @@ $this->register(
'Manage small files for members', //Short description
'Jonathan Michalon', //Author
'0.1', //Version
'0.7.8', //Galette compatible version
'0.8', //Galette compatible version
null //Permissions needed - not yet implemented
);
......
......@@ -64,7 +64,7 @@ function human_filesize($bytes, $decimals = 2) {
}
/* base path for data */
$adhpath = 'data/' . $adh->id;
$adhpath = GALETTE_DATA_PATH . '/files/for_adh/' . $adh->id;
/* if file already given, download (thanks Colomban) */
if (isset($_GET['file'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment