[Elgg 1.8-1.12 & 2.X: Gifts]

Warning: This plugin has't been updated in over 5 years. It may no longer be maintained.

What you can do to help:

Send gifts to other users.

Last updated
Recommended Releases
Elgg Release Download Date Links
2.32.3.1 (40.2 kB)2018-Jun-02
2.22.0.0 (37.03 kB)2015-Oct-11
2.12.0.0 (37.03 kB)2015-Oct-11
2.02.0.0 (37.03 kB)2015-Oct-11
1.121.10.6 (36.75 kB)2015-Oct-11
1.111.10.6 (36.75 kB)2015-Oct-11
1.101.10.6 (36.75 kB)2015-Oct-11
Show all releases

Here's the Gifts plugin for Elgg 1.8 (or newer) originally developed by Christian Heckelmann (https://community.elgg.org/plugins/384907) that I already had updated for Elgg 1.7 previously.

This version of the Gifts plugin works with the Elggx Userpoints plugin (https://community.elgg.org/plugins/813379) but you can also use the Gifts plugin standalone. If you intend to use the Userpoints plugin you need at least version 1.8.1beta4 - best to use always the latest version available.

Installation:

If upgrading from a version older than version 2.3.1 please read the upgrade instructions below first!

  1. 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,
  2. Copy the gifts plugin folder into you mod folder,
  3. Enable the Gifts plugin in the admin section of your site (Configure - Plugins),
  4. 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:

  1. 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),
  2. Backup the images subdirectory (mod/gifts/images) in the gifts plugin folder. Do not remove the images subdirectory yet!
  3. Disable the Gifts plugin in the admin section of your site,
  4. Remove all Gifts plugin files and subfolders within the gifts directory EXCEPT the images folder,
  5. Copy the new version of the Gifts plugin (2.3.1 or newer) into your mod folder,
  6. Enable the Gifts plugin in the admin section of your site,
  7. Go to the Gifts plugin settings page (Configure - Settings - Gifts). There should be an upgrade button shown. Click it to execute the migration upgrade,
  8. 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.
  9. 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).

Stats

  • Category: Misc
  • License: GNU General Public License (GPL) version 2
  • Updated: 2018-6-2
  • Downloads: 6287
  • Recommendations: 24

Other Projects

View iionly's plugins