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 145 results

  1. 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
  2. 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
  3. ^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
  4. 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
  5. 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
  6. 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
  7. 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!
  8. 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 😪
  9. 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
  10. 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.
  11. 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.
  12. 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.
  13. ^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
  14. 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 !
  15. 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. */
  16. 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
  17. Hi all, While sometimes using date modifiers like bef, abt, between dates etc. i recognized that while using that kind of dates together with a place name, the date does not fit in the field, as a result it creates another line in that date field/column...see the attached picture. I would like to have it like Bef 01 Jan 1821, in 1 row. How to achieve this? I think it should be a simple code change to extend that field size, but i can not find that specific code where to change that? Someone? Any help or suggestion would be appreciated. Regards, Sandor
  18. marcirish

    Suppress showing some fields

    I have a number of fields that I import from my Reunion 12 database. These fields are really flags to indicate various things, like Died Young, Veteran, Has a Signature and the like. I use these flags to generate reports on people who have this flag set. These flags also show up under events for a person. I would like to suppress these items from showing up on the GetPerson Page but keep them active in the database for use on reports. Is this possible. https://marcirish.us Thanks. Marc
  19. Brett

    Mod Manager changing code

    I have a clean install of TNG13 with no changes and no Mods installed. It is running on WAMPSERVER 3.2.3, PHP 5.6.40 - 7.4.9, MySQL 5.7.31. When I install a Mod affecting getperson.php, lines 197, 200 and 203 are modified, even when those lines are not a Location in the Mod. It is always the same 3 lines, no matter which Mod is installed. Those lines, on a clean getperson.php end with a blank. Mod Manager removes the blanks on installing the Mod but does not return them when the Mod is uninstalled. I have tested this with several Mods. One to try is Collapse Family Children. Why is Mod Manager making these unnecessary changes? Additionally, shouldn't Mod Manager return any changes to how it was before the Mod was installed?
  20. There is unfortunate conflict between the two mods: Regroup Person Profile (13.0.0.19c) and Fixed Family Tab (13.0.0.2a) concerning line 583 of getperson.php (13.0.1). It's quite easy to resolve the problem temporarily, but of course it could be better to have it definitely correlated by the authors. Both mods are extremely useful and both are among my favourites for years. I wonder why they are still not included in TNG... Best regards Michal
  21. The DNA table in the getperson-page has a bigger font size as all the other tables on that page. Css class definition for the DNA table is "table.whiteback.tfixed", all other tables have "table.whiteback.tfixed.normal". I dont know where to change. Templapte is 19. Pls Hlp. Regards Walter
  22. Rob Severijns

    Show photo's on one row

    Hello everyone, I always save all my documents as a .jpg file so the generating of thumbnails is easy and I always have thumbnail available. If you go to Setup >> Configuration >> General Settings>>Media>> and set “Show photo's on one row” to Yes all photo's on the person page appear on one row. Except for photo's (documents) that are not linked to an event (See picture) With this in mind I asked Darrin of this was intended. Here's what he said. Since I save all my documents as a .jpg file I wanted to see those on one row too. This is for those who save their documents as a .jpg file too. If you want to see the photo's (documents) on one row too (see picture below) do the following: Make sure you make a backup of your personlib.php. Edit your personlib.php file. Find the line (somewhere around 1012) that says : if(count($media) > 1 && ($mediatypeID == "photos" || in_array($mediatypeID, $mediatypes_like['photos']))) { and change it into: if(count($media) > 1) { Make sure to use the closing bracket after the 1 for otherwise it will generate an error 500. (happend to me 😞) If you reload your person page the photo's (documents) that are not linked to an event will appear on one row. Unfortunately I'm not able to write a mod so after an update/upgrade this needs to be reapplied. HTH Rob
  23. Can anyone tell me where the code is to set the default opening option for the Get Person page? On my online site (still testing, not public) it is defaulting to Personal Information instead of All. On my computer (Wamp server) it defaults to All which is what I want. TNG version is updated to ver 13 and I have added the most recently updated files as well. So far to troubleshoot I uninstalled and deleted all mods and loaded a fresh getperson.php file, but it still defaults to Personal information, so I'm assuming the code is in another file. Help please.
  24. Michel KIRSCH

    Working with search function of TNG

    Hi Moders and Programmers ! I would like to write a Mod that would allow to insert a link to a individual of the genealogy into a note. For this, I would like to use TNG's search function (the one we usually use to search for a spouse or a child we would like to add). This search function is called with a button : <input type="button" value="Person Search" onclick="return findItem('I','hiddennote' , 'mynote' , '' , '' );"> findItem() is a function from selectutils.js So I create a button, a text field (mynote) and a hidden field (hiddennote) in the note editing window. It works very well, the search window opens and I can select a person in the genealogy. The return URL is in the form : http://....../admin_editperson.php?personID=I5&tree=KC1&cw=1# The problem is that I don't know where and when this "admin_editperson.php" is inserted in the URL. I would have to replace it by "admin_editnote.php" to be able to intercept the result... Can someone help me? Thank you Michel
  25. Rob Severijns

    Login issue

    I have an issue when trying to login. Normaly if I press the login button on the startpage https://www.severijns.family/index.php I should be directed the the login screen. In my case I'm directed to: https://www.severijns.family/index.php# Basicly my startpage ending with a # I saw the underlying code looks like this: <a href="#" onclick="return openLogin('ajx_login.php?p=');" title="Login" class="tngsmallicon" id="log-smicon">Login</a> If I change the code into: <a href="login.php" onclick="return openLogin('ajx_login.php?p=');" title="Login" class="tngsmallicon" id="log-smicon">Login</a> logging in works but not via the login popup. I have no clou what the side effects of the code change will be but maybe someone can shed a light on this. I also have no idea where to permanently change the code so if someone could tell me that too that would be really nice 😊 Rob Using TNG 13.0
×