Difference between revisions of "Regroup Person-Hide Branches"
Robinrichm (talk | contribs) (new v3 of mod) |
|||
Line 1: | Line 1: | ||
{{TNGmod | {{TNGmod | ||
| mod_name = Hide Branch Names | | mod_name = Hide Branch Names | ||
− | | mod_summary = On the Person Profile, hides branch names unless the user is an administrator. | + | | mod_summary = On the Person Profile, hides branch names unless the user is an administrator or has a branch restriction, in which case, only matching branches are shown. |
| mod_validation = | | mod_validation = | ||
− | | download_link = For {{Tv1010}}{{Tv100}}<br />[[Media:hide_branch_names_v10.0.0. | + | | download_link = For {{Tv1010}}{{Tv100}}<br />[[Media:hide_branch_names_v10.0.0.3.zip|hide_branch_names_v10.0.0.3.zip]] |
| download_stats = | | download_stats = | ||
| mod_author = [[User:Robinrichm|Robin Richmond]] | | mod_author = [[User:Robinrichm|Robin Richmond]] | ||
Line 9: | Line 9: | ||
| mod_contact = [http://robinr.org/family/mod_support.php My Mod Support form] | | mod_contact = [http://robinr.org/family/mod_support.php My Mod Support form] | ||
| mod_support = [http://robinr.org/family/mod_support.php My Mod Support form] or [http://tng.community/ TNG Community Forums] | | mod_support = [http://robinr.org/family/mod_support.php My Mod Support form] or [http://tng.community/ TNG Community Forums] | ||
− | | mod_version = 10.0.0. | + | | mod_version = 10.0.0.3 |
| min_TNG_ver = 10.0 | | min_TNG_ver = 10.0 | ||
| max_TNG_ver = 10.1 | | max_TNG_ver = 10.1 | ||
Line 23: | Line 23: | ||
== Purpose of the Mod == | == Purpose of the Mod == | ||
− | + | In the person profile, shows all branch names assigned to the individual being profiled only if the user is an administrator. If a user has a branch restriction, the person profile shows only matching branches. | |
− | + | == Mod Parameters == | |
+ | The one parameter can suppress the display of matching branches for non-administrators with branch restrictions. When the parameter is turned off, only administrators will see branch names in the person profile. | ||
==Compatibility With Other Mods== | ==Compatibility With Other Mods== | ||
− | There are so many | + | There are no apparent conflicts, but there are so many mods that affect the Person Profile that I haven't tested them all against this mod. Please contact me if you encounter any conflicts. |
==Requirements== | ==Requirements== | ||
Line 43: | Line 44: | ||
== In the event of a problem == | == In the event of a problem == | ||
# 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:// | + | # Contact me through [http://www.robinrichmond.com/family/mod_support.php My Mod Support form]. |
== Visualization of this Mod == | == Visualization of this Mod == | ||
Line 54: | Line 55: | ||
|- | |- | ||
| <span style="color: red">'''AFTER:'''</span> | | <span style="color: red">'''AFTER:'''</span> | ||
− | The branch name is now invisible to non-administrators. | + | The branch name is now invisible to non-administrators and to users not restricted by a matching branch. |
| [[Image:hide_branch_names-after.png]] | | [[Image:hide_branch_names-after.png]] | ||
|} | |} | ||
Line 65: | Line 66: | ||
! Date | ! Date | ||
! Note | ! Note | ||
+ | |- | ||
+ | | 10.0.0.3 | ||
+ | | 10.0.0-10.1.1 | ||
+ | | 11 Jul 2015 | ||
+ | | - Followed Ken Roy's suggestion to use the code<br/> | ||
+ | ($allow_edit && $allow_add && $allow_delete && !$assignedtree)<br/> | ||
+ | to determine whether the user is an administrator.<br/> - Added the option to display matching branches to users who have a branch restriction.<br/> - Put the word "Branches" in front of the branch names.<br/> - Includes conditional code to allow a SQL statement to be executed in TNG v10.0 or v10.1 | ||
|- | |- | ||
| 10.0.0.2a | | 10.0.0.2a | ||
Line 94: | Line 102: | ||
! User-language | ! User-language | ||
|- | |- | ||
− | | | + | | [http://www.robinrichmond.com/family/search.php?mylastname=Richmond&myfirstname=Clarence&mybirthyear=1895 Robin Richmond's Genealogy Database] |
| [[User:Robinrichm|Robin Richmond]] | | [[User:Robinrichm|Robin Richmond]] | ||
| Mod developer | | Mod developer | ||
− | | 10.0.0. | + | | 10.0.0.3 |
− | | 10. | + | | 10.1.1 |
| English | | English | ||
|- | |- |
Revision as of 11:09, 11 July 2015
Hide Branch Names | |||
---|---|---|---|
Summary | On the Person Profile, hides branch names unless the user is an administrator or has a branch restriction, in which case, only matching branches are shown. | ||
Validation | |||
Mod Updated | {{{mod_last_update}}} | ||
Download link | For
hide_branch_names_v10.0.0.3.zip | ||
Download stats | |||
Author(s) | Robin Richmond | ||
Homepage | Robin Richmond's Genealogy Database | ||
Mod Support | My Mod Support form or TNG Community Forums | ||
Contact Developer | My Mod Support form | ||
Latest Mod | 10.0.0.3 | ||
Min TNG V | 10.0 | ||
Max TNG V | 10.1 | ||
Files modified | getperson.php | ||
Related Mods | none | ||
Notes |
Purpose of the Mod
In the person profile, shows all branch names assigned to the individual being profiled only if the user is an administrator. If a user has a branch restriction, the person profile shows only matching branches.
Mod Parameters
The one parameter can suppress the display of matching branches for non-administrators with branch restrictions. When the parameter is turned off, only administrators will see branch names in the person profile.
Compatibility With Other Mods
There are no apparent conflicts, but there are so many mods that affect the Person Profile that I haven't tested them all against this mod. Please contact me if you encounter any conflicts.
Requirements
- A working TNG installation.
- An installed current version of the Mod Manager.
- You should backup files listed in the panel on the right.
Automated Installation
- 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.
In the event of a problem
- Try using the Mod Manager Remove capability
- Contact me through My Mod Support form.
Visualization of this Mod
BEFORE:
Note the circled branch name, visible to anyone who can see the person's name. |
|
AFTER:
The branch name is now invisible to non-administrators and to users not restricted by a matching branch. |
Mod Change History
Mod Version | TNG Versions | Date | Note |
---|---|---|---|
10.0.0.3 | 10.0.0-10.1.1 | 11 Jul 2015 | - Followed Ken Roy's suggestion to use the code ($allow_edit && $allow_add && $allow_delete && !$assignedtree) |
10.0.0.2a | 10.0.0-10.1.1 | 1 Jul 2015 | No functional changes. Just simplified the comments. |
10.0.0.2 | 10.0.0-10.1 | 26 Feb 2015 | I was using the wrong TNG constant. v10.0.0.1 would hide branch names from non-administrators, but wouldn't display them for administrators. |
10.0.0.1 | 10.0.0-10.1 | 26 Dec 2014 | New mod; adapted from a incompletely documented, un-credited mod already in use. |
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 | 10.0.0.3 | 10.1.1 | English |
DJCM.DK | Claus Martinussen | Public Site | 10.0.0.2 | 10.1.0 | DA, EN |
Brady Family Tree in Western Australia | Darryl Brady | Public site | 10.0.0.2a | 10.1.1 | EN, DE |