Difference between revisions of "Relationship to Site Owner Mod"
(One intermediate revision by one other user not shown) | |||
Line 129: | Line 129: | ||
|[[File:RelationshipToSiteOwnerConfiguration.png|right]] | |[[File:RelationshipToSiteOwnerConfiguration.png|right]] | ||
|} | |} | ||
+ | |||
+ | Once installed, you need to click on the Edit button to set the PersonID and Tree for the person relationships are calculated from! See the image on the right. | ||
+ | The Edit screen for the Mod allows you to set: | ||
+ | |||
+ | * ID of the person to base calculations from. Defaults to (I1) | ||
+ | * Tree the base person to base is in. Defaults to (tree1) | ||
+ | * List of "bots" excluded. Defaults to (google, yahoo, baidu, msnbot) | ||
+ | * Maximum number of relationships to show. A similar but separate setting is found in TNG Admin -> Setup -> Chart Settings -> Relationship -> Initial Relationships. Defaults to (5) | ||
== TNG User sites using this mod == | == TNG User sites using this mod == |
Revision as of 13:56, 6 February 2014
Relationship to Site Owner | ||||
---|---|---|---|---|
Summary | Adds a line to the getperson.php page if the person displayed is related to a single, predefined person - typically this would be the Site Owner - in the database. | |||
Validation | XHTML compliant. | |||
Mod Updated | {{{mod_last_update}}} | |||
Download link | Relationship to Site Owner Mod - TNG 10.0.0 for
Relationship to Site Owner Mod - TNG 9.2.2 for
Relationship to Site Owner Mod - TNG 9.1.x for
| |||
Download stats | {{{download_stats}}} | |||
Author(s) | Roger Moffat - based on relationship.php by Darrin Lythgoe as part of TNG | |||
Homepage | Relationship to Site Owner Mod (This page) | |||
Mod Support | TNG Forums | |||
Contact Developer | {{{mod_contact}}} | |||
Latest Mod | v10.0.0.0 for TNG V10 v9.2.2.0 for TNG V9.2.2 v9.1.0.1 for TNG V9.1 | |||
Min TNG V | 9.1.0 | |||
Max TNG V | 10.0.0 | |||
Files modified | getperson.php genlib.php languages/English/cust_text.php languages/English-UTF8/cust_text.php | |||
Related Mods | Relationship Display Mod by Jeff Robison | |||
Notes |
Purpose of the Mod
This Mod adds a line near the top of getperson.php that indicates the relationship of the person on the page to a single, predefined individual - usually the TNG Site Owner - in the database. If there is no relationship that is also listed.
It uses JQuery to load the line after getperson.php has been loaded, so that the sometimes intensive calculations behind the relationship do not slow down the loading of getperson.php.
It does not load this line if the page is being viewed by a bot, so not letting the server get bogged down by a fast moving web bot.
It allows for configuration of:
- the single individual in the TNG Database to calculate relationships from
- a list of bots for which the line is not shown.
- how many relationships to calculate if the person and the Site Owner are related in more than one way. This is a separate setting from what is in TNG Admin for Relationships.
Developer
This Mod was developed by Roger Moffat. The relationships are calculated using a stripped down version of relationship.php - part of TNG by Darrin Lythgoe.
Downloads
For TNG 9 up to TNG 9.2.1 Download the .cfg file from:
For TNG 9.2.2 Download the .cfg file from:
For TNG 10.0.0 up to Download the .cfg file from:
Revision History
Version | Date | Description |
---|---|---|
V10.0.0.0 | 6 February 2014 |
|
V9.2.2.0 | 8 Aug 2013 |
|
V9.1.0.1 | 24 May 2013 |
|
V9.1.0.0 | 10 March 2013 |
|
Automated Installation
- Download the mod from the link above. Extract the .cfg file and then upload it to the mods folder on your site.
- Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install.
In the event of a problem
- Try using the Mod Manager Remove capability
Custom Text Additions
Note: The config file only includes the English language changes, 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.
English custom text is included in the mod. This Is For Reference Only!
// For Relationship to SiteOwner line on getperson.php
$text['siteowner'] = $dbowner . " (the owner of this site)";
$text['clicktoviewrelationship'] = "Click to View Relationship";
$text['withingenerations'] = " is not related to " . $text['siteowner'] . " within xxx generations";
If you site supports other languages, copy these 3 lines and put them in the cust_text.php file for the languages that your site uses - e.g. languages/German-UTF8/cust_text.php
Visualization of this mod
On getperson.php page
If there is a relationship, it is described:
If there is no relationship, that is stated:
Admin Configuration Options
The configuration options from within Mod Manager to change the person from whom relationships are calculated and the list of bots from which the line is hidden
Once installed, you need to click on the Edit button to set the PersonID and Tree for the person relationships are calculated from! See the image on the right. The Edit screen for the Mod allows you to set:
- ID of the person to base calculations from. Defaults to (I1)
- Tree the base person to base is in. Defaults to (tree1)
- List of "bots" excluded. Defaults to (google, yahoo, baidu, msnbot)
- Maximum number of relationships to show. A similar but separate setting is found in TNG Admin -> Setup -> Chart Settings -> Relationship -> Initial Relationships. Defaults to (5)
TNG User sites using this mod
Please add TNG sites that you have found that utilize this modification
URL | User | Note | Mod-Version/TNG-Version | User-language |
---|---|---|---|---|
Roger's Genealogy Online | Roger Moffat | Mod developer (Public site) | V9.1.0.1/TNG 9.2.1 | English |
Legacy Gazette: My Roots - My Legacy | Melissa Watson Padilla | 9.1.0.0/TNG 9.2.1 | EN | |
Teresa's Tree | Teresa Goatham | Public site | 9.1.0.1/TNG 9.2.1 | EN |