Random Photo Display mod

From TNG_Wiki
Jump to: navigation, search
Ambox notice.png Random Photo Display mod applies to TNG version all
TNG All


Random Photo Display mod
Summary Makes changes for displaying a random image and related information on Home Page.
Validation The mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 30 June 2018
Download link Random_photo_display_v12.0.1.4.zip
TNG 12.0.1

Random_photo_display_v9.0.0.0.zip

TNG 8.0
TNG 9.0
TNG 10.0
TNG 11.0
Download stats See download statistics
Author(s) Graham Chamberlain
Homepage Random Photo Display mod (This page)
Mod Support My Mod Support
Contact Developer My Mod Support
Latest Mod 12.0.1.4 for TNG V12.0.1
Min TNG V 8.0.0 using integrated Mod Manager
TNG 7.1.0 requires manual installation of Mod Manager
Max TNG V 12.0.1+
Files modified
randomphoto.php
Related Mods
Notes


Introduction

This mod was developed to enable an image border and display of media description for a random image. A mouse-over on the image will display a 'tooltip' in a pop-up with the text you have entered in the 'Description' field of the 'Media Information' section of Admin/Media edit.


Developer

Graham Chamberlain developed this mod.


Requirements

  • A working TNG installation.
  • An installed current version of the Mod Manager
  • A backup of your TNG randomphoto.php file.

Automated Installation

  1. Download the appropriate file for your TNG version from the download links in the mod summary area in the upper right.
  2. Extract the random_photo_display_v9.0.0.0.zip to your /mod folder.
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the random_photo_display_v9.0.0.0.cfg.


Custom Text Additions

Image Source: Add the following to your customconfig.php: '$rp_mediatypeID = "photos";' (without the single outer quotes);
this is the default setting which you should change to the appropriate (Collection ID) value for your alternative choice of images.

Note: The Collection ID can be found if you select/edit the relevant collection in Admin/Media.


Image Size: You may like to display your random image a bit larger than the default. Add your preferred maximum image size to customconfig.php (in the root TNG folder) as in the following example:

      $rp_maxwidth = "250";
      $rp_maxheight = "200";


Image Border: The mod contains reference to the style 'bordrandimage' for controlling the colour and shape of a border for the random image. On the author's (template8) website this is defined as:

  /* border colour for randomimage */
  .bordrandimg{
  border: 1px solid #211A16;
  border-radius: 4px;
  }
Note: If you want an image border you will need to add this style to your mytngstyle.css file, and edit the border and/or border-style appropriately.

In the event of a problem with your TNG site

  1. Try using the Mod Manager Remove capability
  2. Or copy your randomphoto.php file to your TNG directory
  3. * all should be well now


Revision History

Version Date Contents
v12.0.1.4 30 Jun 2018 Compatible with TNG v12.0.1
v9.0.0.0 27 March 2012 Initial version

TNG User sites using this mod

If you download and install this mod, please add your TNG sites to the table below

URL User Note Mod-Version/TNG-Version User-language
Chamberlain & Eidenbenz Genealogy Graham Chamberlain Mod developer V12.0.1.4/12.0.1 EN, NL, FR, DE, ES
Zausmers and More-smers Joyaa Antares Contented user V9.0.0.0/TNG 9.1.0 EN
KingsThings Chronicle Garry King Scared Newby V9.0.0.0 / TNG V9.2.1 / Template 10 EN
Genealogy of the Weir and Drain Families Beverley Stimpson Public Site 9.0.0.0 / 11.1.2 EN
The Road to Ethel Alicia Clemmons Public site TNG v. 12.0.3 EN
... ... ... ...

Site List