Advanced HTML block

From PGVWiki
Revision as of 20:25, 24 August 2010 by Ggpauly (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Advanced HTML block is an HTML block that you can place on your page to add any sort of message you may want. You can insert references to information from your GEDCOM into the HTML text.

Example

For example, this HTML

This site was last updated on #gedcomUpdated#. There are #totalSurnames# surnames in this family tree. The
 earliest recorded event is the #firstEventType# of #firstEventName# in #firstEventYear#. The most recent 
event is the #lastEventType# of #lastEventName# in #lastEventYear#.<br />

<br />

If you have any comments or feedback please contact #contactWebmaster#.

Results in this output:

This site was last updated on 15 March 2010. There are 2 surnames in this family tree. The earliest recorded 
event is the birth of Father's Name Surname  (I2) in 1830. The most recent event is the birth of Given Names 
Surname  (I1) in 1850.

If you have any comments or feedback please contact Admin admin.

Built-in Variables

List of the variables built into the Advanced HTML block, together with the resulting text when a reference to this variable is embedded in the HTML code supplied to the Advanced HTML block. (trunk version Aug. 2010)

Variable 	Resultant text 
gedcomFilename	ourfamily.ged
gedcomID	1
gedcomTitle	Our Family
gedcomCreatedSoftware	PhpGedView
gedcomCreatedVersion	4.2.3
gedcomDate	15 March 2010
gedcomUpdated	15 March 2010
gedcomHighlight	
gedcomHighlightLeft	
gedcomHighlightRight	
totalRecords	7
totalIndividuals	3
totalIndisWithSources	0
chartIndisWithSources	With sources [0%], Without sources [100%]
totalIndividualsPercentage	42.86%
totalFamilies	1
totalFamsWithSources	0
chartFamsWithSources	With sources [0%], Without sources [100%]
totalFamiliesPercentage	14.29%
totalSources	0
totalSourcesPercentage	0%
totalNotes	0
totalNotesPercentage	0%
totalOtherRecords	3
totalOtherPercentage	42.86%
totalSurnames	1
totalGivennames	3
totalEvents	3
totalEventsBirth	3
totalBirths	3
totalEventsDeath	0
totalDeaths	0
totalEventsMarriage	0
totalMarriages	0
totalEventsDivorce	0
totalDivorces	0
totalEventsOther	0
totalSexMales	1
totalSexMalesPercentage	33.33%
totalSexFemales	1
totalSexFemalesPercentage	33.33%
totalSexUnknown	1
totalSexUnknownPercentage	33.33%
chartSex	Males [33.3%], Females [33.3%], Unknown [33.3%]
totalLiving	0
totalLivingPercentage	0%
totalDeceased	3
totalDeceasedPercentage	100%
totalMortalityUnknown	0
totalMortalityUnknownPercentage	0%
mortalityUnknown	
chartMortality	Living [0%], Dead [100%]
totalUsers	1
totalAdmins	1
totalNonAdmins	0
totalMedia	0
totalMediaAudio	0
totalMediaBook	0
totalMediaCard	0
totalMediaCertificate	0
totalMediaCoatOfArms	0
totalMediaDocument	0
totalMediaElectronic	0
totalMediaMagazine	0
totalMediaManuscript	0
totalMediaMap	0
totalMediaFiche	0
totalMediaFilm	0
totalMediaNewspaper	0
totalMediaPainting	0
totalMediaPhoto	0
totalMediaTombstone	0
totalMediaVideo	0
totalMediaOther	0
totalMediaUnknown	0
chartMedia	None
totalPlaces	1
chartDistribution	
Individual distribution chart

Individual distribution chart
	Highest population  		Lowest population  		Nobody at all  
commonCountriesList	

    * Click edit and change me ‎[1]‎

commonBirthPlacesList	

    * Click edit and change me ‎[1]‎

commonDeathPlacesList	

commonMarriagePlacesList	

statsBirth	Births by century
statsDeath	
firstBirth	Father's Name Surname ‎(I2)‎
Birth 1830
firstBirthYear	1830
firstBirthName	Father's Name Surname  (I2)
firstBirthPlace	
lastBirth	Given Names Surname ‎(I1)‎
Birth 1 January 1850 20 20 -- Click edit and change me
lastBirthYear	1850
lastBirthName	Given Names Surname  (I1)
lastBirthPlace	Click edit and change me
firstDeath	
firstDeathYear	
firstDeathName	
firstDeathPlace	
lastDeath	
lastDeathYear	
lastDeathName	
lastDeathPlace	
statsAge	
longestLife	
longestLifeAge	
longestLifeName	
topTenOldest	
topTenOldestList	
topTenOldestAlive	
topTenOldestListAlive	

averageLifespan	0
longestLifeFemale	
longestLifeFemaleAge	
longestLifeFemaleName	
topTenOldestFemale	
topTenOldestFemaleList	
topTenOldestFemaleAlive	
topTenOldestFemaleListAlive	

averageLifespanFemale	0
longestLifeMale	
longestLifeMaleAge	
longestLifeMaleName	
topTenOldestMale	
topTenOldestMaleList	
topTenOldestMaleAlive	
topTenOldestMaleListAlive	

averageLifespanMale	0
firstEvent	Father's Name Surname ‎(I2)‎
Birth 1830
firstEventYear	1830
firstEventType	birth
firstEventName	Father's Name Surname  (I2)
firstEventPlace	
lastEvent	Given Names Surname ‎(I1)‎
Birth 1 January 1850 20 20 -- Click edit and change me
lastEventYear	1850
lastEventType	birth
lastEventName	Given Names Surname  (I1)
lastEventPlace	Click edit and change me
statsMarr	
statsDiv	
firstMarriage	
firstMarriageYear	
firstMarriageName	
firstMarriagePlace	
lastMarriage	
lastMarriageYear	
lastMarriageName	
lastMarriagePlace	
firstDivorce	
firstDivorceYear	
firstDivorceName	
firstDivorcePlace	
lastDivorce	
lastDivorceYear	
lastDivorceName	
lastDivorcePlace	
statsMarrAge	
youngestMarriageFemale	
youngestMarriageFemaleName	
youngestMarriageFemaleAge	
oldestMarriageFemale	
oldestMarriageFemaleName	
oldestMarriageFemaleAge	
youngestMarriageMale	
youngestMarriageMaleName	
youngestMarriageMaleAge	
oldestMarriageMale	
oldestMarriageMaleName	
oldestMarriageMaleAge	
ageBetweenSpousesMF	Father's Name Surname + Mother's Name Surname ‎[30 months]‎
ageBetweenSpousesMFList	

    * Father's Name Surname + Mother's Name Surname ‎[30 months]‎

ageBetweenSpousesFM	Father's Name Surname + Mother's Name Surname ‎[30 months]‎
ageBetweenSpousesFMList	

    * Father's Name Surname + Mother's Name Surname ‎[30 months]‎

topAgeOfMarriageFamily	
topAgeOfMarriage	
topAgeOfMarriageFamilies	
topAgeOfMarriageFamiliesList	

minAgeOfMarriageFamily	
minAgeOfMarriage	
minAgeOfMarriageFamilies	
minAgeOfMarriageFamiliesList	

youngestMother	Mother's Name Surname ‎(I3)‎
Birth 1830
youngestMotherName	Mother's Name Surname
youngestMotherAge	20
oldestMother	Mother's Name Surname ‎(I3)‎
Birth 1830
oldestMotherName	Mother's Name Surname
oldestMotherAge	20
youngestFather	Father's Name Surname ‎(I2)‎
Birth 1830
youngestFatherName	Father's Name Surname
youngestFatherAge	20
oldestFather	Father's Name Surname ‎(I2)‎
Birth 1830
oldestFatherName	Father's Name Surname
oldestFatherAge	20
totalMarriedMales	0
totalMarriedFemales	0
largestFamily	Father's Name Surname + Mother's Name Surname ‎(F1)‎
largestFamilySize	1
largestFamilyName	Father's Name Surname + Mother's Name Surname
topTenLargestFamily	Father's Name Surname + Mother's Name Surname ‎[1 children]‎
topTenLargestFamilyList	

    * Father's Name Surname + Mother's Name Surname ‎[1 children]‎

chartLargestFamilies	Largest families
totalChildren	1
averageChildren	1.00
statsChildren	
topAgeBetweenSiblingsName	
topAgeBetweenSiblings	
topAgeBetweenSiblingsFullName	
topAgeBetweenSiblingsList	
noChildrenFamilies	0
noChildrenFamiliesList	
chartNoChildrenFamilies	
topTenLargestGrandFamily	
topTenLargestGrandFamilyList	
getCommonSurname	SURNAME
commonSurnames	Surname
commonSurnamesTotals	Surname ‎[3]‎
commonSurnamesList	

    * Surname

commonSurnamesListTotals	

    * Surname ‎[3]‎

chartCommonSurnames	Surname - 3, Other - 0
commonGiven	Name;  Mother's;  Father's
commonGivenTotals	Name ‎[2]‎;  Mother's ‎[1]‎;  Father's ‎[1]‎
commonGivenList	

    * Name
    * Mother's
    * Father's

commonGivenListTotals	

    * Name ‎[2]‎
    * Mother's ‎[1]‎
    * Father's ‎[1]‎

commonGivenTable	
ALL
Names	Count
Name	2
Mother's	1
Father's	1
commonGivenFemale	Name;  Mother's
commonGivenFemaleTotals	Name ‎[1]‎;  Mother's ‎[1]‎
commonGivenFemaleList	

    * Name
    * Mother's

commonGivenFemaleListTotals	

    * Name ‎[1]‎
    * Mother's ‎[1]‎

commonGivenFemaleTable	
Female
Names	Count
Name	1
Mother's	1
commonGivenMale	Name;  Father's
commonGivenMaleTotals	Name ‎[1]‎;  Father's ‎[1]‎
commonGivenMaleList	

    * Name
    * Father's

commonGivenMaleListTotals	

    * Name ‎[1]‎
    * Father's ‎[1]‎

commonGivenMaleTable	
Male
Names	Count
Name	1
Father's	1
commonGivenUnknown	Names;  Given
commonGivenUnknownTotals	Names ‎[1]‎;  Given ‎[1]‎
commonGivenUnknownList	

    * Names
    * Given

commonGivenUnknownListTotals	

    * Names ‎[1]‎
    * Given ‎[1]‎

commonGivenUnknownTable	
unknown
Names	Count
Names	1
Given	1
chartCommonGiven	Name - 2, Mother's - 1, Father's - 1, Other - -1
usersLoggedIn	1 logged-in user: Admin admin - Site
usersLoggedInList	1 logged-in user

    * Admin admin - Site

usersLoggedInTotal	1
usersLoggedInTotalAnon	0
usersLoggedInTotalVisible	1
userID	1
userName	Site
userFullName	Admin admin
userFirstName	Admin
userLastName	admin
latestUserId	1
latestUserName	Site
latestUserFullName	Admin admin
latestUserFirstName	Admin
latestUserLastName	admin
latestUserRegDate	Sat Aug 2010
latestUserRegTime	2:42:04pm
latestUserLoggedin	Yes
contactWebmaster	Admin admin
contactGedcom	Admin admin
serverDate	24 August 2010
serverTime	2:59 pm
serverTime24	14:59
serverTimezone	EDT
browserDate	24 August 2010
browserTime	2:59 pm
browserTime24	14:59
browserTimezone	EDT

Developer Info

SVN Trunk Link
http://phpgedview.svn.sourceforge.net/viewvc/phpgedview/trunk/phpGedView/blocks/block_htmlplus.php?view=markup