Show/Hide Person Media

From TNG_Wiki
Revision as of 17:06, 22 December 2013 by KenRoy (talk | contribs) (updated to only show the lowest level of TNG required for the mod)
Jump to navigation Jump to search
Show/Hide Person Media.
Summary This mod will hide/show media on a person's page. A toggle icon is added to the media label.
Validation {{{mod_validation}}}
Mod Updated {{{mod_last_update}}}
Download link
TNG 9.1


showhide_pers_media_v9.1.0.2.zip


Download stats See download statistics
Author(s) Jeff Robison
Homepage Robison and Blythe Genealogy
Mod Support TNG Forums
Contact Developer My Mod Support
Latest Mod 9.1.0.2
Min TNG V ?
Max TNG V 9.2.2
Files modified
personlib.php
Related Mods
Notes



Purpose of the mod

This mod will hide/show media on a person's page to reduce 'excessive' displays.
A expand/collapse toggle icon is added to the media label. (Photos, Histories, etc.)


Try it out: Robison and Blythe Genealogy


Developer

This mod was developed by Jeff Robison.

Known Mod Conflicts

There is a conflict with Compact Person Media mod but there is no logical reason to use both mods.

Requirements

  • A working TNG installation.
  • An installed current version of the Mod Manager.

Automated Installation

  1. Remove and delete current (if any) version of this mod.
  2. Download the .zip file. Upload and Extract to the mods folder.
  3. Note: If you have Compact Person Media mod installed you must remove it!
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install.

Custom Text Additions

Note that config file only includes the English language changes, so if you support multiple languages you can modify the config file to add the custom text for those other languages, or manually add the following custom text to each of your other languages with appropriate translations.


$text['photosfor'] = "Photos for";
$text['familyphotosfor'] = "Family photos for";


After Installation

There are parameters you can change in Mod Manager after installation by clicking the 'Edit' button for this mod.

  1. A parameter to optionally hide or show media to start is available for edit in Mod Manager after installation.
  2. A parameter to set the minimum allowed rows before hiding is available for edit in Mod Manager after installation.
  3. Label column not wide enough after installation?
  • Increase the number of pixels in the class below and add to css/mytngstyle.css and/or template(x)/css/mytngstyle.css.
.labelcol {
    width:115px;
}

In the event of a problem

  1. Try using the Mod Manager Remove capability
  2. Contact me through My Mod Support.

Visualization of media collapsed

Shmediacollapsed.jpg

Visualization of media expanded

Shmediaexpanded.jpg

TNG User sites using this mod

Please add your site if you use this modification.

URL User Note Mod-Version TNG-Version User-language
Robison and Blythe Genealogy Jeff Robison Mod developer 9.1.0.2 9.2.2 English
Our Roy and Boucher Family Ken Roy Tested the mod for Jeff 9.1.0.0a 9.2.2 English, French
Mitchell Families Online Roger Mitchell Yet another useful mod from Jeff! 9.1.0.0 9.2.2 English
Zausmers and More-smers Joyaa Antares Thanks Jeff. Very neat. 9.1.0.0 9.2.1 English
g.nomi William Vincent Integrated with WordPress 9.1.0.0 9.2.2 EN