attached code brings in a new module to display an image gallery through simpleviewer, will takeover the default display from image gallery
code should be safe, but backup, backup, backup and dont use on a live site because i just didnt got around to test it much, consider early alpha
there is another module for this http://drupal.org/node/241384 from flash_gallery but personally i dont like how it duplicates on the image gallery code, i do duplicate as well but less code, and my goal is to eliminate this through a patch to provide a better display hook in image gallery
im also looking for benefits to going through swfobject simpleviewer (would be easy to integrate), as an _added option_ to direct integration
it doesnt adhere to drupal coding style, if enough interest in this to make it into the CVS, ill modify and also remove the simpleviewer code from the module (which is now there for your convenience)
please leave comments on the code functionality, test & review, ill also answer any questions you might have related.. also bear in mind im not an experienced drupal programmer :-)
besides the admin page introduced, settings from image gallery itself affect its output (most likely youll want to up the images per page setting to something higher to not get the drupal pager below simpleviewer, note that simpleviewer doesnt recommend more than 50)
you will also want to tweak the fixed width/height settings as the auto width/height might be too big (even though i think i calculate this correctly), set width to 100% and test browser resizing with your theme
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | screeshot.gif | 2.1 KB | zappa |
| image_gallery_simpleviewer.tgz | 28.91 KB | abaddon |
Comments
Comment #1
abaddon commentedfor reference, SimpleViewer is a free (but not open source) flash image gallery http://www.airtightinteractive.com/simpleviewer/
Comment #2
zappa commentedI'm trying to use your module, when the flash window (at http://mysite/?q=image/tid/2 for example) appears it says "gallery not found".
Screenshot in the attachment.
Have you got any solution?
Thanks a lot
Comment #3
abaddon commentedhi zappa, i will probably need to roll an installation of it since i havent used it after integration
can you post here or send me a link to your gallery setup? im more interested in the page source of the page in question as well as the xml feed that is listed in this source from where simpleviewer gets its data, or if you can attach those 2 here
Comment #4
Scott J commentedAny idea what would cause thumbnails to show as X X X X ?
Comment #5
abaddon commentedjust wrong paths generated in the xml feed for simpleviewer, would help to see this first hand
Comment #6
sunGiven that (a different) Image module is in Drupal 7 core, the contrib Image module remains minimally maintained now. It won't see any new features. Instead, we're trying hard to make upgrades to D7 work. See project page for details. Thanks!