Difference between revisions of "Regroup Person-Date Place"
Robinrichm (talk | contribs) |
Robinrichm (talk | contribs) |
||
(21 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{TNGmod | |
− | |||
| mod_name = Regroup Person-Date Place | | mod_name = Regroup Person-Date Place | ||
− | | mod_summary = | + | | mod_summary = This mod changes the layout of the Person Profile to affect its white space and readability. |
| mod_validation = | | mod_validation = | ||
− | | mod_last_update = | + | | mod_last_update = 11 Nov 2023 |
− | | download_link = [[Media: | + | | download_link = [[Media:Regroup_person-date_place_v14.0.4.20c.zip|14.0.4.20c]]{{Tv1404}} |
+ | <div style='font-size:90%;clear:both;'>See the [[#Revision_History|Revision History]] for older versions</div> | ||
| download_stats = | | download_stats = | ||
| mod_author = [[User:Robinrichm|Robin Richmond]] | | mod_author = [[User:Robinrichm|Robin Richmond]] | ||
− | | mod_url = | + | | mod_url = ''this page'' |
| mod_contact = [http://robinrichmond.com/family/mod_support.php My Mod Support form] | | mod_contact = [http://robinrichmond.com/family/mod_support.php My Mod Support form] | ||
− | | mod_support = [http://robinrichmond.com/family/mod_support.php My Mod Support form | + | | mod_support = [http://robinrichmond.com/family/mod_support.php My Mod Support form] |
− | | mod_version = | + | | mod_version = 14.0.4.20c |
| min_TNG_ver = 12.0 | | min_TNG_ver = 12.0 | ||
− | | max_TNG_ver = | + | | max_TNG_ver = 14.0.4 |
− | | TNG_file_list = getperson.php, personlib.php, | + | | TNG_file_list = getperson.php, personlib.php, globallib.php, genstyle.css, admin_genconfig.php, admin_updateconfig.php |
− | + | | related_mods = [[Mod Settings Blocks]], [[Regroup Person Profile]], The Regroup Person* - family of related mods that affect the Person Profile. | |
− | | related_mods = The Regroup Person* - family of related mods that affect the Person Profile | ||
| notes = This mod can work independently of the other mods in the Regroup Person family. | | notes = This mod can work independently of the other mods in the Regroup Person family. | ||
}} | }} | ||
Line 24: | Line 23: | ||
| __TOC__ | | __TOC__ | ||
|} | |} | ||
− | The | + | The mod two ways that the Person Profile can be made more or less compact. |
− | + | # For each event, the date, place, and value can be made more compact by displaying in one HTML table cell. | |
− | # | + | # The birth/death/age data for relatives (parents, spouses, children) can be expanded to occupy three lines. |
+ | Different users are expected to prefer different formats at different times (perhaps depending on the overall density of a particular Person Profile.) Thus, the format of each of these aspects of the page can be controlled both by mod options and by a '''Spacing''' button on the page - and the spacing button can be suppressed through a mod option. | ||
== Mod Options == | == Mod Options == | ||
− | # | + | # Four options can be specified for Anonymous Visitors, Logged-in Users, and Administrators (i.e. there are 12 checkboxes) |
− | # | + | ## Start with ''less'' Event Date/Place/Value spacing |
− | # | + | ## Start with ''less'' spacing in relatives' birth/death/age data. |
− | # Show a spacing control in the Inner Menu. | + | ## Show a spacing control in the "Inner Menu" - the horizontal light-on-dark menu that is immediately below the tab menu. |
− | # | + | ## Show a second spacing control further down in the profile. |
− | #* | + | # Age format: |
+ | #* (75 years) – the native format | ||
+ | #* (age 75) and (Living, age 75) | ||
− | + | These options are defined and edited at Admin>>Setup>>General Settings, in the new subform '''Mod Settings Blocks''', where the options for various mods are organized into '''[https://tng.lythgoes.net/wiki/index.php?title=Mod_Settings_Blocks Mod Settings Blocks]'''. The options can also be reached in the traditional way - through the mod's '''Edit Options''' button in the Mod Manager. | |
− | |||
− | |||
− | |||
− | |||
− | |||
== Related Mods == | == Related Mods == | ||
− | + | {{RobinBoilerplate | text=msb}} | |
− | + | {{RobinBoilerplate | text=regroup}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Compatibility == | == Compatibility == | ||
− | I | + | Given the number of mods that affect the Person Profile, and the complexity of some of those mods, I would expect there to be some mod conflicts, but I haven't encountered them yet. |
==Installation== | ==Installation== | ||
− | + | {{RobinBoilerplate | text=language}} | |
+ | {{RobinBoilerplate | text=install}} | ||
== Visualizations == | == Visualizations == | ||
− | These visualizations are from version | + | These visualizations are from version 18 of the mod, not version 19. |
{| border="1" cellspacing="1" cellpadding="2" class="wikitable" | {| border="1" cellspacing="1" cellpadding="2" class="wikitable" | ||
|- | |- | ||
Line 89: | Line 80: | ||
== Spacing Styling == | == Spacing Styling == | ||
− | The two spacing schemes implemented by this mod have identical HTML; they are just styled differently. | + | The two spacing schemes implemented by this mod have identical HTML; they are just styled differently. |
<!---------------------- Details Double Toggle ---------------------> | <!---------------------- Details Double Toggle ---------------------> | ||
− | < | + | <span class='mw-collapsible mw-collapsible-content mw-customtoggle-details1 mw-customtoggle-details2' id='mw-customcollapsible-details1' style='text-decoration:underline;color:#0645ad;'>[See Details]</span> |
<div class='mw-collapsible mw-collapsible-content mw-collapsed' id='mw-customcollapsible-details2' style='border:thin solid grey'> | <div class='mw-collapsible mw-collapsible-content mw-collapsed' id='mw-customcollapsible-details2' style='border:thin solid grey'> | ||
− | <div class= | + | <div style='float:right;>[<span class="mw-customtoggle-detail1 mw-customtoggle-detail2" style='text-decoration:underline;c olor:#0645ad;'>Hide details</span>]</div>Events: |
* The native code uses one row of the layout table for the event date and place, and a second row, when needed, for a value. It also places the date and place in two table cells, with a fixed width for the date cell. | * The native code uses one row of the layout table for the event date and place, and a second row, when needed, for a value. It also places the date and place in two table cells, with a fixed width for the date cell. | ||
* The modded code uses one row of the layout table for each event, whether there is an event value or, and combines the data, place, and value cells into one table cell. The date and place are in divs that are expected to float next to each other, and the value is in a third div that may float next to the date and place, or may wind up on a separate line within the same table cell. Styling controls whether the date and place abut each other, or have padding and a border between them, and where the value is positioned. In the more compact spacing, the value is allowed to be on the same line as the date/place, but it will float to a new line when it cannot fit. In the wider spacing, the styling is changed so that | * The modded code uses one row of the layout table for each event, whether there is an event value or, and combines the data, place, and value cells into one table cell. The date and place are in divs that are expected to float next to each other, and the value is in a third div that may float next to the date and place, or may wind up on a separate line within the same table cell. Styling controls whether the date and place abut each other, or have padding and a border between them, and where the value is positioned. In the more compact spacing, the value is allowed to be on the same line as the date/place, but it will float to a new line when it cannot fit. In the wider spacing, the styling is changed so that | ||
Line 106: | Line 97: | ||
== Revision History == | == Revision History == | ||
{| border="0" cellspacing="1" cellpadding="2" class="wikitable" | {| border="0" cellspacing="1" cellpadding="2" class="wikitable" | ||
+ | ! Mod Version !! TNG Version !! Date !! Note | ||
+ | |||
+ | |- style="vertical-align:top;"<!-- ############################################################## --> | ||
+ | | [[Media:Regroup person-date place v14.0.4.20c.zip|14.0.4.20c]] | ||
+ | | 14.0.4 | ||
+ | | 21Mar2024 | ||
+ | | Accommodated underlying changes in TNGv14.0.4 | ||
+ | |||
|- | |- | ||
− | ! | + | | [[Media:Regroup person-date place_v14.0.3.20b.zip|14.0.3.20b]] |
− | |- style="vertical-align:top;" | + | |14.0.3 |
− | | [[Media: | + | |11Nov2023 |
+ | | Accommodated underlying changes in TNGv14.0.3 | ||
+ | |||
+ | |- style="vertical-align:top;"<!-- ####################################################### --> | ||
+ | | [[Media:Regroup person-date place v14.0.0.20.zip|14.0.0.20]] | ||
+ | |14.0-14.0.2 | ||
+ | | 28Jan2023 | ||
+ | | No functional changes. Upgraded to TNGv14 | ||
+ | |||
+ | |- style="vertical-align:top;"<!-- ############################################################## --> | ||
+ | | [[Media:Regroup person-date place v13.0.4.19a.zip|13.0.4.19a]] | ||
+ | | 13.0.4 | ||
+ | | 09Jun2021 | ||
+ | | TNGv13.0.4 added code that <i>could</i> display relatives genders along with their ages wherever relatives' birth/death/age are displayed in the Person Profile. However, I do not believe that the language strings for that are needed for the gender exist, thus I do not believe that this change in the PHP code will result in any changes to the Person Profile. | ||
+ | |||
+ | |- style="vertical-align:top;"<!-- ############################################################## --> | ||
+ | | [[Media:Regroup person-date place v13.0.0.19a.zip|13.0.0.19a]] | ||
+ | | 13.0-13.0.3 | ||
+ | | 09Jun2021 | ||
+ | | | ||
+ | # Remove some redundant spacing that is generated when [[Add Person Siblings Row]] is also installed. | ||
+ | # Hides the suggestion icons and the place details spyglass icons when in Format for Printing mode | ||
+ | |||
+ | |- style="vertical-align:top;"<!-- ############################################################## --> | ||
+ | | [[Media:Regroup person-date place v13.0.0.19.zip|13.0.0.19]] | ||
+ | | 13.0-13.0.3 | ||
+ | | 17Sep2020 | ||
+ | | | ||
+ | # Coordinates differently with Regroup Person Profile so that both aspects of spacing are controlled by this mod. In TNGv12 (and version 18* of these two mods), each mod controlled one aspect of spacing. | ||
+ | # Added an Inner Mod Menu, which is visible only if the ''optional'' [[Inner Mod Menu]] mod is installed. | ||
+ | |||
+ | |- style="vertical-align:top;"<!-- ############################################################## --> | ||
+ | | [[Media:Regroup person-date place v12.0.0.18a.zip|12.0.0.18a]] | ||
| 12.0 - 12.2+ | | 12.0 - 12.2+ | ||
− | | | + | | 16Dec2019 |
| | | | ||
# Provided an alternate display format that looks much like the native Person Profile, and an optional spacing control to switch between the new formats. | # Provided an alternate display format that looks much like the native Person Profile, and an optional spacing control to switch between the new formats. | ||
# Added an Inner Mod Menu, and placed the mod options in a Mod Settings Block | # Added an Inner Mod Menu, and placed the mod options in a Mod Settings Block | ||
− | |- style="vertical-align:top;" | + | |- style="vertical-align:top;"<!-- ############################################################## --> |
− | | [[Media: | + | |[[Media:Regroup person-date place v12.0.0.15.zip|12.0.0.15]] |
| 12.0+ | | 12.0+ | ||
− | | | + | | 24Jul2018 |
| No functional changes; made compatible with TNGv12. | | No functional changes; made compatible with TNGv12. | ||
|- style="vertical-align:top;" <!-- ############################################################## --> | |- style="vertical-align:top;" <!-- ############################################################## --> | ||
Line 128: | Line 159: | ||
| 10.0.1.14 | | 10.0.1.14 | ||
| 10.0.1-10.1.3 | | 10.0.1-10.1.3 | ||
− | | | + | | 17Jul2015 |
| Fixed two old bugs that date back to Regroup Person Profile v1: | | Fixed two old bugs that date back to Regroup Person Profile v1: | ||
# Some event notes were displaying in the wrong HTML table cells. | # Some event notes were displaying in the wrong HTML table cells. | ||
Line 135: | Line 166: | ||
| 10.0.1.13 | | 10.0.1.13 | ||
| 10.0.1-10.1 | | 10.0.1-10.1 | ||
− | | | + | | 03Jan2015 |
| Minor cleanup of end-of-line spacing | | Minor cleanup of end-of-line spacing | ||
|- style="vertical-align:top;" <!-- ############################################################## --> | |- style="vertical-align:top;" <!-- ############################################################## --> | ||
| 10.0.1.12 | | 10.0.1.12 | ||
| 10.0.1-10.1.0 | | 10.0.1-10.1.0 | ||
− | | | + | | 26Dec2014 |
| Initial release; separated this mod from the larger [[Regroup Person Profile]] mod to reduce the chances and consequences of that mod running into conflicts. | | Initial release; separated this mod from the larger [[Regroup Person Profile]] mod to reduce the chances and consequences of that mod running into conflicts. | ||
|} | |} | ||
Line 148: | Line 179: | ||
{| border="0" cellspacing="1" cellpadding="2" class="wikitable" | {| border="0" cellspacing="1" cellpadding="2" class="wikitable" | ||
+ | ! URL !! User !! Note !! Mod-Version !! TNG-Version !! User-language | ||
|- | |- | ||
− | + | | [http://www.robinrichmond.com/family/ Robin Richmond's Genealogy Database] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | [http://www.robinrichmond. | ||
| [[User:Robinrichm|Robin Richmond]] | | [[User:Robinrichm|Robin Richmond]] | ||
| Mod developer | | Mod developer | ||
− | | | + | | 14.0.0.20b |
− | | | + | | {{RobinBoilerplate| text=rrppdp}} |
| English | | English | ||
|- | |- | ||
Line 183: | Line 208: | ||
| 12.0.3 | | 12.0.3 | ||
| EN | | EN | ||
+ | |- | ||
+ | | [http://jarocinscy.pl/drzewo/index.php Baza danych Rodziny Jarocińskich] | ||
+ | | [[User:Mjaro|Michał Jarociński]] | ||
+ | | non-public site | ||
+ | | 13.0.0.19a | ||
+ | | 13.1.2 | ||
+ | | PL, EN | ||
+ | |- | ||
+ | |[https://huygens-vandemoortel-ancestry.be/ Huygens - Van de Moortel] | ||
+ | |[[User:Fluffy82|Tom Huygens]] | ||
+ | |Public/Private on WordPress | ||
+ | |13.0.4.19a | ||
+ | |13.1.2 | ||
+ | |NL | ||
+ | |- | ||
|} | |} | ||
[[Category:Mods for TNG v10]] [[Category:Mods for TNG v11]][[Category:Mods for TNG v12]] | [[Category:Mods for TNG v10]] [[Category:Mods for TNG v11]][[Category:Mods for TNG v12]] | ||
+ | [[Category:Mods for TNG v13]][[Category:Mods for TNG v14]] | ||
[[Category:personlib.php mods]] [[Category:getperson.php mods]] | [[Category:personlib.php mods]] [[Category:getperson.php mods]] | ||
[[Category:admin_genconfig.php mods]] | [[Category:admin_genconfig.php mods]] | ||
[[Category:admin_updateconfig.php mods]] | [[Category:admin_updateconfig.php mods]] |
Latest revision as of 10:21, 21 March 2024
Regroup Person-Date Place | ||
---|---|---|
Summary | This mod changes the layout of the Person Profile to affect its white space and readability. | |
Validation | ||
Mod Updated | 11 Nov 2023 | |
Download link | 14.0.4.20c
See the Revision History for older versions | |
Download stats | ||
Author(s) | Robin Richmond | |
Homepage | this page | |
Mod Support | My Mod Support form | |
Contact Developer | My Mod Support form | |
Latest Mod | 14.0.4.20c | |
Min TNG V | 12.0 | |
Max TNG V | 14.0.4 | |
Files modified | getperson.php, personlib.php, globallib.php, genstyle.css, admin_genconfig.php, admin_updateconfig.php | |
Related Mods | Mod Settings Blocks, Regroup Person Profile, The Regroup Person* - family of related mods that affect the Person Profile. | |
Notes | This mod can work independently of the other mods in the Regroup Person family. |
Purpose of the Mod
This mod formats Event dates, places, and values more compactly than the native Person Profile. I'm not about to say that I've improved it, but I do generally prefer the more compact format, and some other TNG administrators have said that they like it, too.
The mod two ways that the Person Profile can be made more or less compact.
- For each event, the date, place, and value can be made more compact by displaying in one HTML table cell.
- The birth/death/age data for relatives (parents, spouses, children) can be expanded to occupy three lines.
Different users are expected to prefer different formats at different times (perhaps depending on the overall density of a particular Person Profile.) Thus, the format of each of these aspects of the page can be controlled both by mod options and by a Spacing button on the page - and the spacing button can be suppressed through a mod option.
Mod Options
- Four options can be specified for Anonymous Visitors, Logged-in Users, and Administrators (i.e. there are 12 checkboxes)
- Start with less Event Date/Place/Value spacing
- Start with less spacing in relatives' birth/death/age data.
- Show a spacing control in the "Inner Menu" - the horizontal light-on-dark menu that is immediately below the tab menu.
- Show a second spacing control further down in the profile.
- Age format:
- (75 years) – the native format
- (age 75) and (Living, age 75)
These options are defined and edited at Admin>>Setup>>General Settings, in the new subform Mod Settings Blocks, where the options for various mods are organized into Mod Settings Blocks. The options can also be reached in the traditional way - through the mod's Edit Options button in the Mod Manager.
Related Mods
The Mod Settings Blocks mod packages this mod's options into what I call a "Mod Settings Block", which is a set of form fields that formatted and labeled so that it stands out among other options in an Admin>>Setting form. Mod Settings Blocks is a prerequisite for this mod; it must be installed before this mod can be installed.
This mod is compatible with, and part of, My "Regroup Person" family of mods. [Show the family members]
My "Regroup Person" family of mods all affect the Person Profile. All of them can be used independently of Regroup Person Profile, which was the the first and is the most complex member of the family.(I'll add that the reputation of the family has been stained by the fact that Regroup Person Profile is distinctly complex and is incompatible with an awkward number of other Person Profile mods. But, in truth, Regroup Person-Date Place is the only other member of the family that is similarly complex and invasive.)
- Regroup Person Profile - Rearranges the data in and spacing and formatting of the Person Profile. Also (optionally) adds siblings.
- Regroup Person-Branch Members - Turns each of the profiled person's branch names into a hyperlink that pops up a list of branch members. Options control whether anonymous visitors and/or logged-in users are allowed to see branch details.
- Regroup Person-Child2Parent - Hides the display of selected relationships (typically "birth", which would be assumed if it were not displayed) between the profiled person and that person's parents and children.
- Regroup Person-Date Place - Adjusts the spacing used to display (1) Event dates, places, and values and/or (2) The name/birth/death/age data for the profiled person's relatives.
- Regroup Person-Family Indicators - Based on Jeff Robison's Family Indicators Mod, this mod adds flags (i.e. "indicators") next to the names of the profiled person's relatives. The flags provide information about and links to several aspects of those relatives' relatives, including popup profiles and ancestor or descendant charts.
- Regroup Person-Gender Before Birth - Simply moves the Gender "event" so that it appears above the Birth event. (As you would expect, this mod is incompatible with Regroup Person-Remove Gender)
- Regroup Person-Hide Branches - Hides branch names from anonymous visitors and/or logged-in users who are not assigned to the branch.
- Regroup Person-Move Media - Simply moves the media files above the event map.
- Regroup Person-No Living Data - Suppresses display of ANY data about a living or private person the user doesn't have rights to see. By default, TNG will show some data, plus spouses, parents, and children.
- Regroup Person-Remove Gender - Removes the Gender event (the sex) from the event tables, leaving the gender icon next to the name as the sole representation of the person's gender. (As you would expect, this mod is incompatible with Regroup Person-Gender Before Birth)
- Regroup Person-Sources - Allows some source and citation data to be hidden for brevity, and to be displayed as desired.
Compatibility
Given the number of mods that affect the Person Profile, and the complexity of some of those mods, I would expect there to be some mod conflicts, but I haven't encountered them yet.
Installation
This mod includes a typical mod subfolder, with the same base name as the mod's .cfg file. The subfolder is atypical in that no files in it are installed to working TNG folders. However, it does contain critical files that contain the mod's language strings, which the mod does not add to standard cust_text.php files. Instead, the PHP code modified by this mod loads the language strings from files in the mod's languages/ subfolder. Read more about this technique.
[Show Standard Installation Process]
Requirements
- A working TNG installation.
- An installed current version of the Mod Manager.
- You should backup files listed in the panel on the right.
Procedure
- Remove and delete previous version of this mod.
- Backup the files updated by this mod. They are listed in the panel at the upper right.
- Download the .zip file, Extract its .cfg file to the mods folder.
- Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files.
Problems?
- Try using the Mod Manager Remove capability
- Contact me through My Mod Support form.
Visualizations
These visualizations are from version 18 of the mod, not version 19.
Spacing Styling
The two spacing schemes implemented by this mod have identical HTML; they are just styled differently. [See Details]
- The native code uses one row of the layout table for the event date and place, and a second row, when needed, for a value. It also places the date and place in two table cells, with a fixed width for the date cell.
- The modded code uses one row of the layout table for each event, whether there is an event value or, and combines the data, place, and value cells into one table cell. The date and place are in divs that are expected to float next to each other, and the value is in a third div that may float next to the date and place, or may wind up on a separate line within the same table cell. Styling controls whether the date and place abut each other, or have padding and a border between them, and where the value is positioned. In the more compact spacing, the value is allowed to be on the same line as the date/place, but it will float to a new line when it cannot fit. In the wider spacing, the styling is changed so that
- The date div has a minimum width,
- The date and place are separated by a side border,
- The value is forced to a new line, and
- A horizontal border is placed between the date/place and the value.
Revision History
Mod Version | TNG Version | Date | Note |
---|---|---|---|
14.0.4.20c | 14.0.4 | 21Mar2024 | Accommodated underlying changes in TNGv14.0.4 |
14.0.3.20b | 14.0.3 | 11Nov2023 | Accommodated underlying changes in TNGv14.0.3 |
14.0.0.20 | 14.0-14.0.2 | 28Jan2023 | No functional changes. Upgraded to TNGv14 |
13.0.4.19a | 13.0.4 | 09Jun2021 | TNGv13.0.4 added code that could display relatives genders along with their ages wherever relatives' birth/death/age are displayed in the Person Profile. However, I do not believe that the language strings for that are needed for the gender exist, thus I do not believe that this change in the PHP code will result in any changes to the Person Profile. |
13.0.0.19a | 13.0-13.0.3 | 09Jun2021 |
|
13.0.0.19 | 13.0-13.0.3 | 17Sep2020 |
|
12.0.0.18a | 12.0 - 12.2+ | 16Dec2019 |
|
12.0.0.15 | 12.0+ | 24Jul2018 | No functional changes; made compatible with TNGv12. |
10.0.1.15 | 10.0.1-10.1.3 | 20 Feb 2016 | No new end-user functionality; just added Show Mod Names functionality and dependency, and updated the mod number to stay in sync with Regroup Person Profile. |
10.0.1.14 | 10.0.1-10.1.3 | 17Jul2015 | Fixed two old bugs that date back to Regroup Person Profile v1:
|
10.0.1.13 | 10.0.1-10.1 | 03Jan2015 | Minor cleanup of end-of-line spacing |
10.0.1.12 | 10.0.1-10.1.0 | 26Dec2014 | Initial release; separated this mod from the larger Regroup Person Profile mod to reduce the chances and consequences of that mod running into conflicts. |
Sites using this mod
If you download and install this mod, please add your site to the table below.
URL | User | Note | Mod-Version | TNG-Version | User-language |
---|---|---|---|---|---|
Robin Richmond's Genealogy Database | Robin Richmond | Mod developer | 14.0.0.20b |
rrppdp |
English |
Wortelboer Genealogy | Bernard Wortelboer | 10.0.1.13 | 10.1.0 | NL, EN | |
Stamboom Jongman | Roel Jongman | Public/Private site | 10.1.0.15 | 10.1.3 | NL, DE, EN |
Mueller-Diefenbach Genealogy | Bob Mueller | 12.0.0.15 | 12.0.3 | EN | |
Baza danych Rodziny Jarocińskich | Michał Jarociński | non-public site | 13.0.0.19a | 13.1.2 | PL, EN |
Huygens - Van de Moortel | Tom Huygens | Public/Private on WordPress | 13.0.4.19a | 13.1.2 | NL |