Gallery3:Modules:under photo text - Gallery Codex
Personal tools

Gallery3:Modules:under photo text

From Gallery Codex

Under Photo Text

Puts the description of an album or photo under that photo's thumbnail..

Description

Puts the description of an album or photo under that photo's thumbnail. User will see the description on mouseover in the default theme.


Installation

This module may be downloaded from the forums here.

To install, extract the "underPhotoText" folder from the zip file into your Gallery 3 modules folder.
Afterwards log into your Gallery web site as an administrator and activate the module in the Admin -> Modules menu.
no configuration required.

Customization

The description is truncated to 100 characters in /modules/underPhotoText/helpers/underPhotoText_theme.php

   /* Check length of string */
   if(strlen($description)>100){
     $results = substr($item->description,0,100)."...";

Adjust the 100 to your liking.

Links and other HTML in description issue

If you have links and other HTML that get truncated the page will not render properly.
Cut HTML string without breaking the tags: This modification: http://galleryproject.org/forum_module_edit_tinymce#comment-384307 will handle this properly.