TNG Addons
I have been a TNG user since version 3, and a member of the TNG Forum (now Community) since 2003. I do not upgrade TNG with each new version unless there is a new feature that I want for this site. I upgraded from TNG 8 to 12 (February 2019) due to PHP and MYSQL version changes my web host.
Site characteristics:
Addons written by Robert Morss (TNG Community User: rdmorss).
These are all stand-alone scripts that do not modify any TNG core scripts.
Log Analytics (AKA loglook.php)
A different take on the presentation of genlog.txt allowing you to drill down by date, page, and user. Uses regular expressions to parse log lines and compile report tables. Also has ip/hostname lookup.
All TNG Help files available (in the languages folder) for browsing and searching from a single page.
A big downside to the mailing list archive is the lack of an index or search function.This script provides a subject index, top subjects, and top authors from the archive of tngusers2 - the primary user-to-user mailing list for TNG.
It works by scraping the archive files from the TNG list archive website and parsing the content for display in the script.
Same treatment for the TNG author's announcement mailing list: subject index, top subjects, and top authors from the archive of tngusers.
Addons from the TNG Wiki that I use on this site.
Sites which require login will keep out web-bots, but present a hurdle for human visitors that do not want to create a login just to see the site.In this mod, the login form is automatically filled in with a default guest login username and password. Requires editing of TNG core file loginlib.php
This site requires login for most content, but allows visitors to see specific pages as specified by this mod. Requires editing of TNG core file checklogin.php
Code snippets by Robert Morss.
Shows the user's login status and permissions.
Your Profile Not logged in Permissions Submit Edits
View Living
GEDCOMs
Add Data
Edit Data
Delete Data
Add Media
Edit Media
Delete Media
Shows the number of guests and registered users that have logfile entries within in the last X hours or days. Lists usernames of registered users. Guest total includes visitors not logged in plus any login accounts designated as guest accounts.
Last 48 Hours 3 Guests
0 Users
Shows the user an alphabetical drop-down list of the last 10 pages he/she visited on the site during his/her current session. Allows user to easily revisit pages. Requires modification to TNG core file log.php
Cookies and Sessions
Both cookies and sessions are used in TNG to store data as visitors move from page to page of the website. Cookies are stored on the client computer, session variables are stored on the server. TNG also uses config variables to maintain state: these are stored in config.php and are controlled via Admin>Setup.
Contents of $_COOKIE
Array ( )
Contents of $_SESSION
Two of the above addons (loglook and recent visitors) make use of the session array.
Array ( [session_language] => English [session_charset] => UTF-8 )
Text Variables
The following $text variables are available on this page.
accessedby | accessed by |
address | Address |
administration | Administration |
albclicksee | Click to see all the items in this album |
albums | Albums |
all | All |
allmedia | All Media |
alltrees | All Trees |
ancestors | Ancestors |
anddied | Died |
andlocation | & location |
anniversaries | Dates and Anniversaries |
anon | You are currently anonymous |
anonymous | anonymous |
association | Association |
baptizedlds | Baptized (LDS) |
birth | Birth |
birthabbr | b. |
blank | Blank Chart |
bmargin | Bottom Margin |
bookmark | Bookmark |
bookmarked | Bookmark Added |
bookmarks | Bookmarks |
born | Born |
bornchr | Born/Christened |
branch | Branch |
branches | Branches |
burialabbr | bur. |
buried | Buried |
calendar | Calendar |
cancel | Cancel |
cannotexecutequery | Cannot execute query |
cemeteries | Cemeteries |
cemetery | Cemetery |
child | Child |
children | Children |
chrabbr | c. |
christened | Christened |
clickdisplay | Click to display |
clickhide | Click to hide |
closewindow | Close Window |
collapse | Collapse |
collapseall | Collapse all |
confirmed | Confirmed |
conflds | Confirmed (LDS) |
consent | I give my consent for this site to store the personal information collected here. I understand that I may ask the site owner to remove this information at any time. |
consentreq | Please give your consent for this site to store personal information. |
cont | (cont.) |
contactus | Contact Us |
contactus_long | If you have any questions or comments about the information on this site, please contact us. We look forward to hearing from you. |
contains | contains |
cookieuse | Note: This site uses cookies. |
createch | Create Chart |
createdon | Created on |
cremated | Cremated |
data | Data |
databasestatistics | Statistics |
dataprotect | Data Protection Policy |
date | Date |
dates | Dates |
deathabbr | d. |
descendants | Descendants |
descendchart | Descendancy |
description | Description |
detail | Detail |
died | Died |
diedburied | Died/Buried |
directionsto | to |
disabled | Your user account has been disabled. Please contact the site administrator for more information. |
divorced | Divorced |
dna_test | DNA Test |
dna_tests | DNA Tests |
documents | Documents |
download | Click to download |
edit | Edit |
editevent | Suggest a change for this event |
editperson | Edit Person |
editprofile | Edit Profile |
emailagain | Email again |
emailsmatch | Your emails do not match. Please enter the same email address in each field. |
endowedlds | Endowed (LDS) |
enteremail | Please enter a valid e-mail address. |
enteremail2 | Please enter your email address again. |
expand | Expand |
expandall | Expand all |
extractgedcom | GEDCOM |
fact | Fact |
families | Families |
family | Family |
familychart | Family Chart |
familyid | Family ID |
faminfo | Family Information |
fanchart | Fan Chart |
father | Father |
featarts | Feature Articles |
featphoto | Featured Photo |
features | Features |
female | Female |
filename | File name |
find | Find... |
find_menu | Find |
findplaces | Find all individuals with events at this location |
firstname | First Name |
firstnames | First Names |
fonts | Fonts |
forgot1 | Forgot your username or password? Enter your e-mail address below to have your username sent to you. |
forgot2 | Enter your e-mail above and your username below to have your password reset (a temporary password will be sent to you). |
friday | Friday |
gender | Gender |
generation | Generation |
generations | Generations |
getdirections | Click to get directions |
gevents | Event |
glang | &hl=en |
gmapevent | Event Map |
gmaplegend | Pin Legend |
go | Go |
googleearthlink | Link to Google Earth |
googlemaplink | Link to Google Maps |
goto | Select a page |
groupsheet | Group Sheet |
haplogroup | Haplogroup |
header | Header |
headstone | Headstones |
headstones | Headstones |
heatmap | Heat Map |
help | Help |
hide | Hide |
histories | Histories |
historiesdocs | Histories |
homepage | Home |
hvr1 | HVR1 |
hvr2 | HVR2 |
id | ID |
inclsrcs | Include Sources |
indinfo | Individual |
individuals | Individuals |
indlinked | Linked to |
info | Info |
initlds | Initiatory (LDS) |
keep_name_private | Keep Name Private |
kmlfile | Download a .kml file to show this location in Google Earth |
labels | Labels |
landscape | Landscape |
language | Language |
lastfirst | Last Name, Given Name(s) |
lastimportdate | Date of Last GEDCOM Import |
lastmodified | Last Modified |
lastname | Last Name |
latestnews | Latest News |
latitude | Latitude |
latupdates | Latest Updates |
legal | Legal |
lessdetail | Less detail |
letter | Letter |
link | Link |
living | Living |
livingnote | At least one living or private individual is linked to this note - Details withheld. |
livingphoto | At least one living or private individual is linked to this item - Details withheld. |
lmargin | Left Margin |
loading | Loading... |
loadmap | Load the map |
located | Located |
location | Location |
login | Login |
logininfo | Your login information |
loginnotsent2 | The e-mail address you provided does not match any user account currently on record. No information has been sent. |
loginnotsent3 | The e-mail address and username you provided do not match any user account currently on record. No information has been sent. |
logout | Logout |
longitude | Longitude |
maintby | Maintained by |
mainton | Maintenance Mode is ON |
male | Male |
marrabbr | m. |
married | Married |
matches | Matches |
media | Media |
missing | Missing |
mngbookmarks | Go to Bookmarks |
mnuadmin | Administration |
mnuadvancedsearch | Advanced Search |
mnucemeteries | Cemeteries |
mnufeatures | Other Features |
mnufirstname | First Name |
mnuheader | Home Page |
mnuhistories | Histories |
mnulanguage | Change Language |
mnulastname | Last Name |
mnulastnames | Surnames |
mnulogon | Log In |
mnulogout | Log Out |
mnumyancestors | Photos & Histories for Ancestors of [Person] |
mnuphotos | Photos |
mnuregister | Register for a User Account |
mnureports | Reports |
mnureset | Start Over |
mnusearch | Search |
mnusearchfornames | Search |
mnushowlog | Access Log |
mnusources | Sources |
mnustatistics | Statistics |
mnutombstones | Headstones |
mnuwhatsnew | What's New |
monday | Monday |
more | More |
moredetail | More detail |
morefam | More families |
moreind | More individuals |
morelinks | More Links |
mostwanted | Most Wanted |
mother | Mother |
name | Name |
newpass | Your new temporary password |
news | News |
newsearch | New Search |
nickname | Nickname |
nofirstname | [no first name] |
none | None |
noresults | No results found |
nosurname | [no surname] |
notes | Notes |
notyetlocated | Not yet located |
of | of |
orient | Orientation |
otherevents | Other Events |
ourhist | Our Family History |
ourhistanc | Our Family History and Ancestry |
ourpages | Our Family Genealogy Pages |
page | Page |
parents | Parents |
pdfgen | PDF Generator |
pedigree | Pedigree |
people | People |
people_have | people have linked a DNA test to |
persinfo | Personal Information |
person_has | person has linked a DNA test to |
personid | Person ID |
pgsetup | Page Setup |
pgsize | Page Size |
photos | Photos |
photoshistories | Photos & Histories |
place | Place |
placelist | Place List |
places | Places |
plot | Plot |
portrait | Portrait |
predicted | Predicted |
prefix | Prefix |
problem | An error has occurred in the TNG software. This could be due to a setup issue, an incomplete upgrade or a program bug. If you are the site owner, you may contact TNG support for help with this problem. Please copy the query below and paste it into your message. |
pwdsent | Your new temporary password has been sent to your e-mail address. |
pwrdby | This site powered by |
query | Query |
recordings | Recordings |
refresh | Refresh |
refreshmap | Refresh Map |
relationship | Relationship |
relationship2 | Relationship |
relevant_links | Relevant links |
reliability | Reliability |
remnums | Clear Numbers and Pins |
remove | Remove |
repoinfo | Repository Information |
reports | Reports |
repositories | Repositories |
repository | Repository |
resources | Resources |
rmargin | Right Margin |
saturday | Saturday |
savechanges | Save Changes |
sealedplds | Sealed P (LDS) |
sealedslds | Sealed S (LDS) |
search | Search |
searchfams | Search Families |
searching | Searching |
searchnames | Search People |
searchresults | Search Results |
searchsite | Search this site |
searchsitemenu | Search Site |
searchtngnet | Search TNG Network (GENDEX) |
seephoto | See photo |
share | Share |
slidestart | Slide Show |
source | Source |
sources | Sources |
spouse | Spouse |
srcinfo | Source Information |
startingind | Starting Individual |
startnum | First Number |
startswith | starts with |
status | Status |
suffix | Suffix |
suggest | Suggest |
sunday | Sunday |
surnamelist | Surname List |
surnames | Surnames |
switchm | Switch to mobile site |
switchs | Switch to standard site |
takenby | Taken by |
test_info | Test Information |
test_info_display | Test Information To Display |
test_number | Test Number/Name |
test_results | Test Results |
test_type | Test Type |
testgroup | Test Group |
text | Text |
text_and | and |
text_for | for |
text_next | Next |
text_prev | Prev |
thumb | Thumb |
thursday | Thursday |
timeline | Timeline |
title | Title |
tmargin | Top Margin |
tng_reset | Reset |
tngprint | |
to | to |
top | Top |
tree | Tree |
trees | Trees |
tuesday | Tuesday |
type | Type |
understand | I understand |
unknown | Unknown |
unmarked | Unmarked |
user | User |
usersent | Your username has been sent to your e-mail address. |
videos | Videos |
viewphotos | View all photos |
viewpolicy | View policy |
wasborn | was born |
wasburied | was buried |
waschristened | was christened |
wascremated | was cremated |
wasmarried | Married |
wednesday | Wednesday |
welcome | Welcome |
whatsnew | What's New |
whichbranch | Which branch are you from? |
writby | written by |
year | Year |
years | years |
yesabbr | Y |
Database compiled by Robert D. Morss, Sanford ME :: TNG 12.0.3 :: Latest data update: 2019-02-18