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


  • 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


  • Community News
  • TNG News

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...

Found 176 results

  1. Hello, Hoping I can get a bit of help. I've been figuring out a lot on my own, but this one I don't know. Probably looking right at me or I'm too stupid. I'm trying to add cemeteries, but when I do, I get the error message populated in the image below. The Table Database it says doesn't exist, "bonesare..." is listed under setup Database. If that's even where I'm supposed to look. Under my cpanel, public_html, I do not see a "cemeteries" folder like I do with headstones, histories, img, photos, etc. etc. Does that matter? Do I need to define max lines? If so, what is the standard (I do realize it's an ind. preference, but as this is a TNG thing, I don't know, start with 25? 50?)
  2. My site https://bonesareforever.org/index.php My version: tng v-13 On the right side of my page I have titled "Before you jump in..." and the "More" at the bottom of that paragraph, when I click that [https://bonesareforever.org/histories/feature1.php] I get a 404. Additionally, when adding information to that text area box, I can only add so much and it will not accept anymore. Well, I can add plenty, but when saving it, it says Forbidden, I Don't Have Access, yadda-yadda. So 1) How / where can I edit the "More" link. 2) Why am I getting a Forbidden message when trying to save text for the Feature 1 paragraph under Folder: templates/template17. I am returning to edit this. I'm having one issue after another. I generated my API key, maps don't work. I uploaded one picture and it gave me a page of errors. _______________________________ An error has occurred in the TNG software. What to do: If you just installed an upgrade, you might have skipped part of the installation instructions. Go back to the upgrade readme page reread the instructions. Pay special attention to the database structure step. If you just installed TNG for the first time, you might still need to create the database tables. Return to the readme.html page to find that step. If you are the site owner, you may contact TNG support for further assistance with this problem. Please copy the query below and paste it into your message. Query: UPDATE tng_media SET path="William Donald and Lillian Vest and Dau. Carolyn Jean Vest.jpg",thumbpath="thumb_William Donald and Lillian Vest and Dau. Carolyn Jean Vest.jpg",description="William D. Vest Sr. and wife Lillian Vest and Daughter Carolyn Jean Vest - 1 Front",notes="",width="0",height="0",datetaken="",placetaken="",owner="",changedate="2022-08-31 20:36:59",changedby="DonVest",form="JPG",alwayson="0",mediatypeID="photos",map="",abspath="0",gedcom="vest",status="",cemeteryID="0",plot="",showmap="0",linktocem="0",latitude="",longitude="",zoom="0",bodytext=" ",usenl="0",newwindow="0",private="0",usecollfolder="1",mediakey="photos/William Donald and Lillian Vest and Dau. Carolyn Jean Vest.jpg" WHERE mediaID="103" Duplicate entry 'vest-photos/William Donald and Lillian Vest and Dau. Carolyn ...' for key 'mediakey' ------------------------------------------------------------------------ I had Simply Hosting start everything for me. Should I just crap it all and start over and do it myself or is there something really freaking simple that I'm not seeing. I've searched the Wiki and the forums. If i did happen to find anything, it was several years and several versions out of date. I don't mean to come off nasty. I've had a really crap day , I'm frustrated and can't get this to work. I think I'm going to shut everything down and walk away for a bit. Thank you
  3. I have replaced the default top menu by a custom menu in topmenu.php. This menu is shown correctly on a PC, but on a mobile phone I still see the default menu. I assumed that there would be a separate 'topmenuformobile.php' (or some such), but cannot locate this. How can I replace the default menu on a mobile phone (hopefully without having to carry out other complicated changes)? I am not using any templates or CMS.
  4. azizdogan

    Broadsearch and showspouse

    Hi, this is my 1st topic - i hope anyone can help. I am using TNG since few days - i imported from an old 4.x.x Version the data. I installed broadsearch mod - and it works fine. I can search for alternatives names / maiden names etc. The only problem i have is to get it working with showspouse=yes parameter. Both parameters alone work fine - but if i want to use both ... spouse is not showing I looked in the code and i could see that if broadsearch=Y the else part with showspouse will be ignored. I wanted to copy part of the php/sql code. But i am getting tons os errors. Can anyone help ? I am lost with all that UNIONS LEFT JOINS etc. I think a lot of others are also interested in using both parameters. Thank You So Much For Your Help I Really Appreciate It! Kindly Regards Aziz
  5. zanger02

    Timeline events duplicated

    The timeline is showing duplicated events. When I look at the events in the admin section there are no duplicates entries. On the individuals page #1-19 events are duplicated. (there are only 19 events listed on the admin page) So, instead of 19 events there are 38 events. I haven't made any modifications to the code. I'm using version 12.1 and the mod version
  6. Hi I keep getting these errors. and Pins are missing from Google maps iframes. Stack trace:\n#0 {main}\n thrown in /var/www/html/tng-12/google_marker.php on line 10, referer: http://localhost/tng/getperson.php?personID=I16&tree=Schmitt [Thu Apr 28 17:29:06.524555 2022] [php:error] [pid 481396] [client] PHP Fatal error: Uncaught Error: Call to undefined function imageCreateFromPng() in /var/www/html/tng-12/google_marker.php:10 imageCreateFromPng() should be a function from the php library? so why is it missing? TNG 12.3 PHP 8.0.8 thanks
  7. Hello all. I realize that messing around with genlib.php can get you in some deep trouble, but.... TNG v13.1.1 template 19 - In genlib.php, line 973, there's the 'hook for custom dropdown options' and below that is 'Rick Bisbee's mod' for creating a dropdown. Does anyone know how to utilize those 2 options, or add another dropdown after the INFO dropdown (line 966 of genlib.php). I'm already using customconfig and the 2 cust_text file for a dropdown. This would be one more dropdown called Family Stories with submenus . Any advice, suggestions or criticism will be appreciated. Thanks JP
  8. Hello again, John Paul here. I have a couple of questions about template 19: 1. On the main page at the bottom there's a Quick Links and a Contact Us column. In the Contact Us column there's a link for Footer Text (no link there). right below that is Link or email address also with no link. What would be a example of those 2 items and what file(s) would I edit? Starting to get my head wrapped around this stuff....
  9. Roger Rosentreter

    Pretty Permalinks?

    This is my very first post so please be gentle... Is there a setting or mod somewhere to change say https://some address/index.php to https://some address/ or https://some address/showmedia.php?mediaID=9414 to https://some address/theactualdocumentname??? Pretty permalinks are pretty much standard these days and I'm also using a sitemap generator which is currently sending Google, et al, a bunch of random data. For example: 2022-01-14T06:45:58+00:00 weekly 0.6400 16http://some address/showmedia.php?mediaID=9414 2022-01-14T06:45:58+00:00 weekly 0.6400 17http://some address/showmedia.php?mediaID=9411 2022-01-14T06:45:58+00:00 weekly 0.6400 18http://some address/showmedia.php?mediaID=9413 2022-01-14T06:45:58+00:00 weekly 0.6400 19http://some address/showmedia.php?mediaID=9415 Also... Where can I add the header <meta> tag information please??? I've found meta-title and meta-keywords but none of the others.
  10. Rob Severijns

    Security / Privacy Question

    Hi all, My genealogy website is private and for now I want to keep it that way. I'm trying to prevent robots/crawlers etc from indexing, following and using my data. In order to achieve that I was thinking of modifying my .htaccess file by adding the followig: <FilesMatch ".(docx|pdf|png|jpeg|jpg|gif|mp4)$"> Header add X-robots-tag "noindex, nofollow, noimageindex, noarchive, nocache, notranslate, nosnippet, noyaca" </FilesMatch> Is this the correct way to do it? Do I still need to adjust my robots.txt / tngrobots.txt file too? I suppose that if the robots.txt / tngrobots.txt are set to follow and index this is blocked by the .htaccess settings or am I wrong? Is it still usefull to adjust my genlib.php with: <meta name="robots" content="noindex,nofollow" /> or a slightly different code? I'm also using rel=”nofollow” in my external hyperlinks <a rel=”nofollow” href=”https://www.example.nl/” >Example</a> in cases where I need to link, but don’t want to be associated with the link target. I have read the articles in Security too and that's why I was looking into this. I know these are a lot of questions but hopefully relevant to other users too. Any comments and/or advise is welcome here. Rob
  11. this is what it should look like and it's the same for all extrapages. all files are in tng/extrapages/ even the 3 that are not showing the header. include( "../begin.php"); if( !$cms['support'] ) $cms['tngpath'] = "../"; include($cms['tngpath'] . "genlib.php"); $textpart = "getperson"; include($cms['tngpath'] . "getlang.php"); include($cms['tngpath'] . "$mylanguage/text.php"); $link = tng_db_connect($database_host,$database_name,$database_username,$database_password) or exit; include($cms['tngpath'] . "checklogin.php"); include($cms['tngpath'] . "log.php" ); //if (! $currentuser) { //@include($cms['tngpath'] . "TNG_captcha.php"); //} //$logstring = "<a href=\"extrapgs/faq.php\">Frequently Asked Questions</a>"; //writelog($logstring); //preparebookmark($logstring); ?> <?php tng_header( $text[faq], $flags );?> <a name="top"></a> <?php if (strpos($mylanguage, "English") === false) { ?> <!--GOOGLE TRANSLATE--> <div align="right" id="google_translate_element"></div><script> function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en' }, 'google_translate_element'); } </script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> <!--end of GOOGLE TRANSLATE--> <?php } ?> <h1 class="header"><span class="headericon" id="faq-hdr-icon"></span><?php echo $text['faq']; ?></h1><br clear="left" /> <?php if (! $currentuser) { @include($cms['tngpath'] . "TNG_captcha.php"); } $logstring = "<a href=\"extrapgs/faq.php\">Frequently Asked Questions</a>"; writelog($logstring); preparebookmark($logstring); ?> <span class="normal"> <b><?php echo $text['avail']; ?></b> </span>
  12. John Paul

    Simple Macines Forum

    https://wiki.simplemachines.org/smf/Integration_hooks Would it be possible for one of ya'll to read and explain to me what line of code I'll need to integrate smf into my tng? just got home from the hospital and their keeping me pretty much out of things...
  13. PeterC66

    Destination after login

    I am using TNG v13 integrated with WordPress via the Kloosterman method. After many years of not, I have recently switched for copyright reasons to requiring TNG users to login and all seems to work OK on my WAMP. My issue is that users may arrive at a TNG page from outside TNG (eg because of a link in WordPress), and the login does not remember where they were trying to get to and instead sends them after logging in to a home page. I have chased the issue down to session variable destinationpage8. At some point in the past (before at least v10.12) the line where the session variable is set (line 6 in login.php) was commented out so it now reads: //$_SESSION['destinationpage8'] = $HTTP_REFERER; I have done myself a small mod to un-comment this line and I seem to have solved my issue. On checking with Darrin he says he commented it out some time ago because it caused a problem for someone, but he can't remember what that might have been. As I seem to be the first to raise it for a long time it may not be a major issue and I am happy to live with my little mod. But does anyone have any comments on reinstating that line in TNG generally?
  14. My extrapages template (based on the historytemplate). How do I code a link such as <a ref="localhost/tng/extrapages/smfforum.php"</a> forgot the h in a href. is this feasable? or do i need more code? normally i have been using text for the extra pages, thanks.
  15. Hi Everyone! I have ver. 13.1. How do I hide the last modified field?? I tried an old code that a few members gave me, that worked on previous version 12 and back, but not forward into 13.x. Well appreciated any thoughts! Jeff:)
  16. Hi Everyone! I have a template/coding issue I am not sure what to do. Darrin took a look and thought it was strange too. 1. The IDs for my Dad and Mom are correct. 2. Their family IDs are correct (and only one, and the same with their individual IDs) 3. when I search for people the IDs for either parent, The individual page comes up correct with the right relationship, either husband or wife. 4. BUT On the homepage when I click the name or the image for my father the individual page shows himself as a partner to himself ! I have tried re linking them as new and recreating a family, as well as uploading a new GEDCOM. So what PHP page could be the issue and any clue how to fix this?? Well appreciated! Jeff
  17. jeff g

    Admin Text Problem

    Hi Everyone I used Eric's Coloring Book, which works fabulous, My normal text is white on a burgundy background. But I need to isolate if possible the text color for the admin panel, Especially the mods, where the white text I have for my normal text, seems to be set in Admin as well. I have attached a screenshot for you to see what is happening. Greatly Appreciated, Jeff
  18. ^maikl11

    cause of death

    Hello everyone, I want to make a report with a specific cause of death! Only people should be listed who have "Fallen (in german: Gefallen)" the cause of death and where they died. How do I do it? I've already prepared something, but all causes of death are listed! SELECT cause AS cause_of_death, personID, p.lastname, p.firstname, p.birthdate, p.deathdate, YEAR(p.deathdatetr)-YEAR(p.birthdatetr) AS age, p.gedcom FROM tng_events AS e INNER JOIN tng_people AS p ON (e.persfamID=p.personID AND e.gedcom=p.gedcom) WHERE cause<>"" AND parenttag="DEAT" AND YEAR(p.deathdatetr)<1910 ORDER BY cause_of_death, p.lastname;
  19. 4lexsharpe

    Back to the top icon

    Hello, I have just looked at the option to print on the 'getperson.php' page and I notice it has a feature that I haven't seen on other pages but would be a nice option to have, 'the back to the top' icon appear once you scroll down the page. Looking at the source it looks like <div class="scroll-to-top"><a href="#"><img src="img/backtotop.png" alt="" /></a></div> is the code that make this feature work. Is there a reason why this is not available on all pages, I'm using template #12
  20. Rob Severijns

    Footer question

    Hello all, Since upgrading from TNG 13.0.4 to TNG 13.1 I noticed that the footer wasn't updated correctly. It still says 13.0.4 instead of 13.1 With or without the User Footer Copyright - GDPR mod by Ken Roy doesn't make a difference. Anyone any idea how to resolve this? or which file I missed during the update? Rob
  21. Simple SEO V7 for TNG releases 12 and 13 has been posted and can be downloaded from the Wiki. There are no new features in this release, but plenty of bug fixes and minor updates to improve the code, including: PHP-8 compatibility Support for meta keywords from familychart.php (a bug fix) Improvements to the code inserted into getperson.php that corrects some long-standing conflicts with the Sosa and Relationship Display mods This update is recommended, but not required, for Simple SEO users unless one intends to move to PHP-8. However, this will be the last major release of Simple SEO for TNG 12. Bill Herndon Lindell-Herndon Genealogy
  22. Citation Master V9 has been released and is available from the TNG Wiki. This is a major update that adds two new features, incorporates a series of changes for PHP-8 compatibility, and adds an example configuration for the Evidence Explained citation format. The new features are: Source/Citation Thumbnails -- 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.) Context-sensitive Formatting -- 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. See the Wiki page for examples of how to enable this feature or take a look at the Chicago Manual of Style (CMoS) or the APA example configuration files. V9 can be downloaded here or from the Wiki. This update is optional and works for all releases from TNG 13.0 forward. However, if you are intending to switch to PHP-8, then you'll need this version. A back-port to TNG 12 is coming and should be available in a few weeks. Thanks to everyone who tested the release candidates and especially to Kathy Kult whose Evidence Explained-based configuration file was the basis of the new example. Bill Herndon Lindell-Herndon Genealogy
  23. I would like to replace the links to his and her sides of the family tree with personalized links based on who is logged in. It appears that this mod has been done previously. Question: It has been a long time since I set up my site and I have done virtually nothing to it since setup. I would like to make this modification, but am at a loss as to how to accomplish it. Can someone help me with how to make this change? Please provide a step-by-step approach if you have the patience. This mod: https://tng.lythgoes.net/wiki/index.php/My_User_Links_Add-on This thread: https://tng.community/index.php?/forums/topic/12161-mod-wanted-or-code/&tab=comments#comment-57912 My site: http://www.garyconniefamilytree.net/index.php My server (if it matters): I am using SimplyHosting. Thank you, Gary
  24. I've posted the 1st release candidate for Simple SEO V7. No new features in this release...yet, but I've included PHP-8 compatibility updates, numerous bug fixes, and support for meta keywords from familychart.php. In addition, I've simplified/streamlined the code inserted into getperson.php to correct some long-standing mod conflicts with Sosa and Relationship Display The release candidate can be downloaded here or from the Wiki page. This update was developed against TNG 13.0 and 13.0.4 but may work with all releases from TNG 12.0.3 forward. Comments, bugs, and suggestions for additional features are very welcome. Bill Herndon Lindell-Herndon Genealogy
  25. 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