Jump to content
TNG Community

Search the Community

Showing results for tags 'code'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • TNG Specific
    • Announcements
    • Questions and Answers
    • TNG Modifications
    • Installation and Configuration
    • New Ideas and Suggestions
    • Code Discussion
    • Templates or Design Questions
    • CMS Integrations
    • TNG Wiki
  • Community
    • Member Webpages
    • Genealogy
    • Chit Chat
    • Questions and Answers
    • Offers And Requests

Blogs

  • Community News
  • TNG News

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 153 results

  1. I have posted the first release candidate (rc1) of Citation Master v9 on the TNG Wiki. This is a major update that adds two new features and incorporates PHP-8 compatibility: Source/Citation thumbnails for all sources that have an attached media file are displayed in the citation area of individuals and families. (This feature can be enabled/disabled in Mod Manager parameters.) Format specifications now support the ability to have different instruction sets for source displays and citations displays. The idea here is to be able to create "short format" citations as one would find in scholarly publications, but the feature allows for any complexity for the formatting. The Citation Master Wiki page has details and examples of the new features and Lindell-Herndon Genealogy is running the release candidate and has additional examples. The release candidate can be downloaded here. This update was developed against TNG 13.0.4 and may be compatible with, but has not been tested against, earlier versions from TNG 13.0 forward. Comments, bugs, and suggestions for additional features are very welcome. Bill Herndon Lindell-Herndon Genealogy
  2. I have published the 2nd release candidates for NearDark2 and NearDawn2 for my 'cleanroom' re-implementations of the templates NearDark and NearDawn. These new templates are part of a package called eGenea Free Templates and improve on my original TNG templates by providing: Streamlined CSS that's built with easy modification in mind Contemporary web style (new larger fonts, more spacing, "meta" section/footer) Selectable features (...that can be shown or hidden via template settings). Basic localization for Czech (CS), Danish (DA), Dutch (NL), English (EN), French (FR), German (DE), Italian (IT), Norwegian (NO), Polish (PL), Portuguese (PT), Spanish (ES), and Swedish (SV) Below are images of the new templates NearDark2 and NearDawn2, and NearDark2 is currently running on my own site. Two additional templates DayLight and NightLight are under development and the 1st release candidates will be available in about 3 weeks. Check out the Wiki article eGenea Free Templates for a full list of features and download links. I'm continuing to work on these while creating the new templates DayLight and NightLight and any comments, feature suggestions, and bug reports, would be appreciated. Thanks Bill Herndon Lindell-Herndon Genealogy
  3. I've successfully run MariaDB (the 'drop-in' successor to MySQL, created by the original team that authored MySQL many years ago) on my TNG live site for years. Now, with Apple making it harder and harder for software developers to install and manage development tools, I've had to switch to Brew for maintaining software that my TNG test installations require. One good positive development, though, was the possibility of leaving MySQL (and Oracle the owner of MySQL) behind forever with a move to MariaDB. All good...or so I thought. My first attempt to create a fresh TNG 13.0.4 test installation stalled at database table creation. The script just never finishes. Approximately half of the tables get created, and then...nothing. Process inspection shows that MariaDB does not appear to be doing any work (so...no live-lock though perhaps a deadlock, I suppose). PHP does not appear to be working either. A second attempt stalled as well, but after getting not quite as far through the tables as the first. My system: MariaDB 10.6.4 / PHP 7.4.2 / macOS 11.5.2 (otherwise known as "Big Suck" ... oh, sorry... "Big Sur") Any insights would be appreciated. Bill Herndon Lindell-Herndon Genealogy
  4. We'll, I'm stumped. I moved a bunch of newly updated mods (my own) to a new TNG 13.0.4 test environment and got the errors depicted in the screenshot (attached). The mods are in place with .cfg files right where they should be.The only thing I can think of is a change to the expected fields or to the expected syntax for .cfg files? Could it be an issue with line endings? Regardless the mods where scanned and information loaded into this table under TNG 13.0 just fine. (...but when I moved the same code over to TNG 13.0.4...this happens. Any ideas because I've run out? Thanks, Bill Herndon Lindell-Herndon Genealogy
  5. ^maikl11

    <head> </head> tags in PHP ??

    I'm trying to add a picture slider to the index page of template 12. But I should put a code between the tags <head> </head>! Now my question: Does PHP even have a <head> </head> section? And if so, where can I find it ??? I can't find it in the index.php or in the topmenue.php !!!! Many thanks in advance
  6. I need help from you, please I would like to make my site look like the attached picture (my design). Now I've looked at the index.php of template 12 and edited something. I was able to insert another block! But how and where do I change the width and do I put 2 more blocks next to each other ??? And then, how do I get the different queries in the respective blocks with scrollbars ??? I despair.....
  7. slowjim

    Cemetery place link

    I cannot figure out how to programmatically link a record in the tng_cemetery table to a corresponding record in the tng_places table. At least, that is what I think I need to do. I have written a very useful tool for myself and would share with anyone who wanted it once it is perfected. I use rootsmagic 7 to create gedcoms to import my Ancestry data into TNG. One of the great about Rootsmagic is that I don't have to do too much cleanup to the .ged file before I import. Looking at the rootsmagic generated .ged file I noticed that there are _WEBTAGs for all the findagrave entries in the file , however upon import into TNG that information is lost. It was not too difficult to write a small php file that generated a list from that gedfile with the individual's ID and the urls on each line. Then from that info, another php file puts all the findagrave links into TNG as an external link into the individual's page. All done practically instantaneously. However, then I decided to carry it a step further. I would put these links into a person's burial section along with the correct cemetery name. So you'd have the findagrave link there and also if you clicked the little magnifying glass next to the burial place you'd get a map and below it everyone else who was buried there. To do this, I wrote a file which read all the lines in the list I generated of the person's ID, and findagrave link. The program loads the link (findagrave) page, finds the cemetery name and location from the memorial page, then loads the cemetery page and retrieves the gps coordinates from a meta tag on that page and generates a new list with all that info on it. I could get a couple of hundred before their server stops me, times out or something, and then I'd have to do it again with the remaining entries. It took a few minutes and three runs before I got the whole list of 517 burials in 217 cemeteries. Then I created another php file which reads that list and puts all that into the website programmatically and instantly.. The problem is that when you click the magnifying glass next to the burial location it shows the cemetery name and every person buried there, but no map! I solved that on my website by going to admin > cemeteries and going to the edit page of each of the 217 cemeteries and checking the box to 'Copy the geocode information below to this place' and now they all work correctly. Even though they are all now working correctly on my site, having to manually edit each entry kind of takes a little out of the whole idea. I want to do the whole thing without editing anything. Now to be clear, even when this current problem is solved, the program still needs a lot of cleanup. I found a couple of places on findagrave.com where there was a memorial, but no cemetery, which would cause an error in my program. That's what error-handling is for, so I am sure that and a couple of other details can be cleaned up. I am hopeful that someone out there with more knowledge of how tng works, and also more programming expertise will tell how I can do this all without having to manually edit afterwords. Thanks https://thebrownfamilytree.info
  8. Hello everyone, I used to have a piece of code that I somehow lost. Since my site is a private site and only registered users may login, I made a change to the index.php which redirects from the homepage (index.php) to the login.php. I did this because my homepage contains private data that should only be visible to registered users. The code I used is seen below and was aquirred via About frontpage and login <?php if (!$currentuser) { header('location: login.php'); exit; } $flags['noicons'] = true; $flags['noheader'] = true; $flags['nobody'] = true; Problem is that after a succesful login the user stays at the login page and isn't forwarded to the index.php as a logged in user and navigating is only possible via the dropdown menu's In Site Design and Definition the startpage is set to index.php or should this be login.php? Any idea's on the additional steps/code needed? Using TNG 13.0.4 / PHP 7.4 Thanks in advance, Rob
  9. rcpettit

    Add citation section

    Is there any plans to add a citations section to the admin area. It seems a waste of space to have multiple copies of a citation in the database and having to edit them individually if you make an error.
  10. slowjim

    TNG compatibility

    People use more different devices now than ever before to view the web. Gone are the days when we only had to worry about how our sites looked on PC's. For example, I use template 14 on my website. Scrn01 below shows how my searchbox looked on a Chromebook. Fortunately, this was easily fixed with a small modification. I am no programmer - I just tinker at this stuff and do what seems to work often based on some solution I looked up somewhere. First, make a copy of index.php in the template 14 folder. Then in the index.php file; Modify line 78 from - input name="myfirstname" type="text" value="" and change it to - input class="shorttext" name="myfirstname" type="text" value="" Then also add the class attribute to line 81. Now in the template14 css folder modify your mytngstyle.css and add the following: input[class="shorttext"] { width: 100%; box-sizing: border-box; -webkit-box-sizing:border-box; -moz-box-sizing: border-box; } This seems to have fixed the problem. You will also likely have to clear your cache on the Chromebook's browser. https://thebrownfamilytree.info
  11. Korycki

    Media

    There are classic media collections at TNG: Photos, Documents and Stories. Materials published there can only be edited by the administrators or owners of the relevant family tree. The problem arises if we add another collection. If I create a collection named "Trips", any logged-in editor can delete these media. How to prevent it? Piotr Korycki
  12. ^maikl11

    Custom Menu Hook Mod

    Hello everybody, I'm trying to translate the CustomHookMenue and I'm desperate. The first 3 menus are translated correctly, but all others are not translated! I do not know why! I think I did everything right, or am I missing something ??? Please help me! Thank you! In the attachment I have added the text from the cfg file. CHM.txt
  13. I've just put up the first major update to my template NearDawn in about 5 years. Changes I've made include: The "style" is more in line with contemporary publishing standards, having larger fonts, more space between elements, and less clutter. I finally did away with the right-side TNG pull-down menus in favor of a footer block that supports as many of the less used menu items as you want. (I never liked those menus anyway.) The CSS is greatly simplified, and will become the core of a family of templates using similar layouts and blocking. There is no longer any difference between the version I publish for Lindell-Herndon Genealogy and the version I make available for download. So...less maintenance. NearDawnTwo is compatible with the Template Manager mod. The template no longer depends on a mod to deal with certain TNG'isms that I just never could get around without a code change. (Although I may still have a mod for the final version to do language file installation.) For the time being, I'm just soliciting comments from the community on how I can improve the template and fixing a few lingering issues with the CSS. But in about 3 weeks I'll publish NearDawnTwo and NearDarkTwo for download and get to work on some more advanced features. Things I'm considering: Picture shows for the header. A 'feature scroll' for the bottom of the content section. An automated method for generating new pages that have the 'look and feel' of the home page. A template builder. Something like Uncode for TNG. (This is a 'holy grail' project.) Comments are very welcome. -- Bill Herndon
  14. I want to create new media categories in the Media drop-down list. Now I have noticed that some categories are automatically translated, but unfortunately not all! I also don't know why only part of it is translated! In which file (s) is this dropdown menu entered ??? Or how do I create the new media category so that it is translated automatically? Thanks in advance... PS: I use TNG13.0.3, template 12
  15. Hi, I need your help please. I want to integrate a new page that should be accessible only for logged in users. I have built the page with the historytemplate.php, it works fine. Also the integration in the menu bar worked well. What code do I need to integrate at the top of the page that checks if the visitor is logged in? If he is NOT logged in, he should be redirected to the login page. Thanks and have a nice weekend Jürgen ----------------------- I think I have found my mistake. I had inserted the code: if (!$currentuser && !$_SESSION['currentuser']) {header('location: ../login.php'); exit;} before include( "../tng_begin.php"); But it must be inserted BELOW this line, then everything works as desired. Learning by doing ...😁 Jürgen
  16. I am using TNG 13.0.3, template 12! under Setup >> Configuration >> Template Settings I enter the following in "Left image caption": ....<center> Family Landgraf and Eckart from Hawaii in 1905 <br> <hr> <hr> <div class = "header"> Info </div> <br> </center> <hr> <! - Start Log In button (Language Switching) -> </p> <div class = "mybutton smallbutton"> <a href="login.php"> &#x1f512; Login </a> </div> <! - End Log In button–> <! - Start Register button (Language Switching) -> <div class = "mybutton smallbutton"> <a href="newacctform.php"> &#9998; Register </a> </div> <! - End Register button–> </center> <! - Start suppress login and registration chapter once user logged in–>..... So far so good! If I now go to save, the index page is completely shifted! I know it has to do with these characters (& # x1f512; and & # 9998;, (because as soon as I leave it out, everything is saved)) How can I elegantly solve this so that these symbols remain ??? I would be grateful for a solution! Thank you!
  17. Rob Severijns

    (Solved) Java Script issue

    Hello, I'm having a problem loading pages in TNG. The issue has been around for more then a year now and is starting to annoy me. Login to my website works just fine but when I go to a sub-page like the getperson I get an error. The expand/collapse buttons don't work and the eventmap doesn't load. The getperson doesn't load properly until I have loaded several other pages and this process can take up to 3 minutes. I think the problem is visible in the screenshot. It says that the jquery-3.4.1.min.js and jquery-ui.min.js fail to load. Java Script is enabled. Anyone any idea on how to resolve this? Thanks in advance, Rob Windows 10 Home, MS Edge TNG 13.0.3, PHP 7.4, MySQL 5.7 Update: Used another browser with the same result. Did a login via another machine and the error didn't occur. Must be in the settings on my laptop but still no clue to what's causing it 😪
  18. pdwight

    Menus organize

    I would like to arrange the TNG menus left and right. I have 4 dropdowns 'File' 'Media' 'Info' 'Other' and I want to put 'Other' on the left or before 'Info'. I think I have the hang of adding and moving menu links up and down (vertical) but can not find what makes the Main Menus lists move left or right (horizontal). Using TNG 12.0.2 Template 12 …...paul
  19. After I updated my online web site to ver. 13.2, the Public Access mode is not showing any text on the Admin_genconfig.php page. (See image.) The Mod still seems to work and I can figure out the selections by looking at the Wampserver page on my computer. It is still on Ver. 13.0 and working correctly. However, that's a rather awkward way to set things up. I've tried manually adding the $text entries to text.php in both English language folders, but that didn't help. I have the following Mods installed: Google Maps - More Place Levels Image Captcha Mod Open my Page Open Street Map OSM Auto Geocoding Mod Settings Block Regroup Person: Profile, Branch, Date place, No living, and Sources User Footer Copyright They all installed correctly and are functioning as expected. Would appreciate any suggestions and also wondering if anyone else has had this problem.
  20. 4lexsharpe

    Blank page after update

    If I choose to edit a record from the public home pages The following page 'admin_editperson.php?personID=I73&tree=Lat1&cw=1' loads showing all the details. If I make a change and select save & close window the 'admin_updateperson.php' loads but with a blank screen. This has only started to happen today. In fact it seems to happen for any form I update from the public pages.
  21. webbirder

    Simile Timeline band colour

    How do I change background color for the 4 bands in Simile Timeline? I have tried changing values in timeline.css and timeline-bundle.css, but there are no visible effects. My TNG version is 13.0.1.
  22. ^maikl11

    link leads nowhere

    Hello everybody, I want to create a page where you only search for the last name. The file (searchsurname.php) is located in the main directory. On my index page there is a button "Surname Search" on the left. (https://ahnenklein.com) But this link leads nowhere. I am using this code: <! - Start Search button–> </p> <div class = "mybutton"> <a href="searchsurname.php"> & # 128270; Surname Search </a> </div> <! - End Search button–> Where am I making a mistake? I would be grateful for any help. I use Template12, TNG 13.0.2
  23. Hello, When importing a Gedcom file of over 140,000 records we have several consecutive two or three commas in the "PLACE" field, and also accented characters which are transformed into weird characters. The GEDCOM export file is well encoded (ANSI). It is approximately 30% of the registrations which would have to be corrected. In short, is it possible to do a kind of "Search & Replace" in the places? Example I put a command to replace ",,," by ","? Thanks for your help !
  24. Hi Everyone! I hope this is in the right place! I'm following the instructions for using SimpleSAML as a method to create single sign-on between TNG and Media WiKi. So far, I have everything working including testing the SSO "admin" source. However, I can not get the "authsources" code that is mentioned on the WiKi integration page Single sign-on integration with SimpleSAMLphp - TNG_Wiki (lythgoes.net) to work - whether I modify the code or not, I get the same error: SimpleSAML\Error\ConfigurationError: The configuration (config/authsources.php) is invalid: syntax error, unexpected ';', expecting ')' I am using PHP 7.2 and my suspicions are that something has changed with the upgrades in PHP and there must be something that needs to be changed or is missing in order to make the code work. I am not a code writer but I have been somewhat successful getting some code to work. Unfortunately, this one I am afraid I can not. So, any PHP code writers out there that want to take a look at this and let me know what I'm missing? the code is below. Many thanks! Dave Authsource code: $config = array( 'tngidpauth' => array( 'tngextauth:External', 'dsn' => 'mysql:host=localhost;dbname=yourdatabasename', 'username' => 'yourdatabaseusername', 'password' => 'yourdatabasepassword', 'tngpath' => '/home/example/public_html/tng/', // the TNG path from (and including) the 'home' directory; ends with a slash. 'loginpage' => 'http://example.com/tng/login.php', // full URL to TNG's login page. 'logoutpage'=> 'http://example.com/tng/logout.php', // full URL to TNG's logout page. ), /* Other authentication sources follow. */
  25. XerxX

    Empty map in showmap.php

    Hi all, I get a completely empty map in showmap.php and a PHP Notice. Can someone please check/confirm this using TNG 13.0.x. I found it using TNG 13.0.2 (never checked it with 13.0.1) This can be done with the OSM mod (I did) but not with Google maps. But as I don't have a Google map key I simply entered 123 for the map key, forcing the "Oops!" message: I select menu Find -> Cemeteries I select a cemetery by expanding it as much as possible: I click "Sånga kyrkogård" and I get an empty map! And this is the PHP Notice I get: [21-Dec-2020 11:05:37 UTC] PHP Notice: Undefined index: place in /Applications/MAMP/htdocs/TNG13/googlemaplib.php on line 77 This does not happen in my TNG 12.3 online installation. Thanks in advance for your kind cooperation! Erik
×