Difference between revisions of "Custom Event Show/Hide"

From TNG_Wiki
Jump to: navigation, search
(TNG User sites using this mod)
(Text replacement - "http://www.royandboucher.com" to "https://www.royandboucher.com")
 
(71 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 +
{{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 />
 +
See [[Collapsible Items]]
 +
}}             
 
{{TNGmod
 
{{TNGmod
 
| mod_name        = [[Custom Event Show/Hide]].
 
| mod_name        = [[Custom Event Show/Hide]].
 
| mod_summary    = This mod hides custom events on a person's page and adds a 'Show/Hide' button where they are normally displayed.
 
| mod_summary    = This mod hides custom events on a person's page and adds a 'Show/Hide' button where they are normally displayed.
|  download_link  = <br /> {{Tv91}}<br  />[http://www.robisonandblythe.org/ccount/click.php?id=35 custevent_showhide_v9.1.0.2beta1.zip]
+
|  download_link  = <br /> {{Tv91}}<br  />[http://www.robisonandblythe.org/ccount/click.php?id=35 custevent_showhide_v9.1.0.2.zip]
 
<hr />
 
<hr />
 
| download_stats = [http://www.robisonandblythe.org/ccount/index.php?action=stats&id=35 See download statistics]<hr />
 
| download_stats = [http://www.robisonandblythe.org/ccount/index.php?action=stats&id=35 See download statistics]<hr />
Line 8: Line 14:
 
| 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.2beta1
+
| mod_version    = 9.1.0.2
 
| min_TNG_ver    = ?
 
| min_TNG_ver    = ?
| max_TNG_ver    = 9.2.1
+
| max_TNG_ver    = 9.2.2
 
|  TNG_file_list  = languages/English-UTF8/cust_text.php<br />languages/English/cust_text.php<br  />getperson.php<br />
 
|  TNG_file_list  = languages/English-UTF8/cust_text.php<br />languages/English/cust_text.php<br  />getperson.php<br />
| related_mods  = [[DoNotMap Custom Events]]<br />[[Person Custom Events]]
+
| related_mods  = [[Show/Hide Events]]<br />[[Show/Hide Person Media]]<br />[[DoNotMap Custom Events]]<br />[[Person Custom Events]]
 
| notes    =   
 
| notes    =   
 
}}
 
}}
Line 20: Line 26:
 
|__TOC__
 
|__TOC__
 
|}
 
|}
 +
 +
  
 
== Purpose of the mod ==
 
== Purpose of the mod ==
This mod hides custom events on a person's page and adds a 'Show' or 'Hide' button where they are normally displayed.<br />
+
This mod is designed to hide/show custom events on a person's page which are dated between birth and death dates of the individual.<br />An alternative mod is [[Show/Hide Events]] which preserves chronological order and allows you to exclude single events.<hr />
Options available to hide parent and family events<br />
+
'''Try it out:''' [http://www.robisonandblythe.org/getperson.php?personID=I17879&tree=RobisonandBlythe Robison and Blythe Genealogy]<hr />
Inspired by Ken Roy, Janice Nation and my personal desire to hide extensive custom events.<br />
 
'''Try it out:''' [http://www.robisonandblythe.org/getperson.php?personID=I17879&tree=RobisonandBlythe Robison and Blythe Genealogy]
 
  
<span style="color: Red">Note: If you have [[Person Custom Events]] mod installed you must remove it!</span>
+
Note: <span style="color: Red">If you have [[Person Custom Events]] mod installed you must remove it!</span><br />
  
 
== Developer ==
 
== Developer ==
  
 
This mod was developed by Jeff Robison with the aid of....<br />
 
This mod was developed by Jeff Robison with the aid of....<br />
Graham Chamberlain, Bart Degryse, & Roger Mitchell.
+
Graham Chamberlain, Bart Degryse, & Roger Mitchell.<br />* [[User:Jefr58|View all mods by Jeff Robison]]
  
 
==Requirements==
 
==Requirements==
Line 49: Line 55:
  
 
There are parameters you can change in Mod Manager after installation by clicking the 'Edit' button for this mod.<br />
 
There are parameters you can change in Mod Manager after installation by clicking the 'Edit' button for this mod.<br />
Version 9.1.0.2beta1 differs from previous version in that you enter the events you '''WANT''' to hide.<br />
+
Version 9.1.0.2 differs from previous version in that you enter the events you '''WANT''' to hide.<br />
It is set up this way to preserve the chronological order of events.
+
'''Note:''' If an unhidden event date falls within the range of selected hidden events it will be displayed after.<br />
 +
'''Note:''' If an event you want to hide occurs after the death event it will be displayed before the death date.
  
 
# A parameter to optionally hide or show events to start is available for edit in Mod Manager after installation.
 
# A parameter to optionally hide or show events to start is available for edit in Mod Manager after installation.
# Parameters to optionally hide parent and family events is available for edit in Mod Manager after installation.
+
# A parameter to optionally hide parent events is available for edit in Mod Manager after installation.<br />    Parameter 2 is ignored unless Parental data on person page is set to 'Show all events and media' in Admin Setup.
 +
# A parameter to optionally hide family events is available for edit in Mod Manager after installation.
 
# A parameter to list events you want to hide is available for edit in Mod Manager after installation.
 
# A parameter to list events you want to hide is available for edit in Mod Manager after installation.
 
* Enter Events You '''Want''' To Hide.
 
* Enter Events You '''Want''' To Hide.
 
* Here you can enter the 'Tag' or  'Type/Description' of events you '''want''' to hide.
 
* Here you can enter the 'Tag' or  'Type/Description' of events you '''want''' to hide.
* You can find the these in Admin/Custom Event Types.
+
* You can find these in Admin/Custom Event Types.
 
* If the event 'tag' is EVEN you will need to enter the 'Type/Description'.
 
* If the event 'tag' is EVEN you will need to enter the 'Type/Description'.
* Each one must be separated with a comma.
+
* Each one must be separated with a comma. '''Do not separate with a comma and space.'''
 
* Example: ALIA,OBIT,_IMMI,1930 U.S. Census
 
* Example: ALIA,OBIT,_IMMI,1930 U.S. Census
* My personal event list is very lengthy.
 
 
'''Suggestion:''' After entering your events copy them to a .txt file for future use.
 
'''Suggestion:''' After entering your events copy them to a .txt file for future use.
  
Line 68: Line 75:
 
# Try using the [[Mod_Manager_-_Installing_Config_Files#Remove_Mod_Steps|Mod Manager Remove]] capability
 
# Try using the [[Mod_Manager_-_Installing_Config_Files#Remove_Mod_Steps|Mod Manager Remove]] capability
 
# Contact me through [http://www.robisonandblythe.org/mod_support.php My Mod Support].
 
# Contact me through [http://www.robisonandblythe.org/mod_support.php My Mod Support].
# Trash the mod.
 
  
 
== Custom Text Additions for Other Languages ==
 
== Custom Text Additions for Other Languages ==
Line 74: Line 80:
 
<br />  
 
<br />  
 
=== German/Deutsch ===
 
=== German/Deutsch ===
Den Umlaut-Buchstaben '''&auml;''' als '''&amp;auml;''' !
+
<syntaxhighlight lang="php" enclose="div">//Custom Events Show/Hide Mod
<pre>
+
$text['1moreevent'] = 'xxx weiteres Ereignis';//xxx Will be replaced with the hidden event count
//Custom Events Show/Hide Mod
+
$text['moreevents'] = 'xxx weitere Ereignisse';//xxx Will be replaced with the hidden event count
$text['1moreevent'] = 'xxx Weitere Ereignis';//xxx Will be replaced with the hidden event count
 
$text['moreevents'] = 'xxx Weitere Ereignisse';//xxx Will be replaced with the hidden event count
 
 
$text['show'] = ' Anzeigen ';
 
$text['show'] = ' Anzeigen ';
 
$text['hide'] = ' Ausblenden ';
 
$text['hide'] = ' Ausblenden ';
</pre>
+
</syntaxhighlight>
  
 
=== Dutch/Nederlands ===
 
=== Dutch/Nederlands ===
<pre>
+
 
 +
<syntaxhighlight lang="php" enclose="div">
 
//Custom Events Show/Hide Mod
 
//Custom Events Show/Hide Mod
 
$text['1moreevent'] = 'xxx Meer Gebeurtenis';//xxx Will be replaced with the hidden event count
 
$text['1moreevent'] = 'xxx Meer Gebeurtenis';//xxx Will be replaced with the hidden event count
Line 90: Line 95:
 
$text['show'] = ' Tonen ';
 
$text['show'] = ' Tonen ';
 
$text['hide'] = ' Verbergen ';
 
$text['hide'] = ' Verbergen ';
</pre>
+
</syntaxhighlight>
  
 
=== French ===
 
=== French ===
<pre>
+
Entrer '''&eacute;''' ce que '''&amp;eacute;''' !
//Custom Events Show/Hide Mod
+
 
$text['1moreevent'] = 'xxx &eacute;v&eacute;nement plus';//xxx Will be replaced with the hidden event count
+
<syntaxhighlight lang="php" enclose="div">//Custom Events Show/Hide Mod
$text['moreevents'] = 'xxx autres &eacute;v&eacute;nements';//xxx Will be replaced with the hidden event count
+
$text['1moreevent'] = 'xxx &eacute;v&eacute;nement plus'; //xxx Will be replaced with the hidden event count
 +
$text['moreevents'] = 'xxx autres &eacute;v&eacute;nements'; //xxx Will be replaced with the hidden event count
 
$text['show'] = ' Afficher ';
 
$text['show'] = ' Afficher ';
 
$text['hide'] = ' Masquer ';
 
$text['hide'] = ' Masquer ';
</pre>
+
</syntaxhighlight>
  
 
=== Spanish ===
 
=== Spanish ===
<pre>
+
Ingres '''&aacute;''' como '''&amp;aacute;''' !
//Custom Events Show/Hide Mod
+
 
 +
<syntaxhighlight lang="php" highlight="5" enclose="div">
 
$text['1moreevent'] = 'xxx m&aacute;s Evento';//xxx Will be replaced with the hidden event count
 
$text['1moreevent'] = 'xxx m&aacute;s Evento';//xxx Will be replaced with the hidden event count
 
$text['moreevents'] = 'xxx m&aacute;s Eventos';//xxx Will be replaced with the hidden event count
 
$text['moreevents'] = 'xxx m&aacute;s Eventos';//xxx Will be replaced with the hidden event count
 
$text['show'] = ' Mostrar ';
 
$text['show'] = ' Mostrar ';
 
$text['hide'] = ' Ocultar ';
 
$text['hide'] = ' Ocultar ';
</pre>
+
</syntaxhighlight>
 +
 
 +
 
 +
== Visualization of events collapsed ==
  
== Visualization of this mod collapsed ==
 
  
 
{|
 
{|
Line 117: Line 126:
 
|}
 
|}
  
== Visualization of this mod expanded ==
+
 
 +
== Visualization of events expanded ==
  
 
{|
 
{|
Line 123: Line 133:
 
|[[Image:showhideexpanded.jpg|930px|right]]
 
|[[Image:showhideexpanded.jpg|930px|right]]
 
|}
 
|}
 +
  
 
== TNG User sites using this mod ==
 
== TNG User sites using this mod ==
Line 136: Line 147:
 
! User-language
 
! User-language
 
|-
 
|-
| [http://www.robisonandblythe.org/ Robison and Blythe Genealogy]
+
| [https://www.royandboucher.com/tng/getperson.php?personID=I187&tree=T0001 Our Acadian, French-Canadian, and Maine Ancestors]
| [[User:Jefr58|Jeff Robison]]
 
| Mod developer
 
| 9.1.0.2beta1
 
| 9.2.1
 
| English
 
|-
 
 
 
| [http://www.royandboucher.com/tng/getperson.php?personID=I187&tree=T0001 Our Acadian, French-Canadian, and Maine Ancestors]
 
 
| [[User:Ken Roy|Ken Roy]]
 
| [[User:Ken Roy|Ken Roy]]
| Better mod than Person Custom Event
+
| Now using the [[Show/Hide Events]] mod
| 9.1.0.2beta1
+
|  
| 9.2.0
+
| 9.2.2
 
| English, French
 
| English, French
 
|-
 
|-
Line 175: Line 178:
 
| Joyaa Antares
 
| Joyaa Antares
 
| Great Mod - thanks
 
| Great Mod - thanks
| 9.1.0.1
+
| 9.1.0.2
| 9.2.0
+
| 9.2.1
 
| English
 
| English
 
|-
 
|-
Line 182: Line 185:
 
| [[User:hiraeth|Graham Chamberlain]]
 
| [[User:hiraeth|Graham Chamberlain]]
 
| ...
 
| ...
| 9.1.0.1
+
| 9.1.0.2
| 9.2.1
+
| 9.2.2
 
|GB, DE, FR, ES, NL
 
|GB, DE, FR, ES, NL
 
|-
 
|-
Line 189: Line 192:
 
| [[User:HiTowerUK|Roger Mitchell]]
 
| [[User:HiTowerUK|Roger Mitchell]]
 
| Another great idea from Jeff!
 
| Another great idea from Jeff!
| 9.1.0.2beta1
+
| 9.1.0.2
 
| 9.2.1
 
| 9.2.1
 
| English
 
| English
 
|-
 
|-
| ---
+
| [http://genealogywings.com/ GenealogyWings]
| ---
+
| [[User:JMM|John Mark Motyer]]
| ---
+
| Public site
| ---
+
| 9.1.0.2 beta1
| ---
+
| 9.2.1
| ---
+
| EN, DE, RU
 +
|-
 +
| [http://www.ourfamilyhistories.org/getperson.php?personID=I159420&tree=00 Our Family Histories]
 +
| [[User:Bsl20b50|Bryan S. Larson]]
 +
| Another great mod!
 +
| 9.1.0.2
 +
| 9.2.2
 +
| English
 
|-
 
|-
 
|}
 
|}

Latest revision as of 14:19, 17 November 2016

Ambox notice.png This mod only applies to V9

The Custom Event Show/Hide mod is obsolete with TNG V10 since the functionality has been included in TNG
See Collapsible Items

TNG 9.0


Custom Event Show/Hide.
Summary This mod hides custom events on a person's page and adds a 'Show/Hide' button where they are normally displayed.
Validation {{{mod_validation}}}
Mod Updated {{{mod_last_update}}}
Download link
TNG 9.1


custevent_showhide_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
languages/English-UTF8/cust_text.php
languages/English/cust_text.php
getperson.php
Related Mods
Notes



Purpose of the mod

This mod is designed to hide/show custom events on a person's page which are dated between birth and death dates of the individual.
An alternative mod is Show/Hide Events which preserves chronological order and allows you to exclude single events.
Try it out: Robison and Blythe Genealogy

Note: If you have Person Custom Events mod installed you must remove it!

Developer

This mod was developed by Jeff Robison with the aid of....
Graham Chamberlain, Bart Degryse, & Roger Mitchell.
* View all mods by Jeff Robison

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 Person Custom Events 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.

After Installation

There are parameters you can change in Mod Manager after installation by clicking the 'Edit' button for this mod.
Version 9.1.0.2 differs from previous version in that you enter the events you WANT to hide.
Note: If an unhidden event date falls within the range of selected hidden events it will be displayed after.
Note: If an event you want to hide occurs after the death event it will be displayed before the death date.

  1. A parameter to optionally hide or show events to start is available for edit in Mod Manager after installation.
  2. A parameter to optionally hide parent events is available for edit in Mod Manager after installation.
    Parameter 2 is ignored unless Parental data on person page is set to 'Show all events and media' in Admin Setup.
  3. A parameter to optionally hide family events is available for edit in Mod Manager after installation.
  4. A parameter to list events you want to hide is available for edit in Mod Manager after installation.
  • Enter Events You Want To Hide.
  • Here you can enter the 'Tag' or 'Type/Description' of events you want to hide.
  • You can find these in Admin/Custom Event Types.
  • If the event 'tag' is EVEN you will need to enter the 'Type/Description'.
  • Each one must be separated with a comma. Do not separate with a comma and space.
  • Example: ALIA,OBIT,_IMMI,1930 U.S. Census

Suggestion: After entering your events copy them to a .txt file for future use.

In the event of a problem

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

Custom Text Additions for Other Languages

Note: the config file only includes the English language custom text, 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 of course.

German/Deutsch

//Custom Events Show/Hide Mod
$text['1moreevent'] = 'xxx weiteres Ereignis';//xxx Will be replaced with the hidden event count
$text['moreevents'] = 'xxx weitere Ereignisse';//xxx Will be replaced with the hidden event count
$text['show'] = ' Anzeigen ';
$text['hide'] = ' Ausblenden ';

Dutch/Nederlands

//Custom Events Show/Hide Mod
$text['1moreevent'] = 'xxx Meer Gebeurtenis';//xxx Will be replaced with the hidden event count
$text['moreevents'] = 'xxx Meer Gebeurtenissen';//xxx Will be replaced with the hidden event count
$text['show'] = ' Tonen ';
$text['hide'] = ' Verbergen ';

French

Entrer é ce que &eacute; !

//Custom Events Show/Hide Mod
$text['1moreevent'] = 'xxx &eacute;v&eacute;nement plus';  //xxx Will be replaced with the hidden event count
$text['moreevents'] = 'xxx autres &eacute;v&eacute;nements';  //xxx Will be replaced with the hidden event count
$text['show'] = ' Afficher ';
$text['hide'] = ' Masquer ';

Spanish

Ingres á como &aacute; !

$text['1moreevent'] = 'xxx m&aacute;s Evento';//xxx Will be replaced with the hidden event count
$text['moreevents'] = 'xxx m&aacute;s Eventos';//xxx Will be replaced with the hidden event count
$text['show'] = ' Mostrar ';
$text['hide'] = ' Ocultar ';


Visualization of events collapsed

Showhidecollapsed.jpg


Visualization of events expanded

Showhideexpanded.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
Our Acadian, French-Canadian, and Maine Ancestors Ken Roy Now using the Show/Hide Events mod 9.2.2 English, French
Grogan mob Margaret Grogan Turner 9.1.0.0 9.2.1 English
Turner mob Margaret Grogan Turner 9.1.0.0 9.2.1 English
my family Oname.gif (no public site) see User:ojay see User:ojay D,(NL),(GB)
The Zausmer Forest (private site) Joyaa Antares Great Mod - thanks 9.1.0.2 9.2.1 English
Chamberlain & Eidenbenz Genealogy Graham Chamberlain ... 9.1.0.2 9.2.2 GB, DE, FR, ES, NL
Mitchell Families Online Roger Mitchell Another great idea from Jeff! 9.1.0.2 9.2.1 English
GenealogyWings John Mark Motyer Public site 9.1.0.2 beta1 9.2.1 EN, DE, RU
Our Family Histories Bryan S. Larson Another great mod! 9.1.0.2 9.2.2 English