MultiImage Module

The MultiImage module provides the capability to display random images and text in a block.

Go Directly To:
Requirements |Installation |Administration Guide |Block Set Up |User Guide |To Do |Developer Guide |Links

Features

  1. Random image block.
    Images and optional text are randomly displayed in a block. Multiple MultiImage blocks are supported, each with it's own group of images.
  2. Block image can be a link.
    Link activity can be saved in a history table. Link can open a separate browser window.
  3. Start/Stop date.
    Images can have a future date to start displaying. A stop date parameter is also provided.
  4. Image text is supported.
    Image captions can be entered.
  5. Click history can be tracked

Changes

Version 1.0 - Initial release

Version 1.01

Version 1.1

Requirements

  1. Developed for Postnuke Content Manage System. This module has only been tested on version 7.2.3 and 7.2.6. It is 99% compliant.
  2. mySQL database space - 3 tables will be created.
|MultiImage Top |

Installation

  1. Download the MultiImage.zip file into your modules directory and extract everything using the appropriate utility. This should create a 'MultiImage' directory under the Postnuke 'modules' directory.
  2. Go to 'Admin->Modules' and click on 'Regenerate'.
  3. Find the MultiImage module in the resulting list and click on 'Initialize'.
  4. Again find the MultiImage module in the module list and click on 'Activate'.
  5. Go to 'Admin->MultiImage' and click on the link. See the administration guide. At least one image will be entered to make the MultiImage block functional.
  6. Add a MultiImage block to your PostNuke site.
|MultiImage Top |

Upgrade from Previous Releases

  1. Download the MultiImage.zip file and extract everything into the 'modules/MultiImage' directory.
  2. Go to 'Admin->Modules' and click on 'Regenerate'.
  3. Find the MultiImage module in the resulting list and click on 'Upgrade'.
  4. Again find the MultiImage module in the module list and click on 'Activate'.

Languages

The only language supplied is English.
|MultiImage Top |

Administration - Adding/Maintaining Images

Go to 'Admin->MultiImage'

Report Access

Add New Image

An image group is created when the 1st image is added to it.

Update Existing Image

This section will not be active until there is at least 1 image added to the module. After images have been added, the top entry area will look something like this:

Show Active Language
The edit blocks contain the same entry fields (in a more compact format) as the add section. See the add section for compete descriptions.

At the bottom of each edit block there are 2 buttons:

Multiple Languages

To enter text for another language, enter the language ('eng', 'swe', etc.) in the Language text box. All of the images for the selected group will be displayed. In addition, the site language text will be displayed and a text entry area for the alternate language. This is the only change that can be made here.

The language is not edited and can be used in other ways.

|MultiImage Top |

Adding MultiImage Blocks

Note: Only those form fields relavent to MultiImage are listed here.

Go to 'Admin->Blocks->New Block'

Second Form (also block edit)

|MultiImage Top |

Using the MultiImage module

Reports/Admin

Reports are available after defining MultiImage in, for instance, the 'main menu'.

The common form fields available to all reports are:

Built in Reports (* reports are seen by admins only)

|MultiImage Top |

To Do

|MultiImage Top |

Developer Information

The MultiImage module creates/uses 3 tables:
#
# Table structure for table `nuke_multiimage`
#

CREATE TABLE nuke_multiimage (
  pn_group_name varchar(40) NOT NULL default '',
  pn_image_id int(10) NOT NULL auto_increment,
  pn_enabled int(11) NOT NULL default '1',
  pn_first_date date NOT NULL default '1000-01-01',
  pn_last_date date NOT NULL default '9999-12-31',
  pn_image_data mediumblob NOT NULL,
  pn_image_type varchar(10) NOT NULL default '',
  pn_link text NOT NULL,
  pn_link_hist_flag int(11) NOT NULL default '0',
  pn_new_window_flag int(11) NOT NULL default '0',
  pn_text text NOT NULL,
  PRIMARY KEY  (pn_group_name,pn_image_id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `nuke_multiimage_history`
#

CREATE TABLE nuke_multiimage_history (
  pn_group_name varchar(40) NOT NULL default '',
  pn_image_id int(10) NOT NULL default '0',
  pn_entry_date datetime NOT NULL default '0000-00-00 00:00:00',
  pn_history_id int(11) NOT NULL auto_increment,
  pn_link text NOT NULL,
  pn_remote_ip varchar(30) NOT NULL default '',
  PRIMARY KEY  (pn_group_name,pn_image_id,pn_entry_date,pn_history_id)
) TYPE=MyISAM;
# --------------------------------------------------------

#
# Table structure for table `nuke_multiimage_language`
#

CREATE TABLE nuke_multiimage_language (
  pn_group_name varchar(40) NOT NULL default '',
  pn_image_id int(10) NOT NULL default '0',
  pn_language varchar(40) NOT NULL default '',
  pn_text text NOT NULL,
  PRIMARY KEY  (pn_group_name,pn_image_id,pn_language)
) TYPE=MyISAM;

Image access from other applications

Any application can access images from this module. For example to retieve a random image use the following URL:
http://curttimmerman.net/pn/modules/MultiImage/backend.php?function=get_image&group_name=_DEMO
Each refresh will display a random image (there are about 12).
To retrieve a specific image use the following URL:
http://curttimmerman.net/pn/modules/MultiImage/backend.php?function=get_image&group_name=_DEMO&image_id=1

How are the Topic/Section images linked to a MultiImage group?

  1. The elements of the image path are replaced by '..'. For example, 'images/topics/' is replaced by '../../' and becomes the 1st part of the image link.
  2. The module link is appended becomming:
    '../../modules/MultiImage/backend.php?function=get_image&group_name=MyGroupName'
  3. When a topic/Section image is displayed, the full image link becomes:
    'images/topics/../../modules/MultiImage/backend.php?function=get_image&group_name=MyGroupName'
    The ".."'s backs up over 'images/topics' ending up at the PN top level. From here it becomes a simple module (backend.php) call. Because no image_id is specified, ramdom images are returned.


|MultiImage Top |

Credits and Links

This module was created by Curt Timmerman (curt At curttimmerman.net).
Available at the PostNuke Noc

The calendar pop-up is provided by Copyright 2002 Xin Yang

MultiImage does not do any image resizing but I use a great little Windows (free) application to do this. It's simple and easy to use. The only settings I change are the image size and adjust the sharpness.
Find it here - Easy Thumbnails
Some image size settings I use for my site/theme:
MultiImage block images: width:160
Topic/Section images: height:75
photoshare: height:640 width:640
If not specified, the dimension is set to some high value.

|MultiImage Top |