Difference between revisions of "Collapsible Standard Events"
Line 9: | Line 9: | ||
| mod_support = [https://xerxx.se/modSupport/index.php?mod=6 My Mod Support] | | 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 |
| min_TNG_ver = 10.1.1 | | min_TNG_ver = 10.1.1 | ||
− | | max_TNG_ver = 10.1. | + | | max_TNG_ver = 10.1.2 |
| 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 | ||
Line 62: | Line 62: | ||
== 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) |
Revision as of 04:18, 9 July 2015
Collapsible Standard Events | ||
---|---|---|
Summary | Introduce a new panel in Admin >> Setup >> General Settings | |
Validation | ||
Mod Updated | {{{mod_last_update}}} | |
Download link | for
| |
Download stats | Collapsible Standard Events mod v10.1.1.0 | |
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 | |
Min TNG V | 10.1.1 | |
Max TNG V | 10.1.2 | |
Files modified | ||
Related Mods | Show/Hide_Standard_Events by Jeff Robison | |
Notes |
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.
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
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
- Click on the download link, shown in the summary in the upper right corner of the page.
- Un-zip the file.
- Move/copy/FTP the un-zipped .cfg file to the mods folder of your TNG system.
- 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
- Try using the Mod Manager Remove capability
- Contact me through My Mod Support
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 "Yes" for collapsible";
Uninstall
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 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 |
---|---|---|
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: |
All selected ("Yes") events start collapsed: |
(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) |
Sites using this mod
Unfortunately I have only a TNG v9.1.1 public site (this mod is for the upgrade)...
So if you download and install this mod, please add your TNG site to the table below:
URL | User | Note | Mod-Version | TNG-Version | User-language |
---|---|---|---|---|---|
Andersson, Hoppe, Sahlin, Thorell | Erik Hoppe | Mod author. Please read above | Not this mod | 9.1.1 | Swedish, German, English |
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