My genealogy websites use TNG – The Next Generation – and over the years I have come up with a few additions and modifications to enhance my sites. Some of these are available here.

The TNG-WordPress plugin, developed initially by Mark Barnes and for the last several years maintained by Roger Moffat and Darrin Lythgoe can be found here at the WordPress plugins repository.

If you like any of the files available here and they have helped you enhance your TNG site, please feel free to make a small donation.


  105 Responses to “Downloads”

  1. Try this page to get started with the reCAPTCHA – that should work.


  2. I tried to use your mod gmaps_add_4_placelevels_v9.0.0.1 on me install of TNG v10.0.3
    I transfer the file and its supporting folder to my mod folder
    In the Mod Manager the right column associated with the mod is pink and states that it cannot be installed
    I removed every one of the other mods and still got the same notice.
    I have a screen shot of the error but don’t know how to upload to you.
    Could you respond via regular email and I will sent the screen shot.
    I believe I had the mod working before upgrading TNG


  3. Roger – I like the mod, but in TNG v 10.0.3

    Find First Names = ok

    Find First & Middle Names = ok

    Find Middle Names =
    Not Found

    The requested URL /firstnames-extra.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

  4. I’m looking at your TNG Last Updated Mod. Is this a Mod I can install by using the Mod Manager within TNG 10.0.2?


  5. No, it’s not a Mod Manager type file – the reason is that it’s designed to put a line or two of information on to a page in a position you choose to put it. When you download the file linked here, you get the lastimport.php file and a “Read Last Import.txt” file – this contains some notes on how to use it.

    Usually you would put it somewhere on your index.php file.

  6. There is a separate Mod that provides the script needed for this – see to download this.

    I expect that this will get tidied up for TNG 10.1

  7. Ray – sorry I missed seeing this for so long. Is this still an issue for you – you can eMail the screen shot of the problem to and I’ll take a look for you.


  8. Google Maps Add 4 places : good, but would have preferred Location to remain. Also one for Township/Village and another for District. The mod changed my site settings : e.g. my Towns (2) are now cemeteries !!

    I’m going to have to uninstall it, but would re-install if I had more control (and it didn’t change existing TNG pins)

  9. Dear Roger

    I have installed your Last Import Date as per the instructions and everything works well.

    I was just wondering is it posible to change the colour of the text, and if so where would I change it.

    ‘Date of Last GEDCOM Import:
    20 Feb 2015
    3,943 individuals.’

    I look forward to your reply
    Gary Houseman

  10. There are a couple of ways you could achieve this – probably the best way would be to

    1 – change the class name that formats the text in the script

    2 – add that class to your mytngstyle.css file with its new definition.

    So, in the file lastimport.php, on lined 56 and 67, change the word


    to something else – e.g.


    Make sure that the ” before and after the word remain in place.

    In the mytngstyle.css file, add this

    /* to style the last import text */
    .lastimport {
    font-size: 12px;
    color: #CC0000;

    and change the hex code for color to whatever colour you want.

    You could also just edit the file directly to add an inline style to it, but using mytngstyle.css seems easier.


  11. Dear Roger

    I ran an earlier versoin of TNG and used createsitemap 0.6 withou problems.
    Now I’ve upgraded my TNG to 10.1 and I going to use your mod which is recommeded by TNG.
    I camn install the MOD withouproblems, but when I run it I get the following error msg:

    Warning: mysql_query(): Access denied for user ”@’′ (using password: NO) in /customers/a/2/f/ on line 345 Warning: mysql_query(): A link to the server could not be established in /customers/a/2/f/ on line 345 Cannot execute query: SELECT gedcom, personID, changedate FROM tng_people

    Do you have any idea that can help me. Thanks in advance

    Bo Sorensen

  12. You need to Uninstall that version of the Mod, then install the new version that is for TNG 10.1 from this page


  13. Hi Roger

    That I already did – and I’ve done it again to be sure. Still same problem


  14. Roger, You indicated that the birthday, deaths and anniversary scripts were updated to work in 10.1 and to download them. However, when I go to the above links for each, all I see is the older versions 1.3, etc.

  15. Sorry – I thought I’d packaged them up and placed them there for download, but apparently not. Sorry for the confusion. But they’re there now.

  16. Thank you sir!!

  17. Hi Roger,
    Thanks for the Surnames Tag Cloud Mod. I downloaded it and, as expected, it works like a charm.
    Now on to TNG 10.1.1

  18. Glad you like it 🙂

  19. RE: Relationship to Site Owner Mod
    Sorry if I missed finding a solution posted elsewhere before writing but, I didn’t see one. I updated TNG from 9 to 10.1.1
    I ran your mod successfully on 9 for years. I removed the old version using mod manager.
    I installed the latest version. It is not working.

    1st issue, under the edit parameters tab I only get 3. Tree, Bots, & Number. Set ID is missing, all of it. I do not even get an empty cell. The default of I1 should work but, it is not.

    2nd issue, the “Files” pop-up says a file “relatedToSiteOwner.php” was to be created. I do not see that that happened.

    Thank you for your mod and your assistance. -Ken

  20. Can you send an eMail to me at with your TNG Admin login details so I can log in and take a look.

  21. Roger,

    I notice that the Create sitemap MOD does not include some standard TNG pages as well as any of my custom pages.
    Is there a way to add a list of my own pages I want to be in the sitemap index?

    Thanks in advance for any help.

  22. You can create another sitemap file with what you want in it and then list the various sitemap files in your robots.txt file. See for examples on how to do this….

  23. Roger,

    I’ve installed your birthday, anniversary, and death list add ons. I would like to make the font size a little bit larger as well as move the title to the left (not centered) and put an underline under the title. Do you have any tips on how to do this?



  24. To change the font size you will need to either:

    1 – edit the TNG css files to change the size used by the class “smaller” – this will affect the use of type this size over the entire TNG site


    2 – look through the add-on files for the code that looks like this

    <span class=\"smaller\">

    and change the smaller to normal for example to change the size


    3 – change the smaller to some other unique word and then create a whole new css style for that class

    To align the title only to the left you’d have to change the instances of

    <div align=\"center\">


    <div align=\"left\">

    in the lines that are creating the header – they usually have the word “header” in them somewhere.

    Hope this Helps

  25. Roger, Just following up on the sitemap issue I mentioned before about having a place to store the custom pages urls that should be included in a sitemap index.

    If my understanding is correct, there should only be one sitemap index

    Robots.txt shoudl include either
    Complete listing of URLs to be index or one listing for location of sitemap index.

    So if I need a sitemap creator to review the database for all the correct URLs to include,
    then I think we need a way to add these custom url additions to the sitemap during the create process.

    My thought is to make it a variable switchable on/off
    If on, then it simply will include the custom sitemap “tngsitemap0” to the final tngsitemapindex.xml file

    It’s then up to the site admin to add their urls as needed to the tngsitemap0.xml file.

    Im am not a coder, but I believe some code snippets would be like;

    %desc:Set this to 1 to include a custom url list in the sitemap.The default is (0)%

    $indexcustom = “0”;

    if ($indexcustom) {
    // add custom urls to index

    // Add file location of custom urls xml file


    Is this something you could add to the current sitemap create mod?

    Thanks for taking the time to review.

  26. Birthday, Death Dates and Anniversary Lists

    Is it possible to pull dates from a specific tree?
    Is it possible that users only see dates from their specific branch they are allocated to?

  27. I very recently downloaded your birthday, anniversary and death scripts and got them to work on my site. I seem to recall however, that if anyone had one of those events, their name would appear even if you were not logged in when viewing the page. The difference is that when logged in, you could click on the name and be taken to their information. That does not seem to be the case now. How would I change it to reflect that?


  28. I’m not sure if it’s ever done what you’re asking for exactly – the scripts do check to see if the user is logged in, and so allowed to information about Living people or not. That is used to determine whether to show the people’s names or not and the $outputoption setting used to determine if there are links or not.

    To do what you’re wanting, the initial query would have to be changed to remove the check if the user is logged in or not, do the query for all events on that date and then alter the output depending on whether or not the user was logged in or not.

  29. Merv – yes I guess this is possible – the queries would need to be altered to include a query for the “gedcom” (how TNG identifies “trees”). Are you wanting it to be a specific tree, or a tree determined dynamically somehow?

    Same would apply to Branches – it would need to be altered to include the branch in the query depending on what user is logged in, and then use that as part of the query too. I don’t use Branches myself, so aren’t familiar with how that works exactly, so while I imagine it ought to be possible to do this, it might take me a while to figure this out so it works properly.

  30. Perhaps I wasn’t clear on my initial post. What is happening is that if someone living has a birthday, that person’s name does not appear at all unless you are logged into the site. Once you are logged in, the person’s name appears and it has a link to its information. If I read your response correctly, the script is supposed to do what I am asking it to do, however it is not happening. As for changing the query, I don’t have enough knowledge about queries to attempt it.

  31. It is working as the current design intends.

    I am not sure that it has ever done as you expect it to do – show the names regardless of whether someone is allowed to see Living or not and then show the link depending on this.

    Yes it could be altered to do what you are expecting it to do, but not today, and probably not tomorrow.


  32. Thanks for your response…don’t know what happened but when I went to the site today, the person was listed with a link that was accessible when logged in. As you say, it is doing what I want it to do.

    One other question about your Top 10 Surnames script, what part of the code would need to be changed to reflect two columns of 5 names each instead of one column listing all ten names?

  33. I was wrong about the display. The best way for me to explain the issue is for you to go to my page. The link is located at and you will see at the right hand column that today (10/31/2015) there is a death showing but no birthdays being displayed. There are two living people that have a birthday today but they don’t show unless you log in. You can use guest/guest to log in to see what I mean.

  34. Re : Pulling dates from a specific branch…

    Kia ora Roger,
    With a few tweeks of your code, I think I have managed to get this going. It’s not the tidiest of solutions but it seems to work ok. I could send these files through to you if you would like to inspect?… working examples are on my site.

  35. Just a word of caution… the anniversary lists (birthdays, weddings and deaths) currently display details of people marked “private” in your database.
    I understand Roger is working on a solution.

  36. Don’t know if my last submission got to you. The Bold Ancestor Children Links will not install, due to likely conflict with Family Preview Mod.
    line 11: %target:getperson.php%
    line 13: %location:% not installed
    line 21: %location:% not installed
    line 29: %location:% Bad target
    Can this be fixed by sequencing the Mods and changing a line?

  37. I’ve revised the Mod so that hopefully it can now install before or after the Family Preview Mod. Uninstall and then Delete what you’ve got and then try the new version.


  38. I was wondering if your TNG mod Relationship to Site Owner works with the latest version of TNG? I have been trying to get it to work (mod version 10.1) and I haven’t had any luck. Any suggestions?

  39. Yes it works just fine.

    Are you SURE you have set the correct parameters in the Options in Mod Manager for TreeID and starting person ID?

  40. I have double checked and everything seems to be correct…

  41. Hi there, I recently updated tng from 11.0 to 11.0.1 and the relationship to site owner is showing more than the usual relations..

    i know i relate twice to this individual but now it shows 4 times.. It flips the parents and relists them again.. if you get a chance to look.

  42. Thanks for letting me know – I hadn’t noticed that for example on my site it gave a single line between me and my great great grandfather, but when you clicked that line it gave two charts that were the same, but name the relationship in two different ways – that William was my great great grandfather, and that I was William’s great great grandson. I’ve made a change that mirrors a change Darrin recently made so now it’s back to a single chart in this circumstance. It’s available to download here – give it a try and see if it works for your page – i.e. for that page with 2 relationships you get two charts.

  43. Hello,
    is something broken here?

    I come from TNG wiki to download a mod. But where is this mod (Create sitemap mod) ??

    What am I doing wrong?


  44. Jürgen – sorry about the problems – an update to the Download-Monitor plugin rendered it all not working. I’ve got all that sorted out, and just now have to update the TNG Wiki with the new links.


  45. I’ve downloaded and installed the mod. (And made a donation.)

    I installed it and hit the “Create Sitemap” button. From the instructions, I expected it to take a while.

    But the page has bee at this point for 40 minutes:

    “TNG Sitemap Creator
    Please wait… sitemap being generated from TNG database. This may take some time depending on the size of your database.
    Records Processed:”

    Nothing further. Anything wrong on my end? Running 11.1.2

    Downloaded from this page:

  46. Roger,

    hope all is good. Looking for info on possible updates/ upgrades to 2 different scripts.

    first the old “list_birthdays.php”

    Is it possible to add a function to show
    1) Only persons in the current users “assignedbranch” ?
    2) Only ‘milestone’ years (5,10,15,20…etc)
    3) both birthdays AND Anniversaries?

    Most of my users say the list is too big (because in many cases they have over 12,000 persons related to them in the database)
    So they would only like to see those milestone years.

    I will start a diff message for the other…
    Thanks for your time on these great add on scripts for tNG!

  47. William – for TNG 11.1.2 (in fact any TNG greater than 10.1.0) you need the download from


  48. Hi,
    I can’t seem to get any of the birthday, anniversary or death lists working 100% on user pages in TNG version12.
    Nothing displays when logged out in fact nothing past the code displays.
    They display okay when logged in though.
    The trouble is that these user pages are introductory pages to certain branches of my website so the lists will have to go if this can’t be sorted
    (They were working okay in TNG10.)
    Any idea why?

  49. Have you downloaded the newest versions of these files recently?

    TNG 10.1 introduced new query syntax that uses mysqli not mysql, but I have updated the scripts to use that long ago.

    Has anything else changed – like the path to the scripts relative to TNG?

    Is there anything in your site’s error logs when you try to load a page that contains the scripts?


  50. Hi Roger,

    I’ve tried to find the answer but failed. I’ve made an wp + tng + tng plugin installation. It’s working but my genealogy page is looking far from yours. Mine is very basic. I’d love to have a design similar to yours but I have no idea how to get there. Could you please point me in the right direction?

    Thank you for your time.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2000 – 2019 Roger’s Ramblings Powered by WordPress Suffusion theme by Sayontan Sinha
%d bloggers like this:

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.