Gallery3:Modules:externals - Gallery Codex
Personal tools

Gallery3:Modules:externals

From Gallery Codex

Externals

module to allow viewing of certain items outside of the gallery3 pages.

Description

Returns a thumb of a photo or album, with metadata about that item.

Operation

Latest Album:

    http://EXAMPLE.com/gallery3/index.php/externals?block_id=latest_album

Latest Photo:

    http://EXAMPLE.com/gallery3/index.php/externals?block_id=latest_photo

Random Album:

    http://EXAMPLE.com/gallery3/index.php/externals?block_id=random_album

Random Photo:

    http://EXAMPLE.com/gallery3/index.php/externals?block_id=random_photo

To call this on an outside page you would do this:

   <?php
   $imglink = file_get_contents("http://EXAMPLE.com/gallery3/index.php/randimg?block_id=latest_album", "r");
   echo "$imglink";
   ?>


Installation

Unpack content in modules folder.
Activate the module: Login -> Admin -> Modules. Check the box next to the module. Click update at the bottom of the page.