Jump to content
TNG Community

Search the Community

Showing results for tags 'code'.

  • 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
    • Requests for New Mods
  • Community
    • Member Webpages
    • Genealogy
    • Chit Chat
    • Questions and Answers
    • Offers And Requests

Calendars

  • Community Calendar

Categories

  • Feedback on THIS Forum

Blogs

  • Community News
  • TNG News

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

  1. TNG 14.0.4 MySQL 8.0.35-cll-lve Hello, folks, This question is for the SQL experts in the forums here. I will first descibe why I am asking the question in this post, before anyone replies to me asking why I wish to do this . When I look in phpMyAdmin, for my TNG database, I see a table called tng_eventtypes In that table, I see a key (if key is the right name) called ordernum All of items (tags) have an ordernum of 0 (except for a few that I have already started to rebumber). I have recently installed Bob Carver's Sort Events ByOrder Mod, and I am in the process of renumbering the Display Order of my Events in TNG, so that I can sort them. The problem is, all the existing events (about 130 of them) all have that ordernum of 0, so until I get them all renumbered, all events that are 0 will be listed in TNG at the top of the Events section. So my question is: Is there an SQL command that I can run in phpMyAdmin, that will renumber the ordernum of all events in the tng_eventtype table that currently have an ordernum of 0 to something like 999 ? I hope that makes sense. Thank you in advance. Regards, John
  2. TNG 14.x Hello, folks, When we display browsemedia.php (by selecting All Media, Documents, Photos, etc.), over in the Linked to column, by default TNG displays perhaps a maximum of about a dozen or so individuals for each media item. If more than that number of individuals are linked to a media item, TNG displays ['More Links'] after the last person, which when clicked on takes the user to the actual media item (showmedia.php), with more individuals listed in the details near the bottom in that page's Linked to section. Sometime earlier this year or last year, someone told me how to increase the number of individuals in the Linked to column for each media item. An example of the increased number of individuals linked can be see here on THIS page. If you look at the 4th media item (Paget) on that page, notice that I have 81 individuals listed. However, I need to drastically increase the number of individuals linked, but my problem is that I can't remember where to make that change, nor who was the person in the forums that told me how to do that . I've searched the forums here, my PMs, and my personal email, but I am unable to find where I was told what to change. And I don't think that it is a Mod on my site that has increased that number. So my 1st question is: what file do I modify, and exactly what in that file do I modify, in order for browsemedia.php to display more individuals in the Linked to column? Now, I just noticed for that same 4th media item on that page, that although browsemedia shows the first 81 individuals before the ['More Links'] is displayed, the showmedia.php page for that same 4th media item shows the next 54 individuals linked to that 4th media item, and the users needs to keep pressing ['More Links'] to see the next group of individuals, etc. So my 2nd question is: where is it defined to only show on the showmedia.php page 54 individuals at a time, as I would like to be able to change it so that showmedia.php shows all of the remaining individual linked to each media item... if possible. Thank you in advance, and have yourselves a great day. Regards, John
  3. (moved from FAQs) I would like for users to be presented a different page after logging into the site. Right now, the only things that change upon successful login is the Main Menu bar. The page itself is still the front page (Home Page) which has verbiage to register.. All family members are welcome to use the site by logging in above. Don't have a login? Register for New User Account I think the best solution is to redirect to a different page (User Page?) upon successful login, which will probably be a mirror of the Home page without the above verbiage, or maybe redirect to What's New. I suspect that this is simple and I just am missing it somewhere.
  4. camfam

    Redirect upon login

    I would like for users to be presented a different page after logging into the site. Right now, the only things that change upon successful login is the Main Menu bar. The page itself is still the front page (Home Page) which has verbiage to register.. All family members are welcome to use the site by logging in above. Don't have a login? Register for New User Account I think the best solution is to redirect to a different page upon successful login, which will probably be a mirror of the Home page without the above verbiage, or maybe redirect to What's New. I suspect that this is simple and I just am missing it somewhere.
  5. dennis800121

    Statcounter in footer.php

    Help!! I would love to have a visit counter on my page. I have been using googles analytics but i dont like it. I found statcounters counter and got the code that i want to put in the footer.php but the code is in HTML and not PHP. How do i solve this? I just want a counter on the bottom on my page The code i got from statcounter is this: #####################################################<!-- Start of StatCounter Code for WordPress (either .com or .org) --><script type="text/javascript">var sc_project=10544563;var sc_invisible=0;var sc_security="b635080d";var scJsHost = (("https:" == document.location.protocol) ?"https://secure." : "http://www.");document.write("<sc"+"ript type='text/javascript' src='" + scJsHost+"statcounter.com/counter/counter.js'></"+"script>");</script><noscript><div class="statcounter"><a title="shopify analytics ecommercetracking" href="http://statcounter.com/shopify/" target="_blank"><imgclass="statcounter" src="http://c.statcounter.com/10544563/0/b635080d/0/"alt="shopify analytics ecommerce tracking"></a></div></noscript><!-- End of StatCounter Code for WordPress (either .com or .org) -->##################################################### Please, can someone help me!
  6. I'm trying to fix the following but can't seem to find where and how to do this. The screenshot shows the Born (b.) and Death (d.) are verticaly inline but the Marriage (m.) isn't. I made changes to mytngstyle.css in the template folder as well as in the TNG css folder but without the desired result. (margin-left was set from 14 to 36) element.style { margin-left: 14px; } Another option is to change the <div style="margin-left:14px"> but I don't know where this code is comming from and where/how I can fix this? Thx in advance
  7. Hello friends. I have been trying to make some changes in my site but some of the changes do not work, what am I doing wrong? I am no programmer or anything, maybe I am not understanding what "you only need to include the attributes" mean Thank you for your help Maria Rosa
  8. When trying to access a family "linked to" a Note I'm getting the following error. Query: SELECT tng_people.personID as personID, branch, tng_people.gedcom as gedcom, firstname, lnprefix, lastname, title, prefix, suffix, nameorder, living, private, famc, sex, birthdate, birthdatetr, birthplace, altbirthtype, altbirthdate, altbirthdatetr, altbirthplace, haskids, deathdate, deathdatetr, deathplace, burialdate, burialdatetr, burialplace, burialtype, baptdate, baptplace, endldate, endlplace, sealdate, sealplace FROM tng_people, tng_children WHERE tng_people.personID = tng_children.personID AND tng_children.familyID = "F459" AND tng_people.gedcom = "Test_uit_RM" AND tng_children.gedcom = "Test_uit_RM" ORDER BY ordernum Unknown column 'altbirthtype' in 'field list' Do others have the same problem?
  9. 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=”noopener noreferrer nofollow” in my hyperlinks <a rel=”noopener noreferrer 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
  10. I'm trying to adjust the left menu (whatsnew, reports, all media.......) in template 10 (change color, pickorder.....) Which are the file to do this and how?
  11. hello. 1) Where do I change color/background of the Search field? thank You
  12. Adri1

    New Page based on sql

    I don't Know if it is possible to make a new Page (php) based on sql. I have a report with sql to select all thé persons with thé same birthday (including surname, firstname, deathdate). Can I put that in a new php, so I can ad there thé possibility to edit, delete persons... Goal as to check double persons.
  13. Adri1

    Adjust menubar

    I'm totally new on this forum. I'm trying to adjust the menubar and to add some items. Fore example I like to add a items called "bidprentjes" and "rouwbrieven" in Dutch. Is there a mod or other way to do this?
  14. Hi all, I’m a new TNG-user, and just downloaded and installed TNG 14.0.3 on my WAMP-server (w/PHP 8.2.13, mySQL 8.2.5), using template 4. Installation runs smoothly, so with the GEDCOM-import. However, and as can be seen from the enclosed screeshot, I get some warnings/errors displaying e.g. individual person information : Warning: Trying to access array offset on value of type null in C:\wamp64\www\tng1403\personlib.php on line 417 Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in C:\wamp64\www\tng1403\personlib.php on line 417 What is strange, is that I only get this error for some individuals, not all. The data originates from a TMG GEDCOM export I just added a quickfix on line 417 in personlib.php : //TIE quickfix if (!is_null($xnote)) { $newfact[0] = trim( $xnote['note'] ); } else $newfact[0] =''; // $newfact[0] = trim( $xnote['note'] ); // TIE Two questions: 1) Do you see any side-effect of this fix? 2) Any ideas what has gone wrong here ? Could it be something with the source GEDCOM? Thank you ! Rgds, Tor
  15. John Paul

    Kloosterman method question

    Hello Everyone. I just have a question about WPTNG-footer.php <?php /* Use only if you want to have the sidebar displayed in TNG pages */ /* get_sidebar (); */ get_footer (); ?> My question is: What does it mean about having the sidebar displayed? Is it the WordPress sidebar displaying on TNG pages? I normally don't use a sidebar when setting up my theme in WP (Astra theme). I always set it up to use full screen....just curious.
  16. 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
  17. TNG 14.0 Template 2 Hello, folks, On some sections of TNG, such as Places and Most Wanted, I am able to use html code such as <b> and <br>, etc. for formatting. However, when I use those same codes for my DNA page browse_dna_tests.php , TNG ignores those codes as if they are not there, as can be seen HERE in the Notes section (you can see that I tried for example [br] and <br> and <br /> to try to get linefeeds, and same thing with [b] and <b> for bold). Would anyone know what & where I can tweak TNG to get that page to display those & other html formatting codes? Thanks in advance & have great day. Regards, John
  18. Hello, folks, I am checking to see if anyone has possibly modified their main (public) DNA page (browse_dna_tests.php) in any way, and if they have, if they are perhaps good at coding . I find that the default TNG (at least up to 14.0.2) is lacking information that is important to me, and although I am in no way a coder, I have stumbled through that file & managed to rearrange some of the columns, and also to add a couple of columns: Vendor (as in the testing company), and Test Date (when the test was taken). The attached image shows the screenshot from the stock TNG (14.0.2) browse_dna_tests.php at the top of the image, and my modified TNG (14.0.2) browse_dna_tests.php at the bottom of the image showing the 2 additional columns, and my rearrangements of some of the columns. For someone who has many DNA tests listed on their TNG site (as in hundreds, if not thousands of DNA tests), possibly the additional columns that I've added would not be beneficial to them. And for someone who has no interest in modifying their browse_dna_tests.php file, the below problems of mine would be too involved for them to waste their time assisting. But if there are any coders out there who think that the modifications would be usable for them too... The Test Type column has the tests sorted alphabetically (which is perfect), but they're sorted alphabetically because that is how Darrin coded it... that column is in its original location. My problem that I'm having is: For each Test Type (i.e. atDNA, mtDNA, Y-DNA), I would like the next column, Taken By, to be sorted alphabetically, so everyone who took the atDNA test sorted alphabetically, followed by everyone who took the mtDNA test sorted alphabetically, then everyone who took a Y-DNA) test sorted alphabetically; Then for the Vendors in the next column to be sorted alphabetically (example: if a user took an mtDNA test from several vendors (companies), those vendors would be listed alphabetically after that person's name in the mtDNA section. Although the companies listed in the Vendor column I got from ($dnarow['vendor']) in the show_dna_test.php file, and that info is being displayed correctly, I am unable to get the 'test_date' to display at all, most likely because there is extra code involved in the show_dna_test.php file for the date. There are numbers listed in browse_dna_tests.php that I have no idea what they mean (and which might have something to do with the sorting?), such as: data-tablesaw-priority="1" data-tablesaw-priority="2" data-tablesaw-priority="3" data-tablesaw-priority="4" data-tablesaw-priority="5" If/when I get my modified browse_dna_tests.php working correctly, I would like to modify admin_dna_tests.php too, as I find the omission of a column for Vendor to be a big hindrance to me in locating the correct test to modify. I can NOT go to Darrin to possibly implement the above additional/rearranged columns in a future TNG release, as quite likely I am the only person who wishes them . Thank you in advance for taking the time to read this post. Regards, John
  19. Ron Yates

    Mod builder?

    Hello All, in the next month or so, I hope to have fully debugged my first (and likely, last) Python script. It is meant to be a purpose-built utility to prepare DNA matched cousin’s ancestral lines for analysis. In short, records in the GEDCOM of the DNA cousin are tagged and the utility extracts those records and processes them. The output of CSV or Excel is either a stand alone study or added to a larger group. I’m not sure how such efforts get started but I would be pleased to connect with anyone who has a subject matter interest or interest in applying their skills towards a small project. I thought I would start by asking here in this space. kind regards, Ron Yates
  20. John Paul

    Firefox inspector question

    Hello everyone. My question today is, When I'm using Firefox inspector, inspecting the login popup screen, I want to change the height of the popup screen and change the color of H1, but just for the login screen. Inspector shows an element with the CSS I want to edit but it says it's inline...what does that mean? and how/where do I edit it?
  21. I an using v. 13.0.3 I haven't added a user in probably a year. But need to add one now. The problem is - when I click on "edit" button next to the new user the page opens with an existing users information and my admin login info. I haven't tried anything yet for fear of losing the NEW users info. H.A.W.K.S Genealogy and Family Trees: TNG Admin (Users) (hawksgentree.com) Not sure what could have changed, since I haven't used the site in quite some time. Elise' K Long
  22. Good afternoon; I have successfully installed myPHP Guestbook <https://www.brpedersen.com/myPHP_Guestbook/myPHP_Guestbook_4.10.9/index.php> Previously I used Lazarus Guestbook. It was installed at the same level as my genealogy directory, in which I have TNG. (I have no TNG folder, I have all in genealogy) I've installed myPHP Guestbook at the same level. And for the life of me, can't get the new guestbook to pick up the header, footer, colour scheme, etc., from my website. Does it have to run inside the folder in which TNG runs? I would need to delete and reinstall so the admin path is correct. I'm fine with the iFrame option. Don't need the includes, etc., I don't think. But I can't even get that to work... My error may be with the second download (from https://www.php-guestbook.de/index.php#anchor-newvers). I installed the second 'includes' folder at the same level as the myPHP_Guestbook folder. Should it be inside the myPHP_Guestbook folder? (edit - I've deleted this second includes folder from my server, as I will just use iFrame) Thank you for your time. Sincerely, Brenda
  23. Hello everyone. I'm wondering if I'm having a php issue here. I had to restore my pc when I came home from the hospital and did a fresh install of xampp64 bit with php v.8.0.28. I'm having issues with some of my policy files. For example, in my extrapages/faqs.php file, I call up some img files from the main img folder. This works fine on my live site, which is running php v.7.4. On my localhost, I'm using the same file, but am getting an error that this is line 68 <p align="center"><img border="1" src="<?php echo $cms['tngpath'] . $tngpath; ?>img/indivtab.jpg" alt="" /></p> Also when I call up faqs.php, I get this error: and line 25 is: <b><?php echo $text['avail']; ?></b> Any help or info would be appreciated.
  24. 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.
  25. I discovered that I am unable to load the Import/Export (admin_dataimport.php) from the admin menu. All I get is a blank page. My provider (dreamhost) has recently updated PHP from v7.4 (I think) to v8.1. At the time, I was running TNG v. 13. I have updated TNG to v. 14.0.1 thinking that 13 was incompatible with PHP v8.1 in some way. It seems everything is working fine after the upgrade, but the dataimport page still does not load. I tried some more things and found that admin_diagnostics.php also does not load. I'm not sure where the problem lies or if there are other undiscovered problems. I'm not too conversant in the back end stuff because I don't use it that often. I use Firefox, but have tried this from Chrome to no effect. Any ideas or a point in the right direction would be appreciated. https://quiettoad.net/genealogy
×
×
  • Create New...