Difference between revisions of "Show/Hide Person Media"

From TNG_Wiki
Jump to navigation Jump to search
(31 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 +
{{restricted}}
 +
{{TNGver
 +
| ver = 9
 +
|notes= This mod only applies to V9<br />
 +
The '''{{PAGENAME}} mod is obsolete with TNG V10''' since the functionality has been included in TNG <br />
 +
<span style="color: red">'''TNG V10 action required'''</span>
 +
* if you upgraded over existing environment -- Delete the mod,  DO NOT  attempt to Clean up
 +
*  You '''must''' update Admin >> Setup >> General Settings  >> Media to '''change the Hide personal media''' from No to  '''Yes'''  See [[Collapsible Items]]
 +
}}             
 
{{TNGmod
 
{{TNGmod
 
| mod_name        = [[Show/Hide Person Media]].
 
| mod_name        = [[Show/Hide Person Media]].
 
|  mod_summary    = This  mod will hide/show media on a person's page. A toggle icon is added to the media label.
 
|  mod_summary    = This  mod will hide/show media on a person's page. A toggle icon is added to the media label.
|    download_link  = <br />
+
|    download_link  = <br /> {{Tv91}}<br />[http://www.robisonandblythe.org/ccount/click.php?id=45&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}}  showhide_pers_media_v9.1.0.2.zip]
{{Tv91}}[[Media:showhide_pers_media_v9.1.0.0.zip | showhide_pers_media_v9.1.0.0]]
 
 
<hr />
 
<hr />
| download_stats =  
+
| download_stats = [http://www.robisonandblythe.org/ccount/index.php?action=stats&groupid=9 See download statistics]<hr />
 
| mod_author      = Jeff Robison
 
| mod_author      = Jeff Robison
 
| mod_url        = [http://www.robisonandblythe.org/ Robison and Blythe Genealogy]
 
| mod_url        = [http://www.robisonandblythe.org/ Robison and Blythe Genealogy]
 
| mod_contact    = [http://www.robisonandblythe.org/mod_support.php My Mod Support]
 
| mod_contact    = [http://www.robisonandblythe.org/mod_support.php My Mod Support]
| mod_support    = [http://www.tngforum.us/ TNG Forums]
+
| mod_support    = [http://tng.community/ TNG Community Forums]
| mod_version    = 9.1.0.0
+
| mod_version    = 9.1.0.2
 
| min_TNG_ver    = ?
 
| min_TNG_ver    = ?
 
| max_TNG_ver    = 9.2.2
 
| max_TNG_ver    = 9.2.2
 
|  TNG_file_list  = personlib.php<br  />
 
|  TNG_file_list  = personlib.php<br  />
| related_mods  = [[Custom Event Show/Hide]]<br />[[Show/Hide Events]]
+
| related_mods  = [[Event Toggle Innermenu]]<br  />[[Custom Event Show/Hide]]<br />[[Show/Hide Events]]
 
| notes    =   
 
| notes    =   
 
}}
 
}}
Line 25: Line 33:
  
 
== Purpose of the mod ==
 
== Purpose of the mod ==
This  mod will hide/show media on a person's page to reduce 'excessive'  displays.<br />A expand/collapse toggle icon is added to the media  label.
+
This  mod will hide/show media on a person's page to reduce 'excessive'  displays.<br />A expand/collapse toggle icon is added to the media  label. (Photos, Histories, etc.)
 
<hr />
 
<hr />
 
'''Try  it out:'''  [http://www.robisonandblythe.org/getperson.php?personID=I10335&tree=RobisonandBlythe  Robison and Blythe Genealogy]<hr />
 
'''Try  it out:'''  [http://www.robisonandblythe.org/getperson.php?personID=I10335&tree=RobisonandBlythe  Robison and Blythe Genealogy]<hr />
Line 31: Line 39:
 
== Developer ==
 
== Developer ==
  
This mod was developed by Jeff Robison.
+
This mod was developed by Jeff Robison.<br />* [[User:Jefr58|View all mods by Jeff Robison]]
  
 
== Known Mod Conflicts ==
 
== Known Mod Conflicts ==
  
There  is a conflict with [[Compact Person Media]] mod but there is no logical reason to use both.
+
There  is a conflict with [[Compact Person Media]] mod but there is no '''logical reason''' to use both mods.
  
 
==Requirements==
 
==Requirements==
Line 48: Line 56:
 
# Note: <span style="color: Red">If you have [[Compact Person Media]] mod installed you must remove  it!</span>
 
# Note: <span style="color: Red">If you have [[Compact Person Media]] mod installed you must remove  it!</span>
 
# Follow the normal automated installation for Mod Manager, as shown    in    the example [[Mod Manager - Installing Config Files]] to  install.
 
# 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.
 +
 +
 +
<syntaxhighlight lang="php" enclose="div">
 +
$text['photosfor'] = "Photos for";
 +
$text['familyphotosfor'] = "Family photos for";
 +
</syntaxhighlight>
 +
  
 
== After Installation ==
 
== After Installation ==
Line 97: Line 116:
 
| [[User:Jefr58|Jeff Robison]]
 
| [[User:Jefr58|Jeff Robison]]
 
| Mod developer
 
| Mod developer
 +
| 9.1.0.2
 +
| 9.2.2
 +
| English
 +
|-
 +
| [https://www.royandboucher.com/tng/getperson.php?personID=I39&tree=T0001 Our Roy and Boucher Family]
 +
| [[User:Ken Roy|Ken Roy]]
 +
| Tested the mod for Jeff
 +
| 9.1.0.0a
 +
| 9.2.2
 +
| English, French
 +
|-
 +
| [http://mfo.me.uk Mitchell Families Online]
 +
| [[User:HiTowerUK|Roger Mitchell]]
 +
| Yet another useful mod from Jeff! 
 
| 9.1.0.0
 
| 9.1.0.0
 
| 9.2.2
 
| 9.2.2
 
| English
 
| English
 
|-
 
|-
 +
| [http://www.zausmerforest.com/index.php Zausmers and More-smers]
 +
| [[User:Joyaa|Joyaa Antares]]
 +
| Thanks Jeff.  Very neat.
 +
| 9.1.0.0
 +
| 9.2.1
 +
| English
 +
|-
 +
| [http://www.gnomi.co.uk g.nomi]
 +
| [[User:WilliamVincent|William Vincent]]
 +
| Integrated with WordPress
 +
| 9.1.0.0
 +
| 9.2.2
 +
| EN
 +
|-
 +
| [http://paradiseohana.com/ Farnham &amp; Paradise Ohana]
 +
| [[User:bfparadise|Barbara Paradise]]
 +
| login: tngguest, pwd: tngguest
 +
| 9.1.0.0
 +
| 9.2.2
 +
| English
 
|}
 
|}
 
[[Category:Mods for TNG v9]]
 
[[Category:Mods for TNG v9]]
 
[[Category:personlib.php mods]]
 
[[Category:personlib.php mods]]

Revision as of 21:42, 18 March 2017

Restricted Downloads of Show/Hide Person Media 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 This mod only applies to V9

The Show/Hide Person Media mod is obsolete with TNG V10 since the functionality has been included in TNG
TNG V10 action required

  • if you upgraded over existing environment -- Delete the mod, DO NOT attempt to Clean up
  • You must update Admin >> Setup >> General Settings >> Media to change the Hide personal media from No to Yes See Collapsible Items
TNG 9.0


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 Community 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.
* View all mods 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
Farnham & Paradise Ohana Barbara Paradise login: tngguest, pwd: tngguest 9.1.0.0 9.2.2 English