Gallery2:Modules:puzzle - Gallery Codex
Personal tools

Gallery2:Modules:puzzle

From Gallery Codex

puzzle is a Gallery 2 module that allows viewers to turn any of the photos into a puzzle.


Demos

About

  • This module integrates into Gallery2 a puzzle applet written by Tyler Atkins.


Install

These steps will create a directory in the modules location. All the necessary files will be installed inside the puzzle directory.

  • Download the appropriate puzzle file:
  • Gallery 2.0x puzzle.tar.gz
  • Gallery 2.1 puzzle2.1.zip
  • cd to your gallery2/modules directory
  • tar xvzf puzzle.tar.gz or unzip puzzle2.1.zip


These steps will require you to activate and install the module.

  • Within Gallery, navigate to the Admin Options page and select Modules.
  • You will find the Puzzle Module listed in the Display category.
  • Install and Activate the module.


The viewer will now see a "puzzle" link in the sidebar when viewing a photo. Clicking on this link will turn the photo into a puzzle.

Un-Install

The following will uninstall the module from gallery

  • Within Gallery, navigate to the Admin Options page and select Modules.
  • You will find the Puzzle Module listed in the Display category.
  • Deactivate and Uninstall the module.


Manually invoke cleaning of the template cache

  • Select Maintenance from the Admin Options.
  • Run Delete template cache from the System Maintenance tasks list.


Remove system files

  • Remove the puzzle directory and it's contents from the gallery2/modules directory.


Upgrade

To upgrade from a previous release, following the instruction for Un-Install and then the instruction for Install.


Administration

  • No Administration is required for the images in the Gallery to be made into puzzles.
  • If you would like to disable or enable the puzzle feature on a per album basis then you can Edit the album and adjust the Puzzle Options.


Feedback

Use the puzzle discussion thread if you have questions, comments or problems.


History

Version 0.9.0 Initial version of the puzzle module.

Version 0.9.1 It was noticed that version 0.9.0 would not work on sites which implemented permission restrictions on the image that the applet attempted to download by default. I added functionality which iterates through the source and resizes that the viewer has permission to download. The module will then pick an image that is "big enough" for use in the puzzle. If no image can be found, a polite error page will be given. The original aspect ratio of the downloaded image is also respected by the applet.

Version 0.9.2 I added the ability for puzzles to be enabled or disabled on a per album basis. --J.mike.rollins 14:58, 8 December 2005 (PST)