Difference between revisions of "Collapsible Standard Events"

From TNG_Wiki
Jump to navigation Jump to search
(32 intermediate revisions by 9 users not shown)
Line 1: Line 1:
 +
{{restricted}}
 
{{TNGmod
 
{{TNGmod
 
| mod_name        = Collapsible Standard Events
 
| mod_name        = Collapsible Standard Events
 
| mod_summary    = Introduce a new panel in Admin >> Setup >> General Settings
 
| mod_summary    = Introduce a new panel in Admin >> Setup >> General Settings
 
| mod_validation  =
 
| mod_validation  =
| download_link = for {{Tv1011}}[http://ccount.ojay.de/click.php?id=30 Collapsible Standard Events mod v10.1.1.0]
+
| mod_last_update = 10 May 2018
| download_stats = [http://ccount.ojay.de/index.php?action=stats&id=30 Collapsible Standard Events mod v10.1.1.0]
+
| download_link = for {{Tv120}}[https://xerxx.se/modSupport/click/click.php?id=116&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} Collapsible Standard Events mod v12.0.0.0]<hr/>for {{Tv110}}[https://xerxx.se/modSupport/click/click.php?id=45&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} Collapsible Standard Events mod v11.0.0.0]<hr/>for {{Tv1011}}[https://xerxx.se/modSupport/click/click.php?id=15&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} Collapsible Standard Events mod v10.1.1.0]
 +
| download_stats = [https://xerxx.se/modSupport/click/index.php?action=stats&groupid=6 Collapsible Standard Events mods]
 
| mod_author      = Erik Hoppe
 
| mod_author      = Erik Hoppe
 
| mod_url        = [[Collapsible Standard Events]] (this page)
 
| mod_url        = [[Collapsible Standard Events]] (this page)
| mod_support    = [http://tng.community TNG Forums]
+
| mod_support    = [https://xerxx.se/modSupport/index.php?mod=6 My Mod Support]
 
| mod_contact    = [https://xerxx.se/modSupport/index.php?mod=6 My Mod Support]
 
| mod_contact    = [https://xerxx.se/modSupport/index.php?mod=6 My Mod Support]
|  mod_version    = 10.1.1.0 for TNG v10.1.1
+
|  mod_version    = 10.1.1.0 for TNG v10.1.1 - 10.1.2<br/>11.0.0.0 for TNG v11.0.0
 
| min_TNG_ver    = 10.1.1
 
| min_TNG_ver    = 10.1.1
| max_TNG_ver    = 10.1.1
+
| max_TNG_ver    = 12.0.0
 
| TNG_file_list  = See [[Collapsible_Standard_Events#TNG_Modules_Impacted|TNG Modules Impacted]]
 
| TNG_file_list  = See [[Collapsible_Standard_Events#TNG_Modules_Impacted|TNG Modules Impacted]]
 
| related_mods    = [[Show/Hide_Standard_Events]] by Jeff Robison
 
| related_mods    = [[Show/Hide_Standard_Events]] by Jeff Robison
| notes          = Author of '''[https://xerxx.se/tcb TNG Colouring Book]'''<br/> - Colour your site the way you want it.<br/>Mods by me:<br/>[[Maternal_And_Paternal_Lines]]<br/>[[AccessRestriction]]<br/>[[No_Notesring]]<br/>[[Count_Ancestors_n_Descendants]]
+
| notes          = Author of '''[https://xerxx.se/tcb TNG Colouring Book]'''<br/>Mods by me: [[User:XerxX|At my user page]].
 
}}
 
}}
 
{| style="margin-right:0.5 em;" align="right"  
 
{| style="margin-right:0.5 em;" align="right"  
Line 20: Line 22:
  
 
|}
 
|}
== Preface ==
 
 
I want to upgrade my site (TNG v9.1.1) sometime after the summer and have set up a local test-v10.1.1 site. In preparation for the upgrade I'm writing a bunch of mods.
 
 
To test some mods was very time-consuming as I wanted the ''Standard Events'' to be '''collapsible''' but I also wanted to turn them on and off, in no particular order and quickly. ''Testing - testing - testing.''<br/>
 
I soon got tired of the constant typing so I wrote this mod. I think I saved some time, actually.
 
 
'''As I don't have a live TNG v10 site, I'm afraid I can't show the mod in action.''' There are some screen shots below, from the v10.1.1 test site, though.
 
 
  
 
== Purpose of the mod ==
 
== Purpose of the mod ==
  
Introduction of a new panel in '''Adiministrator area >> Setup >> General Settings'''.
+
Introduction of a new panel in '''Administrator area >> Setup >> General Settings'''.
  
 
16 standard events can be made collapsible by selecting TNG standard "Yes" / "No" dropdowns.<br/>
 
16 standard events can be made collapsible by selecting TNG standard "Yes" / "No" dropdowns.<br/>
Line 62: Line 55:
 
== Requirements ==
 
== Requirements ==
  
{{TNG 10.1.1}}
+
{{TNG 10.1.1|and after}}
 
* A working TNG installation.
 
* A working TNG installation.
 
* A backup of all affected files (see the list below)
 
* A backup of all affected files (see the list below)
Line 95: Line 88:
 
== Uninstall ==
 
== Uninstall ==
  
If  you want to completely '''Remove''' (uninstall) this mod and all its tables, you should ng the mod ==
+
If  you want to completely '''Remove''' (uninstall) this mod and all its tables, you should
 
# click the '''Remove''' button to uninstall the mod and then  
 
# click the '''Remove''' button to uninstall the mod and then  
 
# click the '''Delete''' button to delete the config file from the mods folder
 
# click the '''Delete''' button to delete the config file from the mods folder
Line 101: Line 94:
 
<span style="color: Red">After removal: Go to '''Setup >> General Settings''' and click the '''Save''' button</span> to make a new ''config.php'' file which will delete the collaps-flags.
 
<span style="color: Red">After removal: Go to '''Setup >> General Settings''' and click the '''Save''' button</span> to make a new ''config.php'' file which will delete the collaps-flags.
  
Or simply set all selectors in the panel to ''No''...
+
Or simply set all selectors in the panel to ''No'' and Save it to the same ''visual'' effect as uninstalling it.
  
  
Line 111: Line 104:
 
! Date
 
! Date
 
! Description
 
! Description
 +
|-
 +
| V12.0.0.0
 +
| 10 May 2018
 +
| Updated for TNG v12.0.0
 +
|-
 +
| V11.0.0.0
 +
| 18 March 2016
 +
| Updated for TNG v11.0.0
 
|-
 
|-
 
| V10.1.1.0
 
| V10.1.1.0
Line 125: Line 126:
 
| '''Selected Standard Events''' that contains more than date and place are collapsible:
 
| '''Selected Standard Events''' that contains more than date and place are collapsible:
 
|-
 
|-
| [[File:collaps1.png]]<br/><br/>'''All selected (Yes) events start collapsed''':<br/>[[File:collaps2.png]]
+
| [[File:collaps1.png]]<br/><br/>'''All selected ("Yes") events start collapsed''':<br/>[[File:collaps2.png]]
 
| [[file:collaps3.png]]<br/>(Only date and place in '''Died''' and '''Divorced''' = not marked as collapsible)
 
| [[file:collaps3.png]]<br/>(Only date and place in '''Died''' and '''Divorced''' = not marked as collapsible)
 
|-
 
|-
| The testsite has four other mods installed in these images:<br/>[[Count_Ancestors_n_Descendants]] mod, [[No_Notesring]] mod,<br/>copy of [[Life_Dates_Mod]] by Roger Mitchell and<br/>the '''[[AccessRestriction]] mod''' - they all go together fine:<br/>[[file:collaps4.png]]
+
| If the mod is used with [[AccessRestriction]] (v10) or [[Access panel]], and the visitor is not logged in, any Event that would only show icon(s) and the "Log in" text is '''not''' collapsible:<br/>([[Abbreviate First Names]] mod and not posted Remove Gender mod are active here)<br/>[[file:collaps4.png]]
 
|-
 
|-
 
|}
 
|}
Line 135: Line 136:
  
 
== Sites using this mod ==
 
== Sites using this mod ==
Unfortunately I have only a TNG v9.1.1 public site (this mod is for the upgrade)...<br/>
 
'''So''' if you download and install this mod, please add your TNG site to the table below:
 
 
 
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 
|-
 
|-
Line 149: Line 147:
 
| [https://xerxx.se/getperson.php?personID=I36&amp;tree=tredNr2 Andersson, Hoppe, Sahlin, Thorell]
 
| [https://xerxx.se/getperson.php?personID=I36&amp;tree=tredNr2 Andersson, Hoppe, Sahlin, Thorell]
 
| [[User:XerxX|Erik Hoppe]]
 
| [[User:XerxX|Erik Hoppe]]
| Mod author. Please read above
+
| Mod author.
| Not this mod
+
| 11.0.0.0
| 9.1.1
+
| 11.1.2
 
| Swedish, German, English
 
| Swedish, German, English
 
|-
 
|-
 +
| [http://geneagraphie.com/ Families all over the World]
 +
| [[User:Henri_Textor| Hans Weebers]]
 +
| Public/Private
 +
| 11.0.0.0
 +
| 11.0.0.0
 +
| NL/DE/ENG/(FR)
 +
|-
 +
| [https://www.wortelboer.tk/ Wortelboer Genealogy]
 +
| [[User:Bernard57|Bernard Wortelboer]]
 +
 +
| 11.0.0.0
 +
| 11.0.0
 +
| NL, EN
 +
|-
 +
! [https://donquigley.net Quigley Doyle Family Tree]
 +
! [[User:dwqwiz|Don Quigley]]
 +
! Public
 +
! 11.0.0.0
 +
! 11.0.0
 +
| EN
 +
|-
 +
| [https://ouracadianfamily.com/intro.php Our Acadian Family]
 +
| [[User: Randal Suire]]
 +
| Public
 +
| 11.0.0.0
 +
| 11.1.0
 +
| EN, FR
 +
|-
 +
| [https://roeljongman.nl Stamboom Jongman]
 +
| [[User:Roelj|Roel Jongman]]
 +
| Public/Private site
 +
| 10.1.1.0
 +
| 10.1.3
 +
| NL, DE, EN
 +
|-
 +
| [http://bumbery.com/ Bumbery-Wangler]
 +
| [[User:Bob|Bob Bumbery]]
 +
| Public site
 +
| 10.1.1.0
 +
| 11.1.2
 +
| English
 +
|-
 +
| [https://www.treichel-familie.de Treichel-Familie.de]
 +
| [[User:EAndy| A. Treichel]]
 +
| Public & Private
 +
| 12.0.0.0
 +
| 12.0.1
 +
| DE, UK, FR, ES, PL
 
|}
 
|}
 
  
 
== TNG Modules Impacted ==
 
== TNG Modules Impacted ==
Line 168: Line 213:
  
 
[[Category:Mods for TNG v10]]
 
[[Category:Mods for TNG v10]]
 +
[[Category:Mods for TNG v11]]
 +
[[Category:Mods for TNG v12]]
  
 
[[Category:admin_genconfig.php mods]]
 
[[Category:admin_genconfig.php mods]]

Revision as of 14:37, 8 July 2018

Restricted Downloads of Collapsible Standard Events 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


Collapsible Standard Events
Summary Introduce a new panel in Admin >> Setup >> General Settings
Validation
Mod Updated 10 May 2018
Download link for
TNG 12.0
Collapsible Standard Events mod v12.0.0.0
for
TNG 11.0
Collapsible Standard Events mod v11.0.0.0
for
TNG 10.1.1
Collapsible Standard Events mod v10.1.1.0
Download stats Collapsible Standard Events mods
Author(s) Erik Hoppe
Homepage Collapsible Standard Events (this page)
Mod Support My Mod Support
Contact Developer My Mod Support
Latest Mod 10.1.1.0 for TNG v10.1.1 - 10.1.2
11.0.0.0 for TNG v11.0.0
Min TNG V 10.1.1
Max TNG V 12.0.0
Files modified
Related Mods
Notes
Author of TNG Colouring Book
Mods by me: At my user page.


Purpose of the mod

Introduction of a new panel in Administrator area >> Setup >> General Settings.

16 standard events can be made collapsible by selecting TNG standard "Yes" / "No" dropdowns.
The events are are:

  • Name
  • Title
  • Suffix
  • Prefix
  • Nickname
  • Birth
  • Christening
  • Married
  • Divorced
  • Death
  • Burial
  • Baptism (LDS)
  • Confirmation (LDS)
  • Initiatory (LDS)
  • Endowment (LDS)
  • Sealed to Parents (LDS)

Selected events with anything more than a date and a place will be marked as collapsible when displayed on getperson.php.


Developer

This mod was developed by Erik Hoppe


Requirements

TNG version: 10.1.1
  • A working TNG installation.
  • A backup of all affected files (see the list below)
  • An installed current version of the Mod Manager (is already included in TNG v10.1.1)


Installation

  1. Click on the download link, shown in the summary in the upper right corner of the page.
  2. Un-zip the file.
  3. Move/copy/FTP the un-zipped .cfg file to the mods folder of your TNG system.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.


In the event of a problem


Custom Text Additions

Note: The config file includes the English language custom text.
For other languages you can modify the config file to add the custom text or manually add to whatever language you like.

English custom text For Reference Only!

$text['xerxxCollapsibleStd'] = "Collapsible Standard Events";
$text['xerxxSetCollapsible'] = "Select &quot;Yes&quot; for collapsible";


Uninstall

If you want to completely Remove (uninstall) this mod and all its tables, you should

  1. click the Remove button to uninstall the mod and then
  2. click the Delete button to delete the config file from the mods folder

After removal: Go to Setup >> General Settings and click the Save button to make a new config.php file which will delete the collaps-flags.

Or simply set all selectors in the panel to No and Save it to the same visual effect as uninstalling it.


Revision History

Version Date Description
V12.0.0.0 10 May 2018 Updated for TNG v12.0.0
V11.0.0.0 18 March 2016 Updated for TNG v11.0.0
V10.1.1.0 18 May 2015 Introduction.


Visualization of this mod (v10.1.1.0)

The panel in Admin >> Setup >> General Settings (default value for all is No): Selected Standard Events that contains more than date and place are collapsible:
Collaps1.png

All selected ("Yes") events start collapsed:
Collaps2.png
Collaps3.png
(Only date and place in Died and Divorced = not marked as collapsible)
If the mod is used with AccessRestriction (v10) or Access panel, and the visitor is not logged in, any Event that would only show icon(s) and the "Log in" text is not collapsible:
(Abbreviate First Names mod and not posted Remove Gender mod are active here)
Collaps4.png


Sites using this mod

URL User Note Mod-Version TNG-Version User-language
Andersson, Hoppe, Sahlin, Thorell Erik Hoppe Mod author. 11.0.0.0 11.1.2 Swedish, German, English
Families all over the World Hans Weebers Public/Private 11.0.0.0 11.0.0.0 NL/DE/ENG/(FR)
Wortelboer Genealogy Bernard Wortelboer 11.0.0.0 11.0.0 NL, EN
Quigley Doyle Family Tree Don Quigley Public 11.0.0.0 11.0.0 EN
Our Acadian Family User: Randal Suire Public 11.0.0.0 11.1.0 EN, FR
Stamboom Jongman Roel Jongman Public/Private site 10.1.1.0 10.1.3 NL, DE, EN
Bumbery-Wangler Bob Bumbery Public site 10.1.1.0 11.1.2 English
Treichel-Familie.de A. Treichel Public & Private 12.0.0.0 12.0.1 DE, UK, FR, ES, PL

TNG Modules Impacted

The following TNG Modules are modified, and should be backed up prior to installing this mod:

  • admin_genconfig.php
  • admin_updateconfig.php
  • config.php (not directly by the mod but by the new code in admin_updateconfig.php)
  • personlib.php
  • languages/English/cust_text.php
  • languages/English-UTF8/cust_text.php