Difference between revisions of "Random Photo Display mod"

From TNG_Wiki
Jump to navigation Jump to search
(Text replacement - "{{CURRENTLOGGEDUSER}}" to "{{#replace:{{CURRENTLOGGEDUSER}}}}")
Line 7: Line 7:
 
| mod_summary    = Makes changes for displaying a random image and related information on Home Page.
 
| mod_summary    = Makes changes for displaying a random image and related information on Home Page.
 
| mod_validation  = The mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]]
 
| mod_validation  = The mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]]
| download_link  = [http://www.katiandgraham.com/genealogy/ccount/click.php?id=20&user={{CURRENTLOGGEDUSER}}&page={{PAGENAMEE}} Random_photo_display_v9.0.0.0.zip]{{Tv80}}{{Tv90}}{{Tv100}}{{Tv110}}
+
| download_link  = [http://www.katiandgraham.com/genealogy/ccount/click.php?id=20&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} Random_photo_display_v9.0.0.0.zip]{{Tv80}}{{Tv90}}{{Tv100}}{{Tv110}}
 
| download_stats = [http://www.katiandgraham.com/genealogy/ccount/index.php?action=stats&groupid=13 See download statistics]
 
| download_stats = [http://www.katiandgraham.com/genealogy/ccount/index.php?action=stats&groupid=13 See download statistics]
 
| mod_author      = Graham Chamberlain
 
| mod_author      = Graham Chamberlain

Revision as of 16:06, 8 March 2017

Restricted Downloads of Random Photo Display mod are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account Restricted
Caution If you have trouble downloading with Google Chrome, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox


Caution


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 {{{mod_last_update}}}
Download link 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 9.0.0.0 for TNG V11,V10,V9,V8 and V7
Min TNG V 8.0.0 using integrated Mod Manager
TNG 7.1.0 requires manual installation of Mod Manager
Max TNG V 11+
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: 2px 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
v9.0.0.0 27 March 2012

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 V9.0.0.0/10.0.0 EN, FR, DE, SP
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
... ... ... ... ...

Site List