PicLens Example Code

dldege's picture

At our meeting last night, http://groups.drupal.org/node/13812, I presented the PicLens module for Drupal and showed how to hook up your own custom modules into the PicLens module API.

I have attached my example module for Drupal 5 and the Drupal 5 version of PicLens.

To use this module install the PicLens add-on and then

  1. Download pldemo.zip.txt, rename to pldemo.zip and unzip and install the pldemo module in the normal manner and enable in the module admin
  2. Enable the upload module if not already enabled and enable file attachments for the 'page' node type
  3. Create or edit a page node and attach one or more JPG or PNG images to it - I don't have full mimetype support in the demo for other PicLens supported media and that can be left to add as an exercise
  4. Save the node
  5. Click 'Start Slideshow' in the node body or the PicLens icon in the browser.

Enjoy and reply here with questions.

Related Links:

http://www.cooliris.com/
http://developer.cooliris.com/faq.php
http://drupal.org/project/piclens

Dan DeGeest
Lead Software Developer
iMed Studios
http://www.imedstudios.com

AttachmentSize
PicLensDemo.zip_.txt1.66 KB
Groups:
Login to post comments