iionly / gifts
Send Gifts to your Friends.
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:elgg-plugin
Requires
- composer/installers: >=1.0.8
This package is auto-updated.
Last update: 2024-11-12 06:29:40 UTC
README
Latest Version: 2.3.1
Released: 2018-06-02
Contact: iionly@gmx.de
License: GNU General Public License version 2
Copyright: (c) iionly, Galdrapiu, Christian Heckelmann
Installation
If upgrading from a version older than version 2.3.1 please read the upgrade instructions below first!
- If you have a previous version of the Gifts plugin installed, please disable it and then remove the gifts plugin folder completely before installing the new version,
- Copy the gifts plugin folder into you mod folder,
- Enable the Gifts plugin in the admin section of your site (Configure - Plugins),
- Configure your gifts in the admin section of your site (Configure - Settings - Gifts).
Upgrading
Starting with version 2.3.1 of the Gifts plugin the gift images are no longer saved in and served from the images subdirectory within the gifts plugin folder in mod but are saved in and served from the Elgg data directory. There's a migration script available to re-create the gifts images and the gift image thumbnails in the Elgg data directory if you have already used a version of the Gifts plugin older than 2.3.1. The execution of the upgrade script can be triggered from the Gifts plugin settings page. Please check if there's a pending upgrade displayed there after upgrading to version 2.3.1 or newer of the Gifts plugin.
The upgrade script can't handle the migration. if you have used a version below 0.1.0 of the Gifts plugin up to now and uploaded pictures to the images folder. In this case you have to upload the pictures again within the Gifts admin menu.
When upgrading from a version newer than 0.1.0 to 2.3.1 or newer, you will need to keep the images subdirectory in the Gifts plugin folder until you have successfully finished the migration upgrade. Do as follows:
- Backup the database and data directory of your Elgg site (there can always go something wrong when running a upgrade script that alters database and data directory),
- Backup the images subdirectory (mod/gifts/images) in the gifts plugin folder. Do not remove the images subdirectory yet!
- Disable the Gifts plugin in the admin section of your site,
- Remove all Gifts plugin files and subfolders within the gifts directory EXCEPT the images folder,
- Copy the new version of the Gifts plugin (2.3.1 or newer) into your mod folder,
- Enable the Gifts plugin in the admin section of your site,
- Go to the Gifts plugin settings page (Configure - Settings - Gifts). There should be an upgrade button shown. Click it to execute the migration upgrade,
- After the upgrade has finished the gift images should show up again (on the individual Gifts settings tab page, on the pages of gifts, in the gifts widgets, etc.). Make sure they do to know that the migration has been successful.
- If the migration has been done, you can remove the images folder (mod/gifts/images).
If the migration has failed for some reason, you can either try again (in this case restory the database and data directory from your backup first) or you would have to re-upload the gift images manually again. Hopefully, this won't be necessary. In case you ever need to access the gift images files directory, they are saved within the site_entity subfolder in the data directory (in most cases the subfolder is 1/1/gifts within the data directory).