Display Jobs Facts

From TNG_Wiki
Revision as of 02:45, 10 March 2023 by Ton (talk | contribs)
Jump to navigation Jump to search
Display Jobs Facts
Summary Adds a person's occupation and/or an interesting fact under the header and a badge/label if the person has been DNA confirmed.
Validation
Mod Updated 2 Mar 2023
Download link for
TNG 14.0

Displayjobs_14.0.0.0a.zip for

TNG 13.0

Displaydnajobsfacts_v2c.zip for

TNG 12.0
Display_jobs_v12.4.zip
Download stats
Author(s) A. S. DuPree
Homepage Display_Jobs_Facts (this page)
Mod Support TNG Community Forums
Contact Developer A. S. DuPree
Latest Mod 13.1.0.2b
Min TNG V 12
Max TNG V 14
Files modified
personlib.php getperson.php genlib.php verticalchart.php fan.php pedigreetext.php descendtext.php various admin files
Related Mods
Notes
This mod adds DNA, jobs interesting facts - and an system for adding them

Note

Caution If you use Group custom events with this Mod,

- From version 14.0.0.0, install this Mod first then Group custom events
- beyond 14.0.0.0 install Group custom events then this Mod
- Always uninstall them in the reverse order.

Caution


Introduction

The mod displays a person's job and/or an interesting fact under the header.

UPDATE 2 (Feb 2022-v2b) Added DNA badge in searches.

1) You can add a custom event for DNA confirmation OR you can just link a person to a DNA test.

2) There is an option to turn off labels if you do not want them displayed. The default is to display labels.

3) There is an option to suppress display of the DNA custom event in the events section on the getperson.php page. This is the default.

4) Labels now display for spouses, parents and children on the get person page so that you can easily see who has been DNA confirmed in a family.

Update (Dec 2021-v2) The 13_2 update adds in the ability to mark DNA confirmed family members. A label will show before the name at the top indicating the person has been DNA confirmed. Ancestor trees -- vertical and fan and the text descendants trees will add labels for all DNA confirmed people.

To use - you need to add an event for a person that uses the DNAFACT tag (Add a custom event with this tag, or you can use a different tag just enter it in the mod options).

This is the badge.

There are two additional options dna_icon.png and dna_badge.png in the included folder that will be copied to your img folder.

You can choose the icon you want in the options for the mod or you can add your own image - just put it in the tng/img directory and add the file name in the mod options.



Back to Jobs and facts.

Jobs and facts are drawn from the event tags.

Djf1.png
  1. Jobs uses the built in Occupation event. You can change it if you want to use another event field by entering the tag for that field in the mod options
  2. Interesting facts can use whatever event you like. It is set by default to use the event tag IFACT but you must enter an event in the administration custom events type manager with this tag. Alternatively, you can choose any event field to be an interesting fact by entering the tag for that field in the mod options.

When entering a Job a new button will appear on the edit page to ADD JOB. (The ADD NEW button on the edit page is replaced by an ADD EVENT and an ADD JOB button. ADD EVENTS will not show the Occupation event.). The ADD JOB screen looks like this:

Dfj2.png

The Mod does NOT change the tng database structure. It does however enter occupations in this format:
JOB CATEGORY - JOB ...INFORMATION.
If you decide to uninstall the mod or export data the occupation event fields will be in that format. Hence, jobs will look something like: Business - Production Manager ...got this job after the depression.
Job categories are remembered after you enter one and you can choose them from a dropdown list.

With Expand_Statistics installed this mod can show a summary view of all the jobs by type and all the individuals that have these jobs.

Stats1.png

Developer

This mod was developed by A.S. DuPree (a novice, happy for any help on improving it)

Requirements

  • A working TNG installation.
  • An installed current version of the Mod Manager.

Automated Installation

  1. Download the zip file in the status area in the upper right.
  2. Extract the display_jobs cfg file to your mod folder.
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files .

Conflicts and Issues

Mod enters into a crowded area with many other mods around the header. It may conflict with other header modifying mods.

In the event of a problem with your TNG site

  1. Try using the Mod Manager to Remove the mod
  2. If old version (V3) worked fine but new version does not you can download the old version here

Display_jobs_facts_v12.0.0.3.zip

Customizations in Mod Manager

  1. Job/Fact after name or after date string
  2. Event tag to use for Job
  3. Event tag to use for interesting fact

Changes/versions

2 Mar 2023 - Version for tng 14.

2 Feb 2022 - Added DNA badges in searches. Moved settings to extension folder to make them persistant.

8 Jan 2022 - Fixed an install location that only works when familyeditlinks is installed.

27 Dec 2021 - Made DNA system work with TNG built in DNA tests

24 Dec 2021 - Some code cleaning thanks to Michel Kirsch

20 Dec 2021 - Modified to display DNA confirmation badges.

1 Dec 2021 - Modified to work with tng 13.0.1

8 Jul 2019 - Added a menu to enter jobs as a separate event type.

2 Jun 2019 - Fixed double display of jobs when option 3 is chosen

Language Customization

Mod currently works in English or French. To customize for your language you need to add the following to the cust_text.php file after you translate the parts after the equal signs.

$admintext['add_event_but'] = "Add Event";
$admintext['add_job_but'] = "Add Job";
$admtext['job'] = "Job";
$admtext['addnewjob'] = "Add New Job";
$admtext['jobmsg'] = "or make new job category";
$admtext['jobtype'] = "Job Type";
$admtext['jobdate'] = "Job Date";
$admtext['jobplace'] = "Job Place";
$admtext['modifyjob'] = "Modify Job";
$admtext['notspecified'] = "(Not Specified)";

Sites using this mod

If you download and install this mod, please add your TNG site to the table below:

[Scealta
URL User Note Mod-Version TNG-Version User-language
Adupree.com A.S. DuPree Mod Developer 14.0.0.0a 14.1 EN
theroadtoethel.com Alicia Clemmons User 12.0.0.3 12.0.3 EN
Journeys in Genealogy Patrick Thrush Public WordPress/TNG bundle 12.0.0.4 12.1 EN
The Cole / Tanner Family Tree David Cole Public/Private see here see here EN,DE,FR,ES,NL
Johnson/Bryans Family Tree Charlie Ferrero Public 13.0.0.0 13.1 EN
Conroy Family Tree Bud Conroy Public/Private 13.1.0.2b 13.1.1 EN
Huygens - Van de Moortel Tom Huygens Public/Private on WordPress 13.1.0.2c 13.1.2 NL
GeneaKat Katryne Private 14.0.0.0a 14.0.1 FR/EN/ES/PT
Ton van Lil Public/Private 14.0.0.0a 14.0.1 NL,EN