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
    • 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 109 results

  1. The TNG article WebApps - The Least You Need To Know is a good start; it talks about the <?php ...?> syntax, but I was just talking to a new TNG user who doesn't know PHP (or programming) at all, but wants to make some simple HTML changes.  Does anyone knows of a very basic introduction to PHP that covers just enough to allow a non-programmer who knows HTML & CSS to edit HTML code within TNG PHP files. I've looked for a PHP tutorial about which I could say "Read the first 5 articles", or something like that, but they all get into more that the non-programmer needs to know before they cover everything that the non-programmer does need. Here my start of an article outline: The general syntax of a PHP file, which is essentially an HTML document with embedded PHP code that runs on the server and generates HTML, CSS, and JavaScript code, resulting in transient HTML document - i.e one that exists only as it is being downloaded from the server to your PC. When PHP is processing a PHP file, when it sees "<?php" it goes in to "PHP mode" and expects to see PHP code instead of HTML.  Then it sees "?>", it goes back to HTML modeThe php "echo" command, which how you send text to the HTML document when you are in PHP mode. The PHP if-then-else structure which is used to display one block of HTML code if a logical condition is true, and another block of HTML code if that condition is not true.  You don't necessarily need to write if-then-else structures; you just need to understand the structure so that you can be sure to put HTML code where it is needed.The very basics of PHP arrays and strings, so that you can understand how PHP programs refer to the elements of a template or the elements of a database record when displaying information (i.e. when sending text to the HTML document).A reference to the Wiki's mod tutorials.Is that broad (or narrow) enough?
  2. 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!
  3. Skjoldhoj

    Problems with Php 5.6

    After my TNG hosting company has upgraded to Php version 5.6 I cannot login with any user, the program hang. Same happend with Contact me and Language switch, the program hang. It started when I was running TNG 10.1.0. After upgrade to TNG 10.1.2 the problem still exist. Any problems with TNG and Php 5.6? Regards Peter   My web site is in Denmark http://peter-skjoldhoj.dk/TNG/index.php If you try to login, the system hangs. It happend with all userlogin and also my Admin login (user psk, password Adelgunde), With no login I'm really helpless.  The system also hangs if you try to select language. Help needed.
  4. Hello to all, I am looking for a code modification so that I can turn fields on or off that I want to show in public view or only to logged-in users. And I want to change the order of fields, too. Is there any such mod oder can anyone help me which files and which code I have to modify? TNG v10.1.1   Best regards, Martin
  5. Does anybody have any experience with Symfony? I have a hunch there may be some people in this community that have some experience with it.  Symfony I have a test site online and have converted the statistics page based on the current TNG database. I am not very far along but so far I have been pleased with what can be done.
  6. Cailean

    GMail smtp fix

    Hi All, Getting back into the TNG game after many years away. After upgrading from v6 to v10, I ran into an issue where emails from the suggest tab (and I suspect any others) were not being sent. The email address I use is powered by GMail and requires SMTP.  Even when correctly filled out in the settings, I was getting errors.   After a little investigation and experimentation, it turns out that a single line of code was necessary to fix the problem... in tngmaillib.php, insert the following on line 23: $mail->SMTPSecure = "ssl";Obviously, it would be better to have this as an option in the config, but hard-coding it serves my purposes. I've seen some older posts dealing with similar mail errors, so I hope this helps someone.
  7. Hi, I am a fairly new user of TNG.  I am currently using the Census Plus International mod and I am getting the following problem. After I have imported the DOM and updated house numbers, I go to link IDs and for some people I get the following message "Event type ID matched census event found for person ID 47. Event type ID is 19 date is 3 Apr 1881 and Event ID is 6684 option to overlay location is set to :n" The first link is for Benjamin Waterfall, and this shows his family is 1881.  Even though I have linked all the family, the census information does not show up for his wife Christiana (2nd link) http://www.waterfall.name/getperson.php?personID=I5&tree=tree2 http://www.waterfall.name/getperson.php?personID=I42&tree=tree2 This occurs for the same person over multiple censuses. My question is how do I change this? Thank you in advance Nicola
  8. Bernard

    Change Language Droplist Mod

    With the Change Language Droplist Mod installed, the text on the menu is not aligned with the text labels of the other menu's. See the attached image. (template 12). How can I fix that ? Bernard
  9. Hi, I want to show only a selected set of random photo's on my homepage but the only way I managed to do that is a (SQL) selection on part of the title, description and/or filename. But I really want to select the photo's for this set. Maybe this can be done with an album, but how can I change the random photo code so it shows a predefined (selected) album?  I don't want to use a collection because it then shows up in the media menu and I don't like it there, Bernard