All Activity
- Yesterday
-
Michel KIRSCH started following Watermark module
-
A piece of code can be added to a specific page. Send me the page and i'll add the piece of code with a separated mod Michel
-
Rob Severijns started following Watermark module
-
André, The watermark mod normaly recognizes images on the mostwanted page. Not sure if this appleis to the history templates too. Ask @Michel KIRSCH (the author if the mod) if this can eventualy be added to a future update of the mod or how to make this possible now.
-
Is it possible to add a watermark to a specific page within the tng history folder? For example, take a look at https://ajnsmits.nl and click on “more...” In the watermark module, I can specify which folders to exclude, but I can't add one. Or can a piece of code be placed before the image?
-
Maybe both - feature request and mod for now? I will let @Adri1 and @RickM decide. If the code below is inserted in the file globallib.php in the age function (function age($row)) right after the line: $age = $sign = $sign1 = $sign2 = ''; then 0 years will be replaced with month/months and day/days. For example (1 month) or (6 months 2 days). I did not do any language translation of month/months/day/days; this would require additions to the cust_text.php file(s) and the associated replacements in the code below. if(substr($datum_1_tr, 5, 2) != '00' && substr($datum_1_tr, 8, 2) != '00' && substr($datum_2_tr, 5, 2) != '00' && substr($datum_2_tr, 8, 2) != '00') { $diff = date_diff(date_create($datum_1_tr), date_create($datum_2_tr)); $totdays = $diff -> format("%a"); $months = $diff -> format("%m"); $days = $diff -> format("%d"); if((int)$totdays > 0 && (int)$totdays < 365) { if((int)$months == 1) $age = " 1 month "; if((int)$months > 1) $age = $months . " months "; if((int)$days == 1) $age .= " 1 day "; if((int)$days > 1) $age .= " " . $days . " days "; $age = trim($age); return $age; } } Cheers GOGGS
- Last week
-
Works well. Thanks a lot.
-
This is regarding search for families from the admin-menu
-
Katryne started following Geocode and similar problems
-
If you do not want to show the route to the place in Google Earth, there is a mod to hide it : https://tng.lythgoes.net/wiki/index.php?title=Hide_google_earth_links
-
I have updated a lot of families, removing Male, Female and children. Family is then empty. While searching families with no names in order to delete theese, i get this message: Forespørgsel: SELECT count(f.ID) as fcount FROM tng_families as f JOIN tng_trees as t on f.gedcom = t.gedcom JOIN tng_people as p1 on p1.gedcom = f.gedcom AND p1.personID = f.none WHERE husband = "" AND wife = "" Unknown column 'f.none' in 'on clause' Now its not possible to access the search-function for families at all.
-
All, The Census of Ireland 1926 is online (https://nationalarchives.ie/collections/search-the-1926-census). I am trying to add a transcript to my website through the mod Census Plus International. The Irish Census has only 1841, 1901 and 1911. How do I add 1926 as year of Census? Greetings, Ton van Lil
-
Thanks, Philip Roy It's been resolved.
-
Philip Roy started following the header at the top of a new page
-
Looking at your code, I think you have deleted lines from the history template that you shouldn't have. 1) I suggest you look at this page for help - https://tng.lythgoes.net/wiki/index.php/User_Pages_-_Getting_Started 2) You ask where to add this code... Answer - You don't need to add that code in at all. The template header and menu gets pulled automatically onto the page. But... 3) One example where your code is incorrect. The history template has... $cms['tngpath'] = "../"; include( "../tng_begin.php"); if( !$cms['support'] ) $cms['tngpath'] = "../"; But in your image it is missing a line... include( "../tng_begin.php"); if( !$cms['support'] ) $cms['tngpath'] = "../"; I suggest you start with a new template file and be careful in terms of what you delete. Hope that helps.
-
Send a feature request to Darrin. He may be able to add to a future release without a mod needed.
-
Okay, but thanks for your response.
-
Sorry, I cannot help further : I have never been able to use historytemplate.php. That's why I use instead the media such as I explained above. I'm fine with this kind of result: https://clan.chauvigne.info/showmedia.php?mediaID=1896 or this with a pdf : https://clan.chauvigne.info/showmedia.php?mediaID=2185
-
Katryne, I’ve used historytemplate.php. I think I need to place this somewhere, but I can't figure out where. (see screenshot) <div class="theader"> <div id="thomemast" class="mast"> <h1><?php echo getTemplateMessage(“t17_maintitle”); ?></h1> <span class="tsubtitle"><?php echo getTemplateMessage(“t17_headsubtitle”); ?></span> </div> </div>
-
Katryne started following the header at the top of a new page
-
And how did you make this new page ? Within TNG ? If I want to a new page, I create a media and enter text instead of uploading an image or a pdf. I do not need to link it to anybody or any family : this new media, a text is a page will have an url of its own and can be called via the menu. And of course, it's automatically fitted with all the header, banner, menu ...
-
-
Thanks for the replies RickM and Goggs. Nice if it is possible to make a mod.
-
Thanks @RickM, I will take you up on it if there's sufficient interest. My proposal may not suit everyone... I have created an official Mod, but for this I would likely not use it and just update my code directly. It just feels like there's a lot of overhead (Mod packaging, Wiki, etc.) for smaller things, but I do see the value, so if I can partner with someone that's great. Thanks! GOGGS
-
RickM started following Age less then 1 year
-
@GOGGS, if I can figure out how to write a mod, then I would have no doubt you could. Think of the mod as a find and replace type thing.. Find this piece of code and replace it with that. That is a simplistic way of putting it I know! If you are writing the code to start with then you have a good knowledge of coding and following mod creation code should not be too difficult.. Have you read up on it at all? Check out The Mod Manager Page on the TNG Wiki. I would be happy to help, test and get your Mod sorted with you. Just ask.
-
I guess by now, if nobody has replied with a mod, there might not be one. The system has a fairly complicated function for calculating age (e.g. what's shown in parentheses on getperson.php); over 160 lines in v13. The formula considers each format/field (birthdate, birthdatetr, deathdate, deathdatetr, albirthdate, altbirthdatetr) and if any are missing (e.g. someone is alive or missing data), whether "BEF"(ore), "AFT"(er) are used, handling bad data or inconsistent data, if a date has a day, month, or not, etc. - I think you get the idea. One option for a potential mod might be this: if both birthdatetr and deathdatetr (e.g. 1961-09-23) are present and don't have "00" for the month or day... THEN Subtract the 2 dates and if the difference is 1) if more than 364 days, do nothing (use existing formula), 2) else show months and days. I guess you could either show "0 months, 14 days", or just "14 days", depending on preference (though the first is easier). Writing the code to insert into the age function in globallib.php would not be very difficult, but creating a packaged mod would be something else... Thoughts? GOGGS
-
Hopefully you're NOT doing "Select All" when making changes to Place Level... These are done one at a time unless you have some code to do them automatically when entered/saved. I attached a pic of Geocoding in bulk as well... Regarding Google and geocoding or finding places, some people don't like it (haha), but a place will be parsed (as Katryne suggested) and it will do it's best to find a match. It is somewhat place/country specific. Some of your places only resolved to Den Haag and nothing more specific. Some of mine end up in a completely different place if I use the wrong address or format. For example, the Grote Kerk (as an attraction) is known in Google from a place/address as Rond de Grote Kerk 12, 2513 AM Den Haag, Netherlands. Again, that may not be your preference, but that's what Google has. BTW, aren't 's- designations for tram stops? That is a transit "layer" on Google, which does show on the maps by default. I've had to change a lot of my data in TNG to work with Google Maps, but I like the way it works! GOGGS
-
Is there a solution or a mod to show the age of children who are younger then 1 year in Months, days.... At the moment it is 0 year.
-
@Katryne and @GOGGS Thank you so much for your help and inputs! best regards from Vienna! Ingrid