Jump to content
TNG Community
Jan Suhr

LABL tag to show up on individuals page

Recommended Posts

Jan Suhr

In my desktop genealogy program (Mac Family Tree) I have marked some persons with Labels, one such label is one that marks the person if they are my ancestor. This makes it easier to scroll through the family tree and find your way back to your blood line.

These labels are stored in the Gedcom as LABL and I can get them in to TNG with the Custom Event Types
But they don't show up in the getperson.php view. What do I need to do to get them to show up?

 

 

Thanks

 

 

Share this post


Link to post
Share on other sites
Jan Suhr

Thanks Roger, that worked even better than what I had in mind.

Saw that you had a Camaro :-)  I had a 69 Z/28 with an LS1 engine and gearbox  from a 2001 Camaro

Share this post


Link to post
Share on other sites
Jan Suhr

I was able to make some modifications to my site to solve this. It was quite a lot of files that needed to be modified but now it is up and running like I wanted.

I don't know if there is any interest to make it as a real MOD since this is kind of a special thing from Mac Family Tree that is needed. Could maybe be better to find a way to accomplish the same thing from modifying your BoldAncestor_Child MOD.

In my case this one is only working for one individuals ancestors but it would be nice to set up for others ancestors as well, like you spouses or others in your register.

Label tag.png

Share this post


Link to post
Share on other sites
Jan Suhr

It was very easy to add that yellow dot to the BoldAncestor_Child Mod

if ( strpos ( $branch,  "Ancestors") !== FALSE ) {
	$childname = "<strong>" . $childname . "</strong> <img src=\"img/yellowDot.png\">";
	$tooltip = " title=\"Ancestor\"";
}

And it looks like this.
 

yellow dot in children.png

Share this post


Link to post
Share on other sites
fluffy82
On 2/19/2020 at 3:52 PM, theKiwi said:

Take a look at this Mod I created which does the same thing entirely within TNG - lets you identify which children in a family are your direct ancestors.

https://tng.lythgoes.net/wiki/index.php?title=Bold_Ancestor_Child_Links

Roger

 

Question... I like the idea of having my direct ancestors bold and visible. I've created a branch, and clicked on "add label". My computer has now been running for 30 minutes and it is still busy doing that... It didn't freeze, and there's no Error 404 screen, so I suppose it's actually still labelling people?

- how long should this take before I start panicking?
- please tell me I won't have to go through this process every time I upload a tree from a gedcom?

Share this post


Link to post
Share on other sites
Jan Suhr
6 minutes ago, fluffy82 said:

 

Question... I like the idea of having my direct ancestors bold and visible. I've created a branch, and clicked on "add label". My computer has now been running for 30 minutes and it is still busy doing that... It didn't freeze, and there's no Error 404 screen, so I suppose it's actually still labelling people?

- how long should this take before I start panicking?
- please tell me I won't have to go through this process every time I upload a tree from a gedcom?

Yes you have to do it every time there is a new Gedcom uploaded but it would only take a few seconds to perform. Something must have gone wrong with your settings.

 

Share this post


Link to post
Share on other sites
fluffy82
13 minutes ago, Jan Suhr said:

Yes you have to do it every time there is a new Gedcom uploaded but it would only take a few seconds to perform. Something must have gone wrong with your settings.

 

I went over to my phpMyAdmin and I can see that it is still slowly but surely adding information to the tng_branchlinks table. About 1 label every two seconds...

Creating the branch only took a couple of seconds. It's adding the labels that's taking *a lot* of time...

Share this post


Link to post
Share on other sites
Jan Suhr
31 minutes ago, fluffy82 said:

I went over to my phpMyAdmin and I can see that it is still slowly but surely adding information to the tng_branchlinks table. About 1 label every two seconds...

Creating the branch only took a couple of seconds. It's adding the labels that's taking *a lot* of time...

I only update the branch I have. Select the branch and then click Add Labels and go. Just did it with a new import 10 minutes ago. My database has 16000 individuals and it took about 2 seconds.

Share this post


Link to post
Share on other sites
theKiwi
1 minute ago, Jan Suhr said:

I only update the branch I have. Select the branch and then click Add Labels and go. Just did it with a new import 10 minutes ago. My database has 16000 individuals and it took about 2 seconds.

My site does about the same - over 18,000 people, 260 people, and 154 Families identified as being in the "Ancestors" branch - runs about 2 seconds and it's finished.

Roger

Share this post


Link to post
Share on other sites
fluffy82

It's been 90 minutes, and thusfar 4.800 labels have been added. Still going.

According to one of my desktop apps, I have 13.000 direct ancestors in my tree (which has just under 50.000 individuals). So I'll let it run for another 3 hours then 😂

3 hours ago, Jan Suhr said:

I only update the branch I have

But I didn't have a branch yet, I just created it for the very first time. Let's hope that in the future, updating labels goes faster than creating them...

 

EDIT: it's now been working for 4 hours in a row, and about 6.200 people have been labeled. The progress is very aleatoric... Sometimes it doesn't add anything for several minutes, and then it suddenly adds 5 labels in 3 seconds. My guess is that the thing doesn't look for ancestors (parents, then the parents of the parents, then the parents of those etc), but it is going through all 50.000 names in my tree by ID number or alphabetically?, calculating descendancy to me for each and every one of them... If there is a direct line, it gets labelled, if there isn't, it goes on to the next individual.

Edited by fluffy82

Share this post


Link to post
Share on other sites
Jan Suhr

Got it added to the ShowSibblings MOD as well. Now I'm satisfied and it will be easy for users to track my ancestry from anywhere they have a connection.

 

siblings yellow dot.png

Share this post


Link to post
Share on other sites
theKiwi
3 hours ago, fluffy82 said:

It's been 90 minutes, and thusfar 4.800 labels have been added. Still going.

According to one of my desktop apps, I have 13.000 direct ancestors in my tree (which has just under 50.000 individuals). So I'll let it run for another 3 hours then 😂

But I didn't have a branch yet, I just created it for the very first time. Let's hope that in the future, updating labels goes faster than creating them...

 

EDIT: it's now been working for 4 hours in a row, and about 6.200 people have been labeled. The progress is very aleatoric... Sometimes it doesn't add anything for several minutes, and then it suddenly adds 5 labels in 3 seconds. My guess is that the thing doesn't look for ancestors (parents, then the parents of the parents, then the parents of those etc), but it is going through all 50.000 names in my tree by ID number or alphabetically?, calculating descendancy to me for each and every one of them... If there is a direct line, it gets labelled, if there isn't, it goes on to the next individual.

Is this how you have the settings?

image.png

This works in under 2 seconds on my site with 18,000 people, and 260 ancestors of me.

Are you sure you have 13,000 "ancestors" - i.e. parents of your parents - not any of the siblings of your parents/grand parents etc - that's almost 14 generations with every ancestor known.

Roger

Roger

Share this post


Link to post
Share on other sites
Ken Roy

Jan,

Have you looked at Michel's Sosa mod

Hopefully, you realize the the Show siblings mod is marked as obsolete.  You should use the Add Person Siblings Row mod which has been updated to interface with the Sosa mod and complement the Show All Family mod

Share this post


Link to post
Share on other sites
Jan Suhr
1 minute ago, Ken Roy said:

Jan,

Have you looked at Michel's Sosa mod

Hopefully, you realize the the Show siblings mod is marked as obsolete.  You should use the Add Person Siblings Row mod which has been updated to interface with the Sosa mod and complement the Show All Family mod

Kem,

Thanks, I'll take a look at it. The Show Siblings seems to work all right with my TNG 13. I have the Show All Family mod already to the Sosa Mod is probably better.

Share this post


Link to post
Share on other sites
fluffy82
6 minutes ago, theKiwi said:

Is this how you have the settings?

Yes, only the number of generations is set to 99 as I wanted all my direct ancestors to be included, not only the first 20 generations.

7 minutes ago, theKiwi said:

Are you sure you have 13,000 "ancestors" - i.e. parents of your parents - not any of the siblings of your parents/grand parents etc - that's almost 14 generations with every ancestor known.

Yes, I am sure. No siblings, no uncles/aunts, no sideways. The highest generation is 95 or 96.

My "pedigree" tree is almost 100% complete up to the 10th generation - only the line of one of my 3rd GG-fathers is missing as we don't know where or when he was born.
From that point branches are starting to drop out, but many go back to the 16th century thanks to our (Belgian) parish records which are very well kept. Some lines go back to the 13th century thanks to renting documents from abbey's etc. I do have some "nobility" lines which I included, with a disclaimer that I am aware that these are to be taken with a big grain of salt, but I included them for the sake of historic interest. Those are the ones going back to the 96th generation.

If you only take the absolute certain direct ancestors, there will still be about 4.000-4.500, up to +/- the 1550s.

Share this post


Link to post
Share on other sites
theKiwi
1 hour ago, fluffy82 said:

Yes, only the number of generations is set to 99 as I wanted all my direct ancestors to be included, not only the first 20 generations.

Did it complete yet?

You might try setting it to something like 50 generations, and see if that runs to at least let you know/see that it does work and give a comparison to the hours it's spent trying to do 99 generations.

Roger

Share this post


Link to post
Share on other sites
fluffy82
12 hours ago, theKiwi said:

Did it complete yet?

You might try setting it to something like 50 generations, and see if that runs to at least let you know/see that it does work and give a comparison to the hours it's spent trying to do 99 generations.

Roger

No. Been running for 7 hours now, and currently at 7.200 labels.

I'll let it run to see when it ends, and later this week I'll do some tests. Maybe (hopefully...) once the labels are made, a next update will take less time? Or is it not smart enough to check existing labels and will it just start all over again?

 

EDIT: when it was running for 11 hours in a row, it was still at 8.201 so I went to bed. It has now, upon me waking up, been 19 hours and it is still at 8.201, so I guess it won't go any further than that. Curious to find out how things will proceed :)

Share this post


Link to post
Share on other sites
fluffy82

Just a short follow-up for @theKiwi : so I've stopped the process (which was still actively running without adding any new results) after 19 hours. I have since then uploaded a new gedcom and I'm happy to notice that I do not have to do the "create branch" and "add label" thing again. Clicking the "update branches" button in the secondary processes after uploading a gedcom, took about 4 seconds. And my direct ancestors seem to be highlighted in my tree correctly. Yay.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×