IPB
IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Adding a map to Ancestry for an individual, Putting all ancestors for an individual on a google map
Réal Charlebois
post Nov 11 2008, 01:08 AM
Post #1


Advanced Member


Group: Members
Posts: 31
Joined: 25-October 08
From: Canada
Member No.: 9,390



Here is a small piece of code I put together to add a Map tab to the Ancestors tab for an individual. It will create a map for all of the ancestors that have geo-points for where they were born. married, burried, etc. You can check my site www.charleboiseries.ca (search for Ovila Charlebois born in 1880 and display the Map under his Ancestors to get a glimpse at what this looks like).

I stole a significant amount of code from Darrin to build this ... I hope this is ok with you Darrin !!!!

First add mappedigree.php to your main folder

the do the following modifications:

Add: $text['ancestorsmap'] = "Carte"; (or “Map”) to all your cust_text.php files

Add the following line:

$mappedigree_url = getURL( "mappedigree", 1 );

To pedigree.php at line 30
To pedigreetext.php at line 24
To ahnentafel.php at line 22
To extratrees.php at line 18

Add the following line:

$innermenu .= "&nbsp;&nbsp; | &nbsp;&nbsp;<a href=\"$mappedigree_url" . "personID=$personID&amp;tree=$tree&amp;parentset=$parentset&amp;generations=$generations\" class=\"lightlink\" id=\"maplnk\">$text[ancestorsmap]</a>\n";

To pedigree.php at new line 448
To pedigreetext.php at new line 294
To ahnentafel.php at new line 83
To extratrees.php at new line 167

This code is not perfect, but it does a decent job.



Attached File(s)
Attached File  mappedigree.php ( 26.09k ) Number of downloads: 130
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jgrantham
post Jun 15 2009, 06:51 AM
Post #2


Advanced Member


Group: Members
Posts: 70
Joined: 1-November 04
Member No.: 345



Does this work in 7.1? I can't get it to work.

QUOTE(Réal Charlebois @ Nov 11 2008, 02:08 AM) *

Here is a small piece of code I put together to add a Map tab to the Ancestors tab for an individual. It will create a map for all of the ancestors that have geo-points for where they were born. married, burried, etc. You can check my site www.charleboiseries.ca (search for Ovila Charlebois born in 1880 and display the Map under his Ancestors to get a glimpse at what this looks like).

I stole a significant amount of code from Darrin to build this ... I hope this is ok with you Darrin !!!!

First add mappedigree.php to your main folder

the do the following modifications:

Add: $text['ancestorsmap'] = "Carte"; (or “Map”) to all your cust_text.php files

Add the following line:

$mappedigree_url = getURL( "mappedigree", 1 );

To pedigree.php at line 30
To pedigreetext.php at line 24
To ahnentafel.php at line 22
To extratrees.php at line 18

Add the following line:

$innermenu .= "&nbsp;&nbsp; | &nbsp;&nbsp;<a href=\"$mappedigree_url" . "personID=$personID&amp;tree=$tree&amp;parentset=$parentset&amp;generations=$generations\" class=\"lightlink\" id=\"maplnk\">$text[ancestorsmap]</a>\n";

To pedigree.php at new line 448
To pedigreetext.php at new line 294
To ahnentafel.php at new line 83
To extratrees.php at new line 167

This code is not perfect, but it does a decent job.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Bruce Roy
post Jun 15 2009, 10:20 PM
Post #3


Advanced Member


Group: Members
Posts: 54
Joined: 9-September 05
From: Sydney, Australia
Member No.: 616



QUOTE(Réal Charlebois @ Nov 11 2008, 05:08 PM) *

Here is a small piece of code I put together to add a Map tab to the Ancestors tab for an individual. It will create a map for all of the ancestors that have geo-points for where they were born. married, burried, etc. You can check my site www.charleboiseries.ca (search for Ovila Charlebois born in 1880 and display the Map under his Ancestors to get a glimpse at what this looks like).

I stole a significant amount of code from Darrin to build this ... I hope this is ok with you Darrin !!!!

First add mappedigree.php to your main folder

the do the following modifications:

Add: $text['ancestorsmap'] = "Carte"; (or “Map”) to all your cust_text.php files

Add the following line:

$mappedigree_url = getURL( "mappedigree", 1 );

To pedigree.php at line 30
To pedigreetext.php at line 24
To ahnentafel.php at line 22
To extratrees.php at line 18

Add the following line:

$innermenu .= "   |   <a href=\"$mappedigree_url" . "personID=$personID&tree=$tree&parentset=$parentset&generations=$generations\" class=\"lightlink\" id=\"maplnk\">$text[ancestorsmap]</a>\n";

To pedigree.php at new line 448
To pedigreetext.php at new line 294
To ahnentafel.php at new line 83
To extratrees.php at new line 167

This code is not perfect, but it does a decent job.

Réal, I have had a go at producing a cfg file for installing ancestors map with Mod Manager. Works on my computer. You might like to test and post it to the TNG Wiki site if you're happy with it.

Bruce Roy
Attached File  ancestors_map_V1.0.cfg.txt ( 3.67k ) Number of downloads: 132
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
vectis
post Jul 4 2009, 01:57 PM
Post #4


Advanced Member


Group: Members
Posts: 58
Joined: 18-October 06
From: Calne, England
Member No.: 1,462



QUOTE(Réal Charlebois @ Nov 11 2008, 08:08 AM) *

Here is a small piece of code I put together to add a Map tab to the Ancestors tab for an individual. It will create a map for all of the ancestors that have geo-points for where they were born. married, burried, etc. You can check my site www.charleboiseries.ca (search for Ovila Charlebois born in 1880 and display the Map under his Ancestors to get a glimpse at what this looks like).

I stole a significant amount of code from Darrin to build this ... I hope this is ok with you Darrin !!!!

First add mappedigree.php to your main folder

the do the following modifications:

Add: $text['ancestorsmap'] = "Carte"; (or “Map”) to all your cust_text.php files

Add the following line:

$mappedigree_url = getURL( "mappedigree", 1 );

To pedigree.php at line 30
To pedigreetext.php at line 24
To ahnentafel.php at line 22
To extratrees.php at line 18

Add the following line:

$innermenu .= "   |   <a href=\"$mappedigree_url" . "personID=$personID&tree=$tree&parentset=$parentset&generations=$generations\" class=\"lightlink\" id=\"maplnk\">$text[ancestorsmap]</a>\n";

To pedigree.php at new line 448
To pedigreetext.php at new line 294
To ahnentafel.php at new line 83
To extratrees.php at new line 167

This code is not perfect, but it does a decent job.

Real
Thanks for this, excellent addition. I was thinking of asking about this myself. I am running 7.0.2 still and I simply followed your instructions and applied the changes - worked first time.

Couple of very minor pedantic points:
(1) It is extrastree.php that is changed (not extratrees)
(2) I found the line number was 169 for the last mod.

Takes a bit of time to load when you get to 8 generations but is well worth it, as it gives a very good geographical representation of where your ancestors came from, in my case 8 generations very closely grouped in the sout of England.

Cheers

Jon Baker
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Réal Charlebois
post Aug 19 2009, 08:04 AM
Post #5


Advanced Member


Group: Members
Posts: 31
Joined: 25-October 08
From: Canada
Member No.: 9,390



QUOTE(jgrantham @ Jun 15 2009, 06:51 AM) *

Does this work in 7.1? I can't get it to work.



Hi,

Sorry for not having responded earlier, my condo burned down and I've been kind'a busy.

I just upgraded to 7.1 but I havent yet implemented this function in the new version. I will be looking at that in the next few weeks and I will post the results. I suspect changes will be minir.

QUOTE(Bruce Roy @ Jun 15 2009, 10:20 PM) *

Réal, I have had a go at producing a cfg file for installing ancestors map with Mod Manager. Works on my computer. You might like to test and post it to the TNG Wiki site if you're happy with it.

Bruce Roy
Attached File  ancestors_map_V1.0.cfg.txt ( 3.67k ) Number of downloads: 132




Hi Bruce,

I'm not familiar with mod manager, but I will look into it ... always willing to learn new tricks ...

QUOTE(vectis @ Jul 4 2009, 01:57 PM) *

Real
Thanks for this, excellent addition. I was thinking of asking about this myself. I am running 7.0.2 still and I simply followed your instructions and applied the changes - worked first time.

Couple of very minor pedantic points:
(1) It is extrastree.php that is changed (not extratrees)
(2) I found the line number was 169 for the last mod.

Takes a bit of time to load when you get to 8 generations but is well worth it, as it gives a very good geographical representation of where your ancestors came from, in my case 8 generations very closely grouped in the sout of England.

Cheers

Jon Baker


Pedantic points (IMG:style_emoticons/default/icon_wink.gif) are always welcome. Sometimes I type these things up a little too fast and dont verify the small details. I'm glad it worked for you.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Réal Charlebois
post Aug 23 2009, 01:06 PM
Post #6


Advanced Member


Group: Members
Posts: 31
Joined: 25-October 08
From: Canada
Member No.: 9,390



QUOTE(jgrantham @ Jun 15 2009, 06:51 AM) *

Does this work in 7.1? I can't get it to work.



Ok, I installed it on 7.1 and here are the changes required:

the do the following modifications:

Add: $text['ancestorsmap'] = "Carte"; (or “Map”) to all your cust_text.php files

Add the following line:

$mappedigree_url = getURL( "mappedigree", 1 );

To pedigree.php at line 30
To pedigreetext.php at line 24
To ahnentafel.php at line 22
To extrastree.php at line 18

Add the following line:

$innermenu .= "&nbsp;&nbsp; | &nbsp;&nbsp;<a href=\"$mappedigree_url" . "personID=$personID&amp;tree=$tree&amp;parentset=$parentset&amp;generations=$generations\" class=\"lightlink\" id=\"maplnk\">$text[ancestorsmap]</a>\n";

To pedigree.php at new line 452
To pedigreetext.php at new line 294
To ahnentafel.php at new line 82
To extrastree.php at new line 167

it works fine for me

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Steven
post Jun 18 2010, 12:09 PM
Post #7


Advanced Member


Group: Members
Posts: 53
Joined: 25-June 08
From: BasVegas, Essex, UK
Member No.: 8,911



I've had a go at amending this to run under TNG8 and packaging into a mod manager config file.

You can see this running on one of my sites at http://www.stevenwillingale.com/tng/mapped...p;generations=4

It would be help if someone could check this runs OK on their setup, before I add details to the Wiki etc

Cheers

Steven

EDIT : See post below for final CFG file
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
bsl20b50
post Jun 18 2010, 03:20 PM
Post #8


Advanced Member


Group: Members
Posts: 230
Joined: 21-July 08
Member No.: 9,213



Steven,
Kind of funny to see this posted; I just updated the same mod to use on my own site this morning. Our changes are only slightly different (it looks like the insertion point is slightly different - causing the location of the link to the ancestor map to vary from yours to mine). I followed what the original mod author did, but it looks like they both work just fine.

Here is a zip file with your version and mine. Attached File  ancestor_map_v8.1.0.zip ( 7.9k ) Number of downloads: 24
. I noticed couple of other minor differences (which don't affect the function). When I looked at yours, the characters of the original author's name were changed, and the version number was not updated within the file.

Cheers,
Bryan
QUOTE(Steven @ Jun 18 2010, 12:09 PM) *

I've had a go at amending this to run under TNG8 and packaging into a mod manager config file.

You can see this running on one of my sites at http://www.stevenwillingale.com/tng/mapped...p;generations=4

It would be help if someone could check this runs OK on their setup, before I add details to the Wiki etc

Cheers

Steven

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Steven
post Jun 27 2010, 11:52 AM
Post #9


Advanced Member


Group: Members
Posts: 53
Joined: 25-June 08
From: BasVegas, Essex, UK
Member No.: 8,911



Here is the final ancestors map cfg file for TNG8 using Bryan's version of the files, with one small change to copy the file mappedigree.php file to the TNG folder.


Attached File(s)
Attached File  ancestors_map_v8.1.0.zip ( 6.9k ) Number of downloads: 20
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
majdan
post Jul 1 2010, 09:42 AM
Post #10


Advanced Member


Group: Members
Posts: 42
Joined: 29-May 10
Member No.: 10,347



Installed it on my site without a hitch! Looks good.

http://family.themajdans.com/mappedigree.p...p;generations=4
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 3rd September 2010 - 05:07 AM