Gallery3:Modules:photowidget - Gallery Codex
Personal tools

Gallery3:Modules:photowidget

From Gallery Codex

Photowidget

Display a set of blocks on the sidebar. Inspired from roytanck.com

Description

Adds four configurable blocks to show items in a flash sphere on the sidebar.

  • Items in the current album.
  • Recently added items.
  • Popular items.
  • Popular items within the last X days. (X being configurable from module admin page)

Up to 20 images shown simultaneously
The reason to limit the number of images has to do with performance, but you’ll also see nasty visual side effects if the images start to overlap their neighbors.

Installation

Usage

  • Admin -> settings -> photowidget. Edit the tile, height, width, background color and transparency for the four blocks.
    • Also, if using the 'popular photos within the last X days', be sure to set the amount of days you want to look back on.
  • Reorder, add delete the block you desire in the sidebar:
    • admin -> Appearance -> Manage sidebar. Move to or remove from 'Active blocks'.
  • Ability to choose the type of page the block shows on, either photo pages, collections or both. Configured with check-boxes on the admin page
  • Set the transparency if you find that the widget shows through the slideshow or other modal windows. This might affect performance on some clients browsers.

Screen shots

Sidebar block:
Photowidget.jpg


Admin page:
Admin dashboard photowidget.png

Customization

From a sphere to an ellipse

Some users like to use an ellipse and not a sphere. Two files below to replace the existing photowidget.swf that will adjust the widget to be an ellipse.

  • photowidget.swf that is 1.5 times taller than wide. Adjust Height and width in block settings to accommodate.
  • photowidget.swf that is 2.0 times taller than wide. Adjust Height and width in block settings to accommodate.


External example

In order to have this widget on a external page this is the code required:

<object type="application/x-shockwave-flash" 
     data="http://WWW.EXAMPLE.com/gallery3/modules/photowidget/lib/photowidget.swf" width="200" height="200">
	<param name="movie" value="http://WWW.EXAMPLE.com/gallery3/modules/photowidget/lib/photowidget.swf" />
	<param name="bgcolor" value="#ffffff" />
	<param name="AllowScriptAccess" value="always" />
	<param name="flashvars" value="feed=http://www.EXAMPLE.com/gallery3/index.php/photowidget/recent_xml/" />
	<p>This widget requires Flash Player 9 or better</p>
</object>

Replace WWW.EXAMPLE with your domain name. Adjust the width and height for your requirements.

Notes

The reason to limit the number of images to 20 has to do with performance, but you’ll also see nasty visual side effects if the images start to overlap their neighbors.

Discussion

http://galleryproject.org/forum_module_photowidget